source: trunk/src/crtdll/crtinc.h@ 880

Last change on this file since 880 was 864, checked in by sandervl, 26 years ago

Created dll

File size: 1.7 KB
Line 
1/* $Id: crtinc.h,v 1.1 1999-09-07 20:41:45 sandervl Exp $ */
2
3/* Definitions for the CRTDLL library (CRTDLL.DLL)
4 *
5 * Copyright 1999 Jens Wiessner
6 */
7
8
9#define CRTDLL_RAND_MAX 0x7fff
10#define MB_LEN_MAX 2
11
12#if defined(__GNUC__) && defined(__i386__)
13#define USING_REAL_FPU
14#define DO_FPU(x,y) __asm__ __volatile__( x " %0;fwait" : "=m" (y) : )
15#define POP_FPU(x) DO_FPU("fstpl",x)
16#endif
17
18typedef struct
19{
20 HANDLE handle;
21 int pad[7];
22} CRTDLL_FILE, *PCRTDLL_FILE;
23
24typedef VOID (*new_handler_type)(VOID);
25typedef void (*_INITTERMFUN)();
26
27
28CRTDLL_FILE CRTDLL_iob[3];
29
30static CRTDLL_FILE * const CRTDLL_stdin = &CRTDLL_iob[0];
31static CRTDLL_FILE * const CRTDLL_stdout = &CRTDLL_iob[1];
32static CRTDLL_FILE * const CRTDLL_stderr = &CRTDLL_iob[2];
33static new_handler_type new_handler;
34
35CRTDLL_FILE * CDECL CRTDLL__fdopen(INT handle, LPCSTR mode);
36
37UINT CRTDLL_argc_dll; /* CRTDLL.23 */
38LPSTR *CRTDLL_argv_dll; /* CRTDLL.24 */
39LPSTR CRTDLL_acmdln_dll; /* CRTDLL.38 */
40UINT CRTDLL_basemajor_dll; /* CRTDLL.42 */
41UINT CRTDLL_baseminor_dll; /* CRTDLL.43 */
42UINT CRTDLL_baseversion_dll; /* CRTDLL.44 */
43UINT CRTDLL_commode_dll; /* CRTDLL.59 */
44LPSTR CRTDLL_environ_dll; /* CRTDLL.75 */
45UINT CRTDLL_fmode_dll; /* CRTDLL.104 */
46UINT CRTDLL_osmajor_dll; /* CRTDLL.241 */
47UINT CRTDLL_osminor_dll; /* CRTDLL.242 */
48UINT CRTDLL_osmode_dll; /* CRTDLL.243 */
49UINT CRTDLL_osver_dll; /* CRTDLL.244 */
50UINT CRTDLL_osversion_dll; /* CRTDLL.245 */
51UINT CRTDLL_winmajor_dll; /* CRTDLL.329 */
52UINT CRTDLL_winminor_dll; /* CRTDLL.330 */
53UINT CRTDLL_winver_dll; /* CRTDLL.331 */
54
55INT WINAPI lstrncmpiA(LPCSTR,LPCSTR,INT);
56
Note: See TracBrowser for help on using the repository browser.