The MinGW.org Windows System Libraries
Revisão | f84dab450bcb689bafeae200e4d764675bf5883a (tree) |
---|---|
Hora | 2016-09-18 04:00:10 |
Autor | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Stricter <wchar.h> ISO-C99 conformity filtering.
@@ -1,3 +1,10 @@ | ||
1 | +2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Stricter <wchar.h> ISO-C99 conformity filtering. | |
4 | + | |
5 | + * include/wchar.h [__STRICT_ANSI__]: Do not include any part of... | |
6 | + (direct.h, io.h, sys/stat.h, locale.h, process.h): ...any of these. | |
7 | + | |
1 | 8 | 2016-09-14 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 9 | |
3 | 10 | Relax strict ISO-C conformity to facilitate C99 support. |
@@ -190,7 +190,11 @@ | ||
190 | 190 | * long double wcstold (const wchar_t *restrict, wchar_t **restrict); |
191 | 191 | * |
192 | 192 | * |
193 | - * while from... | |
193 | + * while... | |
194 | + */ | |
195 | +#ifndef __STRICT_ANSI__ | |
196 | +/* ...when NOT compiling with "__STRICT_ANSI__" conformity checking, | |
197 | + * from... | |
194 | 198 | */ |
195 | 199 | #include "direct.h" |
196 | 200 | /* ...we obtain prototypes for each of the following functions, |
@@ -203,7 +207,7 @@ | ||
203 | 207 | * int _wrmdir (const wchar_t *); |
204 | 208 | * |
205 | 209 | * |
206 | - * From... | |
210 | + * while from... | |
207 | 211 | */ |
208 | 212 | #include "sys/stat.h" |
209 | 213 | /* ...we obtain function prototypes, and all associated data type |
@@ -228,7 +232,7 @@ | ||
228 | 232 | * int _wstat64i32 (const wchar_t *, struct _stat64i32 *); |
229 | 233 | * |
230 | 234 | * |
231 | - * while from... | |
235 | + * and from... | |
232 | 236 | */ |
233 | 237 | #include "io.h" |
234 | 238 | /* ...we obtain function prototypes for each of the following, which |
@@ -278,12 +282,13 @@ | ||
278 | 282 | * and _wfindnext() API, so we also declare the prototype for: |
279 | 283 | * |
280 | 284 | * int _findclose (intptr_t); |
281 | - * | |
282 | - * | |
283 | - * and from... | |
285 | + */ | |
286 | +#endif /* !__STRICT_ANSI__ */ | |
287 | + | |
288 | +/* From... | |
284 | 289 | */ |
285 | 290 | #include "time.h" |
286 | -/* ...we obtain an opaque forward declaration of: | |
291 | +/* ...we always obtain an opaque forward declaration of: | |
287 | 292 | * |
288 | 293 | * struct tm |
289 | 294 | * |
@@ -315,8 +320,10 @@ | ||
315 | 320 | * _wctime() itself, as an in-line alias for its corresponding |
316 | 321 | * replacement library function. |
317 | 322 | * |
318 | - * | |
319 | - * Also, from... | |
323 | + */ | |
324 | +#ifndef __STRICT_ANSI__ | |
325 | +/* Once again, when NOT compiling with "__STRICT_ANSI__" conformity | |
326 | + * checking, from... | |
320 | 327 | */ |
321 | 328 | #include "locale.h" |
322 | 329 | /* ...we obtain the declaration for: |
@@ -358,6 +365,8 @@ | ||
358 | 365 | * ); |
359 | 366 | * |
360 | 367 | */ |
368 | +#endif /* !__STRICT_ANSI__ */ | |
369 | + | |
361 | 370 | _BEGIN_C_DECLS |
362 | 371 | |
363 | 372 | /* Wide character string functions must be specified here, as required |