Commit | Line | Data |
2986a63f |
1 | |
2 | /* |
3 | * Copyright © 2001 Novell, Inc. All Rights Reserved. |
4 | * |
5 | * You may distribute under the terms of either the GNU General Public |
6 | * License or the Artistic License, as specified in the README file. |
7 | * |
8 | */ |
9 | |
10 | /* |
11 | * FILENAME : CLIBsdio.h |
12 | * DESCRIPTION : Forces the use of clib stdio.h calls over static watcom calls |
13 | * for C/C++ applications that statically link watcom libraries. |
14 | * |
15 | * This file must be included each time that stdio.h is included. |
16 | * In the case of the Perl project, just include stdio.h and |
17 | * the make should take care of the rest. |
18 | * Author : HYAK |
19 | * Date : January 2001. |
20 | * |
21 | */ |
22 | |
23 | |
24 | |
25 | #ifndef _CLIBSDIO_H_ |
26 | #define _CLIBSDIO_H_ |
27 | |
28 | |
29 | #ifdef DEFINE_GPF |
30 | #define _GPFINIT =0 |
31 | #define _GPFEXT |
32 | #else |
33 | #define _GPFINIT |
34 | #define _GPFEXT extern |
35 | #endif |
36 | |
37 | #ifdef __cplusplus |
38 | extern "C" |
39 | { |
40 | #endif |
41 | |
42 | _GPFEXT void* gpf___get_stdin _GPFINIT; |
43 | _GPFEXT void* gpf___get_stdout _GPFINIT; |
44 | _GPFEXT void* gpf___get_stderr _GPFINIT; |
45 | |
46 | _GPFEXT void* gpf_clearerr _GPFINIT; |
47 | _GPFEXT void* gpf_fclose _GPFINIT; |
48 | _GPFEXT void* gpf_feof _GPFINIT; |
49 | _GPFEXT void* gpf_ferror _GPFINIT; |
50 | _GPFEXT void* gpf_fflush _GPFINIT; |
51 | _GPFEXT void* gpf_fgetc _GPFINIT; |
52 | _GPFEXT void* gpf_fgetpos _GPFINIT; |
53 | _GPFEXT void* gpf_fgets _GPFINIT; |
54 | _GPFEXT void* gpf_fopen _GPFINIT; |
55 | _GPFEXT void* gpf_fprintf _GPFINIT; |
56 | _GPFEXT void* gpf_fputc _GPFINIT; |
57 | _GPFEXT void* gpf_fputs _GPFINIT; |
58 | _GPFEXT void* gpf_fread _GPFINIT; |
59 | _GPFEXT void* gpf_freopen _GPFINIT; |
60 | _GPFEXT void* gpf_fscanf _GPFINIT; |
61 | _GPFEXT void* gpf_fseek _GPFINIT; |
62 | _GPFEXT void* gpf_fsetpos _GPFINIT; |
63 | _GPFEXT void* gpf_ftell _GPFINIT; |
64 | _GPFEXT void* gpf_fwrite _GPFINIT; |
65 | _GPFEXT void* gpf_getc _GPFINIT; |
66 | _GPFEXT void* gpf_getchar _GPFINIT; |
67 | _GPFEXT void* gpf_gets _GPFINIT; |
68 | _GPFEXT void* gpf_perror _GPFINIT; |
69 | _GPFEXT void* gpf_printf _GPFINIT; |
70 | _GPFEXT void* gpf_putc _GPFINIT; |
71 | _GPFEXT void* gpf_putchar _GPFINIT; |
72 | _GPFEXT void* gpf_puts _GPFINIT; |
73 | _GPFEXT void* gpf_rename _GPFINIT; |
74 | _GPFEXT void* gpf_rewind _GPFINIT; |
75 | _GPFEXT void* gpf_scanf _GPFINIT; |
76 | _GPFEXT void* gpf_setbuf _GPFINIT; |
77 | _GPFEXT void* gpf_setvbuf _GPFINIT; |
78 | _GPFEXT void* gpf_sprintf _GPFINIT; |
79 | _GPFEXT void* gpf_sscanf _GPFINIT; |
80 | _GPFEXT void* gpf_tmpfile _GPFINIT; |
81 | _GPFEXT void* gpf_tmpnam _GPFINIT; |
82 | _GPFEXT void* gpf_ungetc _GPFINIT; |
83 | _GPFEXT void* gpf_vfprintf _GPFINIT; |
84 | _GPFEXT void* gpf_vfscanf _GPFINIT; |
85 | _GPFEXT void* gpf_vprintf _GPFINIT; |
86 | _GPFEXT void* gpf_vscanf _GPFINIT; |
87 | _GPFEXT void* gpf_vsprintf _GPFINIT; |
88 | _GPFEXT void* gpf_vsscanf _GPFINIT; |
89 | |
90 | _GPFEXT void* gpf_fdopen _GPFINIT; |
91 | _GPFEXT void* gpf_fileno _GPFINIT; |
92 | |
93 | _GPFEXT void* gpf_cgets _GPFINIT; |
94 | _GPFEXT void* gpf_cprintf _GPFINIT; |
95 | _GPFEXT void* gpf_cputs _GPFINIT; |
96 | _GPFEXT void* gpf_cscanf _GPFINIT; |
97 | _GPFEXT void* gpf_fcloseall _GPFINIT; |
98 | _GPFEXT void* gpf_fgetchar _GPFINIT; |
99 | _GPFEXT void* gpf_flushall _GPFINIT; |
100 | _GPFEXT void* gpf_fputchar _GPFINIT; |
101 | _GPFEXT void* gpf_getch _GPFINIT; |
102 | _GPFEXT void* gpf_getche _GPFINIT; |
103 | _GPFEXT void* gpf_putch _GPFINIT; |
104 | _GPFEXT void* gpf_ungetch _GPFINIT; |
105 | _GPFEXT void* gpf_vcprintf _GPFINIT; |
106 | _GPFEXT void* gpf_vcscanf _GPFINIT; |
107 | |
108 | #ifdef __cplusplus |
109 | } |
110 | #endif |
111 | |
112 | #pragma aux __get_stdin = "call gpf___get_stdin"; |
113 | #pragma aux __get_stdout = "call gpf___get_stdout"; |
114 | #pragma aux __get_stderr = "call gpf___get_stderr"; |
115 | |
116 | #pragma aux clearerr = "call gpf_clearerr"; |
117 | #pragma aux fclose = "call gpf_fclose"; |
118 | #pragma aux feof = "call gpf_feof"; |
119 | #pragma aux ferror = "call gpf_ferror"; |
120 | #pragma aux fflush = "call gpf_fflush"; |
121 | #pragma aux fgetc = "call gpf_fgetc"; |
122 | #pragma aux fgetpos = "call gpf_fgetpos"; |
123 | #pragma aux fgets = "call gpf_fgets"; |
124 | #pragma aux fopen = "call gpf_fopen"; |
125 | #pragma aux fprintf = "call gpf_fprintf"; |
126 | #pragma aux fputc = "call gpf_fputc"; |
127 | #pragma aux fputs = "call gpf_fputs"; |
128 | #pragma aux fread = "call gpf_fread"; |
129 | #pragma aux freopen = "call gpf_freopen"; |
130 | #pragma aux fscanf = "call gpf_fscanf"; |
131 | #pragma aux fseek = "call gpf_fseek"; |
132 | #pragma aux fsetpos = "call gpf_fsetpos"; |
133 | #pragma aux ftell = "call gpf_ftell"; |
134 | #pragma aux fwrite = "call gpf_fwrite"; |
135 | #pragma aux getc = "call gpf_getc"; |
136 | #pragma aux getchar = "call gpf_getchar"; |
137 | #pragma aux gets = "call gpf_gets"; |
138 | #pragma aux perror = "call gpf_perror"; |
139 | #pragma aux printf = "call gpf_printf"; |
140 | #pragma aux putc = "call gpf_putc"; |
141 | #pragma aux putchar = "call gpf_putchar"; |
142 | #pragma aux puts = "call gpf_puts"; |
143 | #pragma aux rename = "call gpf_rename"; |
144 | #pragma aux rewind = "call gpf_rewind"; |
145 | #pragma aux scanf = "call gpf_scanf"; |
146 | #pragma aux setbuf = "call gpf_setbuf"; |
147 | #pragma aux setvbuf = "call gpf_setvbuf"; |
148 | #pragma aux sprintf = "call gpf_sprintf"; |
149 | #pragma aux sscanf = "call gpf_sscanf"; |
150 | #pragma aux tmpfile = "call gpf_tmpfile"; |
151 | #pragma aux tmpnam = "call gpf_tmpnam"; |
152 | #pragma aux ungetc = "call gpf_ungetc"; |
153 | #pragma aux vfprintf = "call gpf_vfprintf"; |
154 | #pragma aux vfscanf = "call gpf_vfscanf"; |
155 | #pragma aux vprintf = "call gpf_vprintf"; |
156 | #pragma aux vscanf = "call gpf_vscanf"; |
157 | #pragma aux vsprintf = "call gpf_vsprintf"; |
158 | #pragma aux vsscanf = "call gpf_vsscanf"; |
159 | |
160 | #pragma aux fdopen = "call gpf_fdopen"; |
161 | #pragma aux fileno = "call gpf_fileno"; |
162 | |
163 | #pragma aux cgets = "call gpf_cgets"; |
164 | #pragma aux cprintf = "call gpf_cprintf"; |
165 | #pragma aux cputs = "call gpf_cputs"; |
166 | #pragma aux cscanf = "call gpf_cscanf"; |
167 | #pragma aux fcloseall = "call gpf_fcloseall"; |
168 | #pragma aux fgetchar = "call gpf_fgetchar"; |
169 | #pragma aux flushall = "call gpf_flushall"; |
170 | #pragma aux fputchar = "call gpf_fputchar"; |
171 | #pragma aux getch = "call gpf_getch"; |
172 | #pragma aux getche = "call gpf_getche"; |
173 | #pragma aux putch = "call gpf_putch"; |
174 | #pragma aux ungetch = "call gpf_ungetch"; |
175 | #pragma aux vcprintf = "call gpf_vcprintf"; |
176 | #pragma aux vcscanf = "call gpf_vcscanf"; |
177 | |
178 | |
179 | #endif // _CLIBSDIO_H_ |
180 | |