|
|
1.1 root 1: /*
2: * UAE - The Un*x Amiga Emulator
1.1.1.3 root 3: *
4: * Main program
5: *
6: * Copyright 1995 Ed Hanway
7: * Copyright 1995, 1996, 1997 Bernd Schmidt
1.1 root 8: */
9: #include "sysconfig.h"
10: #include "sysdeps.h"
11: #include <assert.h>
12:
13: #include "config.h"
14: #include "options.h"
1.1.1.15 root 15: #include "threaddep/thread.h"
1.1.1.2 root 16: #include "uae.h"
1.1.1.3 root 17: #include "gensound.h"
1.1.1.13 root 18: #include "audio.h"
1.1.1.3 root 19: #include "sounddep/sound.h"
1.1.1.2 root 20: #include "events.h"
1.1 root 21: #include "memory.h"
22: #include "custom.h"
23: #include "serial.h"
24: #include "newcpu.h"
25: #include "disk.h"
26: #include "debug.h"
27: #include "xwin.h"
1.1.1.3 root 28: #include "joystick.h"
1.1 root 29: #include "keybuf.h"
30: #include "gui.h"
31: #include "zfile.h"
32: #include "autoconf.h"
1.1.1.2 root 33: #include "osemu.h"
1.1.1.3 root 34: #include "osdep/exectasks.h"
35: #include "picasso96.h"
1.1.1.6 root 36: #include "bsdsocket.h"
1.1.1.3 root 37: #include "uaeexe.h"
1.1.1.8 root 38: #include "native2amiga.h"
39: #include "scsidev.h"
1.1 root 40:
1.1.1.15 root 41: #ifdef USE_SDL
42: #include "SDL.h"
43: #endif
44:
1.1.1.4 root 45: long int version = 256*65536L*UAEMAJOR + 65536L*UAEMINOR + UAESUBREV;
1.1.1.3 root 46:
1.1.1.6 root 47: struct uae_prefs currprefs, changed_prefs;
1.1.1.4 root 48:
1.1.1.6 root 49: int no_gui = 0;
1.1.1.4 root 50: int joystickpresent = 0;
51: int cloanto_rom = 0;
52:
1.1.1.11 root 53: struct gui_info gui_data;
54:
1.1.1.4 root 55: char warning_buffer[256];
56:
57: char optionsfile[256];
58:
59: /* If you want to pipe printer output to a file, put something like
60: * "cat >>printerfile.tmp" above.
61: * The printer support was only tested with the driver "PostScript" on
62: * Amiga side, using apsfilter for linux to print ps-data.
63: *
64: * Under DOS it ought to be -p LPT1: or -p PRN: but you'll need a
65: * PostScript printer or ghostscript -=SR=-
66: */
67:
68: /* Slightly stupid place for this... */
69: /* ncurses.c might use quite a few of those. */
70: char *colormodes[] = { "256 colors", "32768 colors", "65536 colors",
71: "256 colors dithered", "16 colors dithered", "16 million colors",
72: "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
73: "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
74: "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
75: "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
76: "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""
77: };
78:
1.1.1.6 root 79: void discard_prefs (struct uae_prefs *p)
1.1.1.3 root 80: {
1.1.1.6 root 81: struct strlist **ps = &p->unknown_lines;
82: while (*ps) {
83: struct strlist *s = *ps;
84: *ps = s->next;
85: free (s->str);
86: free (s);
87: }
88: free_mountinfo (p->mountinfo);
89: }
90:
91: void default_prefs (struct uae_prefs *p)
92: {
93: strcpy (p->description, "UAE default configuration");
94:
95: p->start_gui = 1;
96: p->start_debugger = 0;
97:
98: p->unknown_lines = 0;
1.1.1.4 root 99: /* Note to porters: please don't change any of these options! UAE is supposed
100: * to behave identically on all platforms if possible. */
1.1.1.6 root 101: p->illegal_mem = 0;
102: p->no_xhair = 0;
103: p->use_serial = 0;
104: p->serial_demand = 0;
105: p->parallel_demand = 0;
106:
107: p->jport0 = 2;
108: p->jport1 = 0;
109: p->keyboard_lang = KBD_LANG_US;
110: p->emul_accuracy = 2;
111: p->test_drawing_speed = 0;
112:
113: p->produce_sound = 0;
1.1.1.18! root 114: p->sound_stereo = 0;
1.1.1.6 root 115: p->sound_bits = DEFAULT_SOUND_BITS;
116: p->sound_freq = DEFAULT_SOUND_FREQ;
117: p->sound_minbsiz = DEFAULT_SOUND_MINB;
118: p->sound_maxbsiz = DEFAULT_SOUND_MAXB;
1.1.1.9 root 119: p->sound_interpol = 0;
1.1.1.6 root 120:
1.1.1.8 root 121: p->gfx_framerate = 1;
1.1.1.6 root 122: p->gfx_width = 800;
123: p->gfx_height = 600;
124: p->gfx_lores = 0;
1.1.1.15 root 125: p->gfx_linedbl = 2;
1.1.1.6 root 126: p->gfx_afullscreen = 0;
127: p->gfx_pfullscreen = 0;
128: p->gfx_correct_aspect = 0;
129: p->gfx_xcenter = 0;
130: p->gfx_ycenter = 0;
131: p->color_mode = 0;
132:
133: p->x11_use_low_bandwidth = 0;
134: p->x11_use_mitshm = 0;
135: p->x11_hide_cursor = 1;
136:
1.1.1.8 root 137: p->svga_no_linear = 0;
138:
1.1.1.10 root 139: p->curses_reverse_video = 0;
140:
1.1.1.8 root 141: p->win32_middle_mouse = 0;
142: p->win32_logfile = 0;
143: p->win32_iconified_nospeed = 0;
144: p->win32_iconified_nosound = 0;
1.1.1.16 root 145: p->win32_no_overlay = 0;
1.1.1.8 root 146:
1.1.1.6 root 147: p->immediate_blits = 0;
1.1.1.14 root 148: p->collision_level = 1;
149: p->fast_copper = 1;
1.1.1.6 root 150:
151: strcpy (p->df[0], "df0.adf");
152: strcpy (p->df[1], "df1.adf");
153: strcpy (p->df[2], "df2.adf");
154: strcpy (p->df[3], "df3.adf");
155:
156: strcpy (p->romfile, "kick.rom");
157: strcpy (p->keyfile, "");
158: strcpy (p->prtname, DEFPRTNAME);
159:
160: strcpy (p->path_rom, "./");
161: strcpy (p->path_floppy, "./");
162: strcpy (p->path_hardfile, "./");
163:
1.1.1.15 root 164: strcpy (p->prtname, "");
165: strcpy (p->sername, "");
166:
1.1.1.11 root 167: p->m68k_speed = 0;
1.1.1.6 root 168: p->cpu_level = 2;
169: p->cpu_compatible = 0;
170: p->address_space_24 = 0;
171:
172: p->fastmem_size = 0x00000000;
173: p->a3000mem_size = 0x00000000;
174: p->z3fastmem_size = 0x00000000;
175: p->chipmem_size = 0x00200000;
176: p->bogomem_size = 0x00000000;
177: p->gfxmem_size = 0x00000000;
1.1 root 178:
1.1.1.11 root 179: p->nr_floppies = 4;
180:
1.1.1.6 root 181: p->mountinfo = alloc_mountinfo ();
1.1.1.4 root 182: }
1.1 root 183:
1.1.1.4 root 184: void fixup_prefs_dimensions (struct uae_prefs *prefs)
185: {
186: if (prefs->gfx_width < 320)
187: prefs->gfx_width = 320;
188: if (prefs->gfx_height < 200)
189: prefs->gfx_height = 200;
190: if (prefs->gfx_height > 300 && ! prefs->gfx_linedbl)
191: prefs->gfx_height = 300;
192: if (prefs->gfx_height > 600)
193: prefs->gfx_height = 600;
1.1 root 194:
1.1.1.4 root 195: prefs->gfx_width += 7; /* X86.S wants multiples of 4 bytes, might be 8 in the future. */
196: prefs->gfx_width &= ~7;
197: }
1.1.1.3 root 198:
1.1.1.4 root 199: static void fix_options (void)
1.1.1.2 root 200: {
1.1.1.3 root 201: int err = 0;
202:
1.1.1.4 root 203: if ((currprefs.chipmem_size & (currprefs.chipmem_size - 1)) != 0
204: || currprefs.chipmem_size < 0x80000
205: || currprefs.chipmem_size > 0x800000)
1.1.1.3 root 206: {
1.1.1.4 root 207: currprefs.chipmem_size = 0x200000;
1.1.1.16 root 208: write_log ("Unsupported chipmem size!\n");
1.1.1.3 root 209: err = 1;
210: }
1.1.1.4 root 211: if ((currprefs.fastmem_size & (currprefs.fastmem_size - 1)) != 0
212: || (currprefs.fastmem_size != 0 && (currprefs.fastmem_size < 0x100000 || currprefs.fastmem_size > 0x800000)))
1.1.1.3 root 213: {
1.1.1.4 root 214: currprefs.fastmem_size = 0;
1.1.1.16 root 215: write_log ("Unsupported fastmem size!\n");
1.1.1.3 root 216: err = 1;
217: }
1.1.1.4 root 218: if ((currprefs.gfxmem_size & (currprefs.gfxmem_size - 1)) != 0
1.1.1.16 root 219: || (currprefs.gfxmem_size != 0 && (currprefs.gfxmem_size < 0x100000 || currprefs.gfxmem_size > 0x2000000)))
1.1.1.3 root 220: {
1.1.1.16 root 221: write_log ("Unsupported graphics card memory size %lx!\n", currprefs.gfxmem_size);
1.1.1.4 root 222: currprefs.gfxmem_size = 0;
1.1.1.3 root 223: err = 1;
224: }
1.1.1.4 root 225: if ((currprefs.z3fastmem_size & (currprefs.z3fastmem_size - 1)) != 0
226: || (currprefs.z3fastmem_size != 0 && (currprefs.z3fastmem_size < 0x100000 || currprefs.z3fastmem_size > 0x4000000)))
1.1.1.3 root 227: {
1.1.1.4 root 228: currprefs.z3fastmem_size = 0;
1.1.1.16 root 229: write_log ("Unsupported Zorro III fastmem size!\n");
1.1.1.3 root 230: err = 1;
231: }
1.1.1.4 root 232: if (currprefs.address_space_24 && (currprefs.gfxmem_size != 0 || currprefs.z3fastmem_size != 0)) {
233: currprefs.z3fastmem_size = currprefs.gfxmem_size = 0;
1.1.1.16 root 234: write_log ("Can't use a graphics card or Zorro III fastmem when using a 24 bit\n"
1.1.1.3 root 235: "address space - sorry.\n");
236: }
1.1.1.4 root 237: if ((currprefs.bogomem_size & (currprefs.bogomem_size - 1)) != 0
238: || (currprefs.bogomem_size != 0 && (currprefs.bogomem_size < 0x80000 || currprefs.bogomem_size > 0x100000)))
1.1.1.3 root 239: {
1.1.1.4 root 240: currprefs.bogomem_size = 0;
1.1.1.16 root 241: write_log ("Unsupported bogomem size!\n");
1.1.1.3 root 242: err = 1;
243: }
244:
1.1.1.4 root 245: if (currprefs.chipmem_size > 0x200000 && currprefs.fastmem_size != 0) {
1.1.1.16 root 246: write_log ("You can't use fastmem and more than 2MB chip at the same time!\n");
1.1.1.4 root 247: currprefs.fastmem_size = 0;
1.1.1.3 root 248: err = 1;
249: }
1.1.1.13 root 250: #if 0
1.1.1.4 root 251: if (currprefs.m68k_speed < -1 || currprefs.m68k_speed > 20) {
1.1.1.16 root 252: write_log ("Bad value for -w parameter: must be -1, 0, or within 1..20.\n");
1.1.1.3 root 253: currprefs.m68k_speed = 4;
254: err = 1;
255: }
1.1.1.13 root 256: #endif
257:
1.1.1.3 root 258: if (currprefs.produce_sound < 0 || currprefs.produce_sound > 3) {
1.1.1.16 root 259: write_log ("Bad value for -S parameter: enable value must be within 0..3\n");
1.1.1.3 root 260: currprefs.produce_sound = 0;
261: err = 1;
262: }
1.1.1.4 root 263: if (currprefs.cpu_level < 2 && currprefs.z3fastmem_size > 0) {
1.1.1.16 root 264: write_log ("Z3 fast memory can't be used with a 68000/68010 emulation. It\n"
1.1.1.3 root 265: "requires a 68020 emulation. Turning off Z3 fast memory.\n");
1.1.1.4 root 266: currprefs.z3fastmem_size = 0;
1.1.1.3 root 267: err = 1;
268: }
1.1.1.8 root 269: if (currprefs.gfxmem_size > 0 && (currprefs.cpu_level < 2 || currprefs.address_space_24)) {
1.1.1.16 root 270: write_log ("Picasso96 can't be used with a 68000/68010 or 68EC020 emulation. It\n"
1.1.1.3 root 271: "requires a 68020 emulation. Turning off Picasso96.\n");
1.1.1.4 root 272: currprefs.gfxmem_size = 0;
1.1.1.3 root 273: err = 1;
274: }
1.1.1.8 root 275: #ifndef BSDSOCKET_SUPPORTED
276: if (currprefs.socket_emu) {
1.1.1.16 root 277: write_log ("Compile-time option of BSDSOCKET_SUPPORTED was not enabled. You can't use bsd-socket emulation.\n");
1.1.1.8 root 278: currprefs.socket_emu = 0;
279: err = 1;
280: }
281: #endif
1.1.1.3 root 282:
1.1.1.11 root 283: if (currprefs.nr_floppies < 1 || currprefs.nr_floppies > 4) {
1.1.1.16 root 284: write_log ("Invalid number of floppies. Using 4.\n");
1.1.1.11 root 285: currprefs.nr_floppies = 4;
286: err = 1;
287: }
1.1.1.14 root 288: if (currprefs.collision_level < 0 || currprefs.collision_level > 3) {
1.1.1.16 root 289: write_log ("Invalid collision support level. Using 1.\n");
1.1.1.14 root 290: currprefs.collision_level = 1;
291: err = 1;
292: }
1.1.1.11 root 293:
1.1.1.3 root 294: if (err)
1.1.1.16 root 295: write_log ("Please use \"uae -h\" to get usage information.\n");
1.1.1.3 root 296: }
297:
298: int quit_program = 0;
299:
300: void uae_reset (void)
301: {
1.1.1.4 root 302: if (quit_program == 0)
1.1.1.3 root 303: quit_program = -2;
304: }
305:
306: void uae_quit (void)
307: {
308: if (quit_program != -1)
309: quit_program = -1;
1.1.1.2 root 310: }
1.1 root 311:
1.1.1.3 root 312: const char *gameport_state (int nr)
1.1 root 313: {
1.1.1.6 root 314: if (JSEM_ISJOY0 (nr, &currprefs) && nr_joysticks > 0)
1.1.1.3 root 315: return "using joystick #0";
1.1.1.6 root 316: else if (JSEM_ISJOY1 (nr, &currprefs) && nr_joysticks > 1)
1.1.1.3 root 317: return "using joystick #1";
1.1.1.6 root 318: else if (JSEM_ISMOUSE (nr, &currprefs))
1.1.1.3 root 319: return "using mouse";
1.1.1.6 root 320: else if (JSEM_ISNUMPAD (nr, &currprefs))
1.1.1.3 root 321: return "using numeric pad as joystick";
1.1.1.6 root 322: else if (JSEM_ISCURSOR (nr, &currprefs))
1.1.1.3 root 323: return "using cursor keys as joystick";
1.1.1.6 root 324: else if (JSEM_ISSOMEWHEREELSE (nr, &currprefs))
1.1.1.3 root 325: return "using T/F/H/B/Alt as joystick";
326:
327: return "not connected";
328: }
329:
1.1.1.6 root 330: #ifndef DONT_PARSE_CMDLINE
1.1.1.3 root 331:
1.1.1.6 root 332: void usage (void)
333: {
1.1.1.3 root 334: }
335:
1.1.1.6 root 336: void parse_cmdline (int argc, char **argv)
337: {
1.1.1.8 root 338: int i;
339: for (i = 1; i < argc; i++) {
340: if (strncmp (argv[i], "-config=", 8) == 0)
341: cfgfile_load (&currprefs, argv[i] + 8);
342: /* Check for new-style "-f xxx" argument, where xxx is config-file */
343: else if (strcmp (argv[i], "-f") == 0) {
344: if (i + 1 == argc)
1.1.1.17 root 345: write_log ("Missing argument for '-f' option.\n");
1.1.1.8 root 346: else
347: cfgfile_load (&currprefs, argv[++i]);
348: } else if (strcmp (argv[i], "-s") == 0) {
349: if (i + 1 == argc)
1.1.1.17 root 350: write_log ("Missing argument for '-s' option.\n");
1.1.1.8 root 351: else
352: cfgfile_parse_line (&currprefs, argv[++i]);
353: } else if (strcmp (argv[i], "-h") == 0 || strcmp (argv[i], "-help") == 0) {
1.1.1.6 root 354: usage ();
355: exit (0);
1.1.1.9 root 356: } else {
357: if (argv[i][0] == '-' && argv[i][1] != '\0') {
358: const char *arg = argv[i] + 2;
1.1.1.10 root 359: int extra_arg = *arg == '\0';
360: if (extra_arg)
1.1.1.9 root 361: arg = i + 1 < argc ? argv[i + 1] : 0;
1.1.1.10 root 362: if (parse_cmdline_option (argv[i][1], arg) && extra_arg)
363: i++;
1.1.1.9 root 364: }
1.1.1.3 root 365: }
1.1 root 366: }
367: }
368: #endif
369:
1.1.1.4 root 370: static void parse_cmdline_and_init_file (int argc, char **argv)
1.1 root 371: {
1.1.1.3 root 372: char *home;
1.1 root 373:
1.1.1.6 root 374: strcpy (optionsfile, "");
1.1 root 375:
1.1.1.3 root 376: #ifdef OPTIONS_IN_HOME
1.1.1.4 root 377: home = getenv ("HOME");
378: if (home != NULL && strlen (home) < 240)
1.1 root 379: {
1.1.1.4 root 380: strcpy (optionsfile, home);
381: strcat (optionsfile, "/");
1.1 root 382: }
383: #endif
384:
1.1.1.4 root 385: strcat (optionsfile, OPTIONSFILENAME);
1.1 root 386:
1.1.1.6 root 387: if (! cfgfile_load (&currprefs, optionsfile)) {
1.1.1.3 root 388: #ifdef OPTIONS_IN_HOME
1.1.1.6 root 389: /* sam: if not found in $HOME then look in current directory */
1.1.1.3 root 390: strcpy (optionsfile, OPTIONSFILENAME);
1.1.1.6 root 391: cfgfile_load (&currprefs, optionsfile);
1.1.1.2 root 392: #endif
1.1.1.17 root 393: }
1.1.1.2 root 394:
1.1.1.6 root 395: parse_cmdline (argc, argv);
1.1 root 396: }
397:
1.1.1.4 root 398: void reset_all_systems (void)
399: {
1.1.1.14 root 400: init_eventtab ();
401:
402: memory_reset ();
1.1.1.6 root 403: bsdlib_reset ();
1.1.1.4 root 404: filesys_reset ();
405: filesys_start_threads ();
1.1.1.8 root 406: scsidev_reset ();
407: scsidev_start_threads ();
1.1.1.4 root 408: }
409:
1.1.1.2 root 410: /* Okay, this stuff looks strange, but it is here to encourage people who
411: * port UAE to re-use as much of this code as possible. Functions that you
412: * should be using are do_start_program() and do_leave_program(), as well
413: * as real_main(). Some OSes don't call main() (which is braindamaged IMHO,
414: * but unfortunately very common), so you need to call real_main() from
415: * whatever entry point you have. You may want to write your own versions
416: * of start_program() and leave_program() if you need to do anything special.
417: * Add #ifdefs around these as appropriate.
418: */
419:
1.1.1.4 root 420: void do_start_program (void)
1.1.1.2 root 421: {
1.1.1.3 root 422: /* Do a reset on startup. Whether this is elegant is debatable. */
423: quit_program = 2;
1.1.1.4 root 424: m68k_go (1);
1.1.1.2 root 425: }
426:
1.1.1.4 root 427: void do_leave_program (void)
1.1.1.2 root 428: {
1.1.1.4 root 429: graphics_leave ();
430: close_joystick ();
431: close_sound ();
432: dump_counts ();
433: serial_exit ();
434: zfile_exit ();
435: if (! no_gui)
436: gui_exit ();
1.1.1.15 root 437: #ifdef USE_SDL
438: SDL_Quit ();
439: #endif
440: expansion_cleanup ();
441: memory_cleanup ();
1.1.1.2 root 442: }
443:
1.1.1.4 root 444: void start_program (void)
1.1.1.2 root 445: {
1.1.1.4 root 446: do_start_program ();
1.1.1.2 root 447: }
448:
1.1.1.4 root 449: void leave_program (void)
1.1.1.2 root 450: {
1.1.1.4 root 451: do_leave_program ();
1.1.1.2 root 452: }
453:
1.1.1.4 root 454: void real_main (int argc, char **argv)
1.1 root 455: {
456: FILE *hf;
457:
1.1.1.15 root 458: #ifdef USE_SDL
459: SDL_Init (SDL_INIT_EVERYTHING | SDL_INIT_NOPARACHUTE);
460: #endif
461:
1.1.1.6 root 462: default_prefs (&currprefs);
1.1.1.3 root 463:
1.1.1.4 root 464: if (! graphics_setup ()) {
465: exit (1);
1.1 root 466: }
1.1.1.2 root 467:
1.1 root 468: rtarea_init ();
469: hardfile_install ();
1.1.1.8 root 470: scsidev_install ();
1.1 root 471:
1.1.1.4 root 472: parse_cmdline_and_init_file (argc, argv);
1.1.1.2 root 473:
1.1.1.4 root 474: machdep_init ();
1.1.1.3 root 475:
1.1.1.4 root 476: if (! setup_sound ()) {
1.1.1.16 root 477: write_log ("Sound driver unavailable: Sound output disabled\n");
1.1.1.3 root 478: currprefs.produce_sound = 0;
1.1 root 479: }
1.1.1.4 root 480: init_joystick ();
1.1 root 481:
1.1.1.15 root 482: changed_prefs = currprefs;
1.1.1.6 root 483: no_gui = ! currprefs.start_gui;
1.1.1.4 root 484: if (! no_gui) {
485: int err = gui_init ();
1.1.1.15 root 486: currprefs = changed_prefs;
1.1.1.2 root 487: if (err == -1) {
1.1.1.16 root 488: write_log ("Failed to initialize the GUI\n");
1.1.1.2 root 489: } else if (err == -2) {
1.1.1.4 root 490: exit (0);
1.1.1.2 root 491: }
1.1 root 492: }
1.1.1.13 root 493: if (sound_available && currprefs.produce_sound > 1 && ! init_audio ()) {
1.1.1.16 root 494: write_log ("Sound driver unavailable: Sound output disabled\n");
1.1.1.3 root 495: currprefs.produce_sound = 0;
496: }
1.1.1.2 root 497:
1.1.1.4 root 498: fix_options ();
1.1.1.3 root 499: changed_prefs = currprefs;
500:
1.1.1.2 root 501: /* Install resident module to get 8MB chipmem, if requested */
1.1.1.4 root 502: rtarea_setup ();
1.1.1.3 root 503:
1.1.1.4 root 504: keybuf_init (); /* Must come after init_joystick */
1.1.1.3 root 505:
1.1 root 506: expansion_init ();
1.1.1.4 root 507: memory_init ();
508:
509: filesys_install ();
510: gfxlib_install ();
511: emulib_install ();
512: uaeexe_install ();
1.1.1.8 root 513: native2amiga_install ();
1.1.1.4 root 514:
515: custom_init (); /* Must come after memory_init */
516: serial_init ();
517: DISK_init ();
518:
519: reset_frame_rate_hack ();
520: init_m68k(); /* must come after reset_frame_rate_hack (); */
1.1 root 521:
1.1.1.4 root 522: gui_update ();
1.1.1.2 root 523:
1.1.1.3 root 524: if (graphics_init ()) {
525: setup_brkhandler ();
1.1.1.6 root 526: if (currprefs.start_debugger && debuggable ())
1.1.1.3 root 527: activate_debugger ();
528:
529: start_program ();
1.1 root 530: }
1.1.1.3 root 531: leave_program ();
1.1.1.2 root 532: }
533:
1.1.1.3 root 534: #ifndef NO_MAIN_IN_MAIN_C
1.1.1.4 root 535: int main (int argc, char **argv)
1.1.1.2 root 536: {
1.1.1.4 root 537: real_main (argc, argv);
1.1 root 538: return 0;
539: }
1.1.1.3 root 540: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.