Subversion Repositories Kolibri OS

Rev

Rev 548 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 548 Rev 704
Line 47... Line 47...
47
 
47
 
Line 48... Line 48...
48
_DATA   segment dword public 'DATA'
48
_DATA   segment dword public 'DATA'
Line -... Line 49...
-
 
49
 
-
 
50
        assume  DS:DGROUP
-
 
51
        
-
 
52
        extrn ___cmdline : near
-
 
53
        extrn ___pgmname : near
-
 
54
 
-
 
55
_LpCmdLine   dd offset ___cmdline    ; pointer to raw command line
49
 
56
_LpPgmName   dd offset ___pgmname    ; pointer to program name (for argv[0])
50
        assume  DS:DGROUP
57
 
51
 
58
 
52
ifndef __NETWARE__
59
ifndef __NETWARE__
53
_dynend      dd 0               ; top of dynamic data area
-
 
54
_curbrk      dd 0               ; top of usable memory
-
 
55
endif
-
 
56
ifndef __QNX__
-
 
57
ifndef __LINUX__
-
 
58
ifndef _NETWARE_LIBC
60
_dynend      dd 0               ; top of dynamic data area
59
_LpCmdLine   dd 0               ; pointer to raw command line
-
 
60
_LpPgmName   dd 0               ; pointer to program name (for argv[0])
-
 
61
endif
-
 
62
ifdef __NT__
-
 
63
_LpDllName   dd 0               ; pointer to dll name (for OS/2,WIN32)
-
 
64
_LpwCmdLine  dd 0               ; pointer to widechar raw command line
-
 
65
_LpwPgmName  dd 0               ; pointer to widechar program name (for argv[0])
-
 
66
_LpwDllName  dd 0               ; pointer to widechar dll name (for OS/2,WIN32)
-
 
67
endif
-
 
68
ifdef __OS2__
-
 
69
_LpDllName   dd 0               ; pointer to dll name (for OS/2,WIN32)
-
 
70
_LpwCmdLine  dd 0               ; pointer to widechar raw command line
-
 
71
_LpwPgmName  dd 0               ; pointer to widechar program name (for argv[0])
-
 
72
_LpwDllName  dd 0               ; pointer to widechar dll name (for OS/2,WIN32)
-
 
73
endif
-
 
74
ifdef __DOS__
-
 
75
_psp         dw 0,0             ; segment addr of program segment prefix
-
 
76
__x386_stacklow label   dword
-
 
77
endif
61
_curbrk      dd 0               ; top of usable memory
78
endif
62
endif
79
endif
63
 
80
_STACKLOW  dd 0                 ; lowest address in stack
64
_STACKLOW    dd 0               ; lowest address in stack
81
_STACKTOP  dd 0                 ; highest address in stack
65
_STACKTOP    dd 0               ; highest address in stack
82
__EFG_printf dd 0
66
__EFG_printf dd 0
-
 
67
__EFG_scanf  dd 0
83
__EFG_scanf  dd 0
68
__ASTACKSIZ  dd 0               ; alternate stack size
84
__ASTACKSIZ dd 0                ; alternate stack size
69
__ASTACKPTR  dd 0               ; alternate stack pointer
85
__ASTACKPTR dd 0                ; alternate stack pointer
70
 
86
ifndef __NETWARE__
71
ifndef __NETWARE__
87
_cbyte     dd 0                 ; used by getch, getche
72
_cbyte     dd 0                 ; used by getch, getche
-
 
73
_cbyte2    dd 0                 ; used by getch, getche
88
_cbyte2    dd 0                 ; used by getch, getche
74
_child     dd 0                 ; non-zero => a spawned process is running
89
_child     dd 0                 ; non-zero => a spawned process is running
75
endif
90
endif
76
 
91
__no87     dw 0                 ; non-zero => "NO87" environment var present
77
__no87     dw 0                 ; non-zero => "NO87" environment var present
92
ifndef __NETWARE__
78
ifndef __NETWARE__
Line 139... Line 125...
139
ifndef _NETWARE_LIBC
125
ifndef _NETWARE_LIBC
140
        public  "C",_LpCmdLine
126
        public  "C",_LpCmdLine
141
        public  "C",_LpPgmName
127
        public  "C",_LpPgmName
142
endif
128
endif
143
ifdef __NT__
129
ifdef __NT__
144
        public  "C",_LpDllName
-
 
145
        public  "C",_LpwCmdLine
-
 
146
        public  "C",_LpwPgmName
-
 
147
        public  "C",_LpwDllName
-
 
148
        public  "C",_LpCmdLine
130
        public  "C",_LpCmdLine
149
        public  "C",_LpPgmName
131
        public  "C",_LpPgmName
150
endif
132
endif
151
ifdef __OS2__
133
ifdef __OS2__
152
        public  "C",_LpDllName
134
        public  "C",_LpDllName