]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - unix/gtkmain.c
Make gtkmain.c contain the actual main().
authorSimon Tatham <anakin@pobox.com>
Wed, 23 Mar 2016 21:58:40 +0000 (21:58 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 23 Mar 2016 21:58:40 +0000 (21:58 +0000)
commit01778a2d546bb4cebe3a4e5a0bb227deda548182
treeb6be2ed1baaa7fa6d6dad8c417c86d2b8eb52c6b
parent450a995f05a7dfbf75d7e0913accf1af2ee9d165
Make gtkmain.c contain the actual main().

Instead of main() living in uxputty.c and uxpterm.c, and doing a
little bit of setup before calling the larger pt_main() in gtkmain.c,
I've now turned things backwards: the big function in gtkmain.c *is*
main(), and the small pieces of preliminary setup in uxputty.c and
uxpterm.c are now a function called setup() which is called from
there. This will allow me to reuse the rest of ux{putty,pterm}.c, i.e.
the assorted top-level bits and pieces that distinguish PuTTY from
pterm, in the upcoming OS X application that will have its own main().
unix/gtkmain.c
unix/uxpterm.c
unix/uxputty.c