1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 11:02:48 -05:00

Add a Config * argument to ldisc_create(), and use it in place of the global

cfg throughout ldisc.c.  Not tested other than on Mac, but all other ports
just pass &cfg as this argument for now.

[originally from svn r2250]
This commit is contained in:
Ben Harris
2002-11-23 20:02:38 +00:00
parent c0b887a0a2
commit d60ea36673
7 changed files with 24 additions and 21 deletions

View File

@ -2113,7 +2113,8 @@ int main(int argc, char **argv)
term_size(inst->term, cfg.height, cfg.width, cfg.savelines);
inst->ldisc = ldisc_create(inst->term, inst->back, inst->backhandle, inst);
inst->ldisc =
ldisc_create(&cfg, inst->term, inst->back, inst->backhandle, inst);
ldisc_send(inst->ldisc, NULL, 0, 0);/* cause ldisc to notice changes */
inst->master_fd = pty_master_fd;

View File

@ -475,7 +475,7 @@ int main(int argc, char **argv)
return 1;
}
back->provide_logctx(backhandle, logctx);
ldisc = ldisc_create(NULL, back, backhandle, NULL);
ldisc = ldisc_create(&cfg, NULL, back, backhandle, NULL);
sfree(realhost);
}
connopen = 1;