Rev 4973 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ |
2 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
||
3 | #include |
||
4 | #include |
||
5 | #include |
||
6 | #include |
||
7 | #include |
||
8 | #include |
||
9 | #include |
||
10 | #include |
||
11 | #include |
||
12 | |||
13 | /* Global variables */ |
||
14 | |||
15 | #define ds _my_ds() |
||
16 | |||
17 | int __bss_count = 1; |
||
18 | |||
19 | char **environ; |
||
20 | int _crt0_startup_flags; /* default to zero unless app overrides them */ |
||
21 | int __crt0_argc=0; |
||
22 | char ** __crt0_argv=NULL; |
||
23 | |||
24 | char * __dos_argv0; |
||
25 | |||
26 | extern __u32 __menuet__getmemsize(void); |
||
27 | |||
28 | extern void __main(void); |
||
29 | extern int main(int, char **); |
||
30 | extern void _crt0_init_mcount(void); /* For profiling */ |
||
31 | void __crt0_setup_arguments(void); |
||
32 | extern char __menuet__app_param_area[]; |
||
33 | |||
34 | //void dosemu_atexit(void); |
||
35 | |||
36 | void __crt1_startup(void) |
||
37 | { |
||
38 | init_brk(); |
||
39 | __crt0_setup_arguments(); |
||
40 | dosemu_inithandles(); |
||
41 | init_dir_stack(); |
||
42 | // atexit(dosemu_atexit); |
||
43 | __main(); |
||
44 | { |
||
45 | int stat=main(__crt0_argc,__crt0_argv); |
||
46 | exit(stat); |
||
47 | } |
||
48 | } |