00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #if __GNUC__ >= 3
00033 #pragma GCC system_header
00034 #endif
00035
00036
00037 #if defined __need_mbstate_t || defined __need_wint_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 #include_next <wchar.h>
00051
00052 #else
00053
00054
00055 #ifndef _GL_WCHAR_H
00056
00057 #define _GL_ALREADY_INCLUDING_WCHAR_H
00058
00059 #if 1
00060 # include <features.h>
00061 #endif
00062
00063
00064
00065
00066
00067
00068 #ifndef __GLIBC__
00069 # include <stddef.h>
00070 # include <stdio.h>
00071 # include <time.h>
00072 #endif
00073
00074
00075
00076
00077 #if 1
00078 # include_next <wchar.h>
00079 #endif
00080
00081 #undef _GL_ALREADY_INCLUDING_WCHAR_H
00082
00083 #ifndef _GL_WCHAR_H
00084 #define _GL_WCHAR_H
00085
00086
00087 #ifndef _GL_CXXDEFS_H
00088 #define _GL_CXXDEFS_H
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151 #if defined __cplusplus
00152 # define _GL_EXTERN_C extern "C"
00153 #else
00154 # define _GL_EXTERN_C extern
00155 #endif
00156
00157
00158
00159
00160
00161
00162
00163
00164 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
00165 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
00166 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \
00167 _GL_EXTERN_C rettype rpl_func parameters_and_attributes
00168
00169
00170
00171
00172
00173
00174
00175
00176 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
00177 _GL_EXTERN_C rettype func parameters_and_attributes
00178
00179
00180
00181
00182
00183
00184
00185 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
00186 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
00187 #if defined __cplusplus && defined GNULIB_NAMESPACE
00188 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
00189 namespace GNULIB_NAMESPACE \
00190 { \
00191 rettype (*const func) parameters = ::rpl_func; \
00192 } \
00193 _GL_EXTERN_C int _gl_cxxalias_dummy
00194 #else
00195 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
00196 _GL_EXTERN_C int _gl_cxxalias_dummy
00197 #endif
00198
00199
00200
00201
00202
00203
00204 #if defined __cplusplus && defined GNULIB_NAMESPACE
00205 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
00206 namespace GNULIB_NAMESPACE \
00207 { \
00208 rettype (*const func) parameters = \
00209 reinterpret_cast<rettype(*)parameters>(::rpl_func); \
00210 } \
00211 _GL_EXTERN_C int _gl_cxxalias_dummy
00212 #else
00213 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
00214 _GL_EXTERN_C int _gl_cxxalias_dummy
00215 #endif
00216
00217
00218
00219
00220
00221
00222
00223
00224 #if defined __cplusplus && defined GNULIB_NAMESPACE
00225
00226
00227
00228
00229
00230
00231 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
00232 namespace GNULIB_NAMESPACE \
00233 { \
00234 static rettype (*func) parameters = ::func; \
00235 } \
00236 _GL_EXTERN_C int _gl_cxxalias_dummy
00237 #else
00238 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
00239 _GL_EXTERN_C int _gl_cxxalias_dummy
00240 #endif
00241
00242
00243
00244
00245
00246
00247 #if defined __cplusplus && defined GNULIB_NAMESPACE
00248 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
00249 namespace GNULIB_NAMESPACE \
00250 { \
00251 static rettype (*func) parameters = \
00252 reinterpret_cast<rettype(*)parameters>(::func); \
00253 } \
00254 _GL_EXTERN_C int _gl_cxxalias_dummy
00255 #else
00256 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
00257 _GL_EXTERN_C int _gl_cxxalias_dummy
00258 #endif
00259
00260
00261
00262
00263
00264
00265
00266 #if defined __cplusplus && defined GNULIB_NAMESPACE
00267
00268
00269
00270
00271
00272 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
00273 namespace GNULIB_NAMESPACE \
00274 { \
00275 static rettype (*func) parameters = \
00276 reinterpret_cast<rettype(*)parameters>( \
00277 (rettype2(*)parameters2)(::func)); \
00278 } \
00279 _GL_EXTERN_C int _gl_cxxalias_dummy
00280 #else
00281 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
00282 _GL_EXTERN_C int _gl_cxxalias_dummy
00283 #endif
00284
00285
00286
00287
00288
00289 #if defined __cplusplus && defined GNULIB_NAMESPACE
00290 # define _GL_CXXALIASWARN(func) \
00291 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
00292 # define _GL_CXXALIASWARN_1(func,namespace) \
00293 _GL_CXXALIASWARN_2 (func, namespace)
00294
00295
00296 # if !__OPTIMIZE__
00297 # define _GL_CXXALIASWARN_2(func,namespace) \
00298 _GL_WARN_ON_USE (func, \
00299 "The symbol ::" #func " refers to the system function. " \
00300 "Use " #namespace "::" #func " instead.")
00301 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00302 # define _GL_CXXALIASWARN_2(func,namespace) \
00303 extern __typeof__ (func) func
00304 # else
00305 # define _GL_CXXALIASWARN_2(func,namespace) \
00306 _GL_EXTERN_C int _gl_cxxalias_dummy
00307 # endif
00308 #else
00309 # define _GL_CXXALIASWARN(func) \
00310 _GL_EXTERN_C int _gl_cxxalias_dummy
00311 #endif
00312
00313
00314
00315
00316 #if defined __cplusplus && defined GNULIB_NAMESPACE
00317 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
00318 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
00319 GNULIB_NAMESPACE)
00320 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
00321 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
00322
00323
00324 # if !__OPTIMIZE__
00325 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00326 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
00327 "The symbol ::" #func " refers to the system function. " \
00328 "Use " #namespace "::" #func " instead.")
00329 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00330 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00331 extern __typeof__ (func) func
00332 # else
00333 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00334 _GL_EXTERN_C int _gl_cxxalias_dummy
00335 # endif
00336 #else
00337 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
00338 _GL_EXTERN_C int _gl_cxxalias_dummy
00339 #endif
00340
00341 #endif
00342
00343
00344
00345
00346
00347 #ifndef _GL_ARG_NONNULL
00348 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
00349 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
00350 # else
00351 # define _GL_ARG_NONNULL(params)
00352 # endif
00353 #endif
00354
00355
00356 #ifndef _GL_WARN_ON_USE
00357
00358 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00359
00360 # define _GL_WARN_ON_USE(function, message) \
00361 extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
00362 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00363
00364 # define _GL_WARN_ON_USE(function, message) \
00365 extern __typeof__ (function) function
00366 # else
00367 # define _GL_WARN_ON_USE(function, message) \
00368 _GL_WARN_EXTERN_C int _gl_warn_on_use
00369 # endif
00370 #endif
00371
00372
00373
00374
00375
00376
00377
00378 #ifndef _GL_WARN_ON_USE_CXX
00379 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00380 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00381 extern rettype function parameters_and_attributes \
00382 __attribute__ ((__warning__ (msg)))
00383 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00384
00385 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00386 extern rettype function parameters_and_attributes
00387 # else
00388 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00389 _GL_WARN_EXTERN_C int _gl_warn_on_use
00390 # endif
00391 #endif
00392
00393
00394
00395 #ifndef _GL_WARN_EXTERN_C
00396 # if defined __cplusplus
00397 # define _GL_WARN_EXTERN_C extern "C"
00398 # else
00399 # define _GL_WARN_EXTERN_C extern
00400 # endif
00401 #endif
00402
00403
00404
00405 #if !1 && !defined wint_t
00406 # define wint_t int
00407 # ifndef WEOF
00408 # define WEOF -1
00409 # endif
00410 #else
00411 # ifndef WEOF
00412 # define WEOF ((wint_t) -1)
00413 # endif
00414 #endif
00415
00416
00417
00418
00419
00420 #if !(1 && 1) || 0
00421 # if !GNULIB_defined_mbstate_t
00422 typedef int rpl_mbstate_t;
00423 # undef mbstate_t
00424 # define mbstate_t rpl_mbstate_t
00425 # define GNULIB_defined_mbstate_t 1
00426 # endif
00427 #endif
00428
00429
00430
00431 #if 0
00432 # if 0
00433 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00434 # undef btowc
00435 # define btowc rpl_btowc
00436 # endif
00437 _GL_FUNCDECL_RPL (btowc, wint_t, (int c));
00438 _GL_CXXALIAS_RPL (btowc, wint_t, (int c));
00439 # else
00440 # if !1
00441 _GL_FUNCDECL_SYS (btowc, wint_t, (int c));
00442 # endif
00443 _GL_CXXALIAS_SYS (btowc, wint_t, (int c));
00444 # endif
00445 _GL_CXXALIASWARN (btowc);
00446 #elif defined GNULIB_POSIXCHECK
00447 # undef btowc
00448 # if HAVE_RAW_DECL_BTOWC
00449 _GL_WARN_ON_USE (btowc, "btowc is unportable - "
00450 "use gnulib module btowc for portability");
00451 # endif
00452 #endif
00453
00454
00455
00456 #if 0
00457 # if 0
00458 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00459 # undef wctob
00460 # define wctob rpl_wctob
00461 # endif
00462 _GL_FUNCDECL_RPL (wctob, int, (wint_t wc));
00463 _GL_CXXALIAS_RPL (wctob, int, (wint_t wc));
00464 # else
00465 # if !defined wctob && !1
00466
00467 _GL_FUNCDECL_SYS (wctob, int, (wint_t wc));
00468 # endif
00469 _GL_CXXALIAS_SYS (wctob, int, (wint_t wc));
00470 # endif
00471 _GL_CXXALIASWARN (wctob);
00472 #elif defined GNULIB_POSIXCHECK
00473 # undef wctob
00474 # if HAVE_RAW_DECL_WCTOB
00475 _GL_WARN_ON_USE (wctob, "wctob is unportable - "
00476 "use gnulib module wctob for portability");
00477 # endif
00478 #endif
00479
00480
00481
00482 #if 1
00483 # if 0
00484 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00485 # undef mbsinit
00486 # define mbsinit rpl_mbsinit
00487 # endif
00488 _GL_FUNCDECL_RPL (mbsinit, int, (const mbstate_t *ps));
00489 _GL_CXXALIAS_RPL (mbsinit, int, (const mbstate_t *ps));
00490 # else
00491 # if !1
00492 _GL_FUNCDECL_SYS (mbsinit, int, (const mbstate_t *ps));
00493 # endif
00494 _GL_CXXALIAS_SYS (mbsinit, int, (const mbstate_t *ps));
00495 # endif
00496 _GL_CXXALIASWARN (mbsinit);
00497 #elif defined GNULIB_POSIXCHECK
00498 # undef mbsinit
00499 # if HAVE_RAW_DECL_MBSINIT
00500 _GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - "
00501 "use gnulib module mbsinit for portability");
00502 # endif
00503 #endif
00504
00505
00506
00507 #if 1
00508 # if 0
00509 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00510 # undef mbrtowc
00511 # define mbrtowc rpl_mbrtowc
00512 # endif
00513 _GL_FUNCDECL_RPL (mbrtowc, size_t,
00514 (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps));
00515 _GL_CXXALIAS_RPL (mbrtowc, size_t,
00516 (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps));
00517 # else
00518 # if !1
00519 _GL_FUNCDECL_SYS (mbrtowc, size_t,
00520 (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps));
00521 # endif
00522 _GL_CXXALIAS_SYS (mbrtowc, size_t,
00523 (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps));
00524 # endif
00525 _GL_CXXALIASWARN (mbrtowc);
00526 #elif defined GNULIB_POSIXCHECK
00527 # undef mbrtowc
00528 # if HAVE_RAW_DECL_MBRTOWC
00529 _GL_WARN_ON_USE (mbrtowc, "mbrtowc is unportable - "
00530 "use gnulib module mbrtowc for portability");
00531 # endif
00532 #endif
00533
00534
00535
00536 #if 0
00537 # if 0
00538 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00539 # undef mbrlen
00540 # define mbrlen rpl_mbrlen
00541 # endif
00542 _GL_FUNCDECL_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps));
00543 _GL_CXXALIAS_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps));
00544 # else
00545 # if !1
00546 _GL_FUNCDECL_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps));
00547 # endif
00548 _GL_CXXALIAS_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps));
00549 # endif
00550 _GL_CXXALIASWARN (mbrlen);
00551 #elif defined GNULIB_POSIXCHECK
00552 # undef mbrlen
00553 # if HAVE_RAW_DECL_MBRLEN
00554 _GL_WARN_ON_USE (mbrlen, "mbrlen is unportable - "
00555 "use gnulib module mbrlen for portability");
00556 # endif
00557 #endif
00558
00559
00560
00561 #if 1
00562 # if 0
00563 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00564 # undef mbsrtowcs
00565 # define mbsrtowcs rpl_mbsrtowcs
00566 # endif
00567 _GL_FUNCDECL_RPL (mbsrtowcs, size_t,
00568 (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps)
00569 _GL_ARG_NONNULL ((2)));
00570 _GL_CXXALIAS_RPL (mbsrtowcs, size_t,
00571 (wchar_t *dest, const char **srcp, size_t len,
00572 mbstate_t *ps));
00573 # else
00574 # if !1
00575 _GL_FUNCDECL_SYS (mbsrtowcs, size_t,
00576 (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps)
00577 _GL_ARG_NONNULL ((2)));
00578 # endif
00579 _GL_CXXALIAS_SYS (mbsrtowcs, size_t,
00580 (wchar_t *dest, const char **srcp, size_t len,
00581 mbstate_t *ps));
00582 # endif
00583 _GL_CXXALIASWARN (mbsrtowcs);
00584 #elif defined GNULIB_POSIXCHECK
00585 # undef mbsrtowcs
00586 # if HAVE_RAW_DECL_MBSRTOWCS
00587 _GL_WARN_ON_USE (mbsrtowcs, "mbsrtowcs is unportable - "
00588 "use gnulib module mbsrtowcs for portability");
00589 # endif
00590 #endif
00591
00592
00593
00594 #if 0
00595 # if 0
00596 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00597 # undef mbsnrtowcs
00598 # define mbsnrtowcs rpl_mbsnrtowcs
00599 # endif
00600 _GL_FUNCDECL_RPL (mbsnrtowcs, size_t,
00601 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
00602 mbstate_t *ps)
00603 _GL_ARG_NONNULL ((2)));
00604 _GL_CXXALIAS_RPL (mbsnrtowcs, size_t,
00605 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
00606 mbstate_t *ps));
00607 # else
00608 # if !1
00609 _GL_FUNCDECL_SYS (mbsnrtowcs, size_t,
00610 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
00611 mbstate_t *ps)
00612 _GL_ARG_NONNULL ((2)));
00613 # endif
00614 _GL_CXXALIAS_SYS (mbsnrtowcs, size_t,
00615 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
00616 mbstate_t *ps));
00617 # endif
00618 _GL_CXXALIASWARN (mbsnrtowcs);
00619 #elif defined GNULIB_POSIXCHECK
00620 # undef mbsnrtowcs
00621 # if HAVE_RAW_DECL_MBSNRTOWCS
00622 _GL_WARN_ON_USE (mbsnrtowcs, "mbsnrtowcs is unportable - "
00623 "use gnulib module mbsnrtowcs for portability");
00624 # endif
00625 #endif
00626
00627
00628
00629 #if 0
00630 # if 0
00631 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00632 # undef wcrtomb
00633 # define wcrtomb rpl_wcrtomb
00634 # endif
00635 _GL_FUNCDECL_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps));
00636 _GL_CXXALIAS_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps));
00637 # else
00638 # if !1
00639 _GL_FUNCDECL_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps));
00640 # endif
00641 _GL_CXXALIAS_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps));
00642 # endif
00643 _GL_CXXALIASWARN (wcrtomb);
00644 #elif defined GNULIB_POSIXCHECK
00645 # undef wcrtomb
00646 # if HAVE_RAW_DECL_WCRTOMB
00647 _GL_WARN_ON_USE (wcrtomb, "wcrtomb is unportable - "
00648 "use gnulib module wcrtomb for portability");
00649 # endif
00650 #endif
00651
00652
00653
00654 #if 0
00655 # if 0
00656 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00657 # undef wcsrtombs
00658 # define wcsrtombs rpl_wcsrtombs
00659 # endif
00660 _GL_FUNCDECL_RPL (wcsrtombs, size_t,
00661 (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps)
00662 _GL_ARG_NONNULL ((2)));
00663 _GL_CXXALIAS_RPL (wcsrtombs, size_t,
00664 (char *dest, const wchar_t **srcp, size_t len,
00665 mbstate_t *ps));
00666 # else
00667 # if !1
00668 _GL_FUNCDECL_SYS (wcsrtombs, size_t,
00669 (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps)
00670 _GL_ARG_NONNULL ((2)));
00671 # endif
00672 _GL_CXXALIAS_SYS (wcsrtombs, size_t,
00673 (char *dest, const wchar_t **srcp, size_t len,
00674 mbstate_t *ps));
00675 # endif
00676 _GL_CXXALIASWARN (wcsrtombs);
00677 #elif defined GNULIB_POSIXCHECK
00678 # undef wcsrtombs
00679 # if HAVE_RAW_DECL_WCSRTOMBS
00680 _GL_WARN_ON_USE (wcsrtombs, "wcsrtombs is unportable - "
00681 "use gnulib module wcsrtombs for portability");
00682 # endif
00683 #endif
00684
00685
00686
00687 #if 0
00688 # if 0
00689 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00690 # undef wcsnrtombs
00691 # define wcsnrtombs rpl_wcsnrtombs
00692 # endif
00693 _GL_FUNCDECL_RPL (wcsnrtombs, size_t,
00694 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
00695 mbstate_t *ps)
00696 _GL_ARG_NONNULL ((2)));
00697 _GL_CXXALIAS_RPL (wcsnrtombs, size_t,
00698 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
00699 mbstate_t *ps));
00700 # else
00701 # if !1
00702 _GL_FUNCDECL_SYS (wcsnrtombs, size_t,
00703 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
00704 mbstate_t *ps)
00705 _GL_ARG_NONNULL ((2)));
00706 # endif
00707 _GL_CXXALIAS_SYS (wcsnrtombs, size_t,
00708 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
00709 mbstate_t *ps));
00710 # endif
00711 _GL_CXXALIASWARN (wcsnrtombs);
00712 #elif defined GNULIB_POSIXCHECK
00713 # undef wcsnrtombs
00714 # if HAVE_RAW_DECL_WCSNRTOMBS
00715 _GL_WARN_ON_USE (wcsnrtombs, "wcsnrtombs is unportable - "
00716 "use gnulib module wcsnrtombs for portability");
00717 # endif
00718 #endif
00719
00720
00721
00722 #if 0
00723 # if 0
00724 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00725 # undef wcwidth
00726 # define wcwidth rpl_wcwidth
00727 # endif
00728 _GL_FUNCDECL_RPL (wcwidth, int, (wchar_t));
00729 _GL_CXXALIAS_RPL (wcwidth, int, (wchar_t));
00730 # else
00731 # if !1
00732
00733 _GL_FUNCDECL_SYS (wcwidth, int, (wchar_t));
00734 # endif
00735 _GL_CXXALIAS_SYS (wcwidth, int, (wchar_t));
00736 # endif
00737 _GL_CXXALIASWARN (wcwidth);
00738 #elif defined GNULIB_POSIXCHECK
00739 # undef wcwidth
00740 # if HAVE_RAW_DECL_WCWIDTH
00741 _GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - "
00742 "use gnulib module wcwidth for portability");
00743 # endif
00744 #endif
00745
00746
00747
00748 #if 0
00749 # if !1
00750 _GL_FUNCDECL_SYS (wmemchr, wchar_t *, (const wchar_t *s, wchar_t c, size_t n));
00751 # endif
00752 _GL_CXXALIAS_SYS (wmemchr, wchar_t *, (const wchar_t *s, wchar_t c, size_t n));
00753 _GL_CXXALIASWARN (wmemchr);
00754 #elif defined GNULIB_POSIXCHECK
00755 # undef wmemchr
00756 # if HAVE_RAW_DECL_WMEMCHR
00757 _GL_WARN_ON_USE (wmemchr, "wmemchr is unportable - "
00758 "use gnulib module wmemchr for portability");
00759 # endif
00760 #endif
00761
00762
00763
00764 #if 0
00765 # if !1
00766 _GL_FUNCDECL_SYS (wmemcmp, int,
00767 (const wchar_t *s1, const wchar_t *s2, size_t n));
00768 # endif
00769 _GL_CXXALIAS_SYS (wmemcmp, int,
00770 (const wchar_t *s1, const wchar_t *s2, size_t n));
00771 _GL_CXXALIASWARN (wmemcmp);
00772 #elif defined GNULIB_POSIXCHECK
00773 # undef wmemcmp
00774 # if HAVE_RAW_DECL_WMEMCMP
00775 _GL_WARN_ON_USE (wmemcmp, "wmemcmp is unportable - "
00776 "use gnulib module wmemcmp for portability");
00777 # endif
00778 #endif
00779
00780
00781
00782 #if 0
00783 # if !1
00784 _GL_FUNCDECL_SYS (wmemcpy, wchar_t *,
00785 (wchar_t *dest, const wchar_t *src, size_t n));
00786 # endif
00787 _GL_CXXALIAS_SYS (wmemcpy, wchar_t *,
00788 (wchar_t *dest, const wchar_t *src, size_t n));
00789 _GL_CXXALIASWARN (wmemcpy);
00790 #elif defined GNULIB_POSIXCHECK
00791 # undef wmemcpy
00792 # if HAVE_RAW_DECL_WMEMCPY
00793 _GL_WARN_ON_USE (wmemcpy, "wmemcpy is unportable - "
00794 "use gnulib module wmemcpy for portability");
00795 # endif
00796 #endif
00797
00798
00799
00800
00801 #if 0
00802 # if !1
00803 _GL_FUNCDECL_SYS (wmemmove, wchar_t *,
00804 (wchar_t *dest, const wchar_t *src, size_t n));
00805 # endif
00806 _GL_CXXALIAS_SYS (wmemmove, wchar_t *,
00807 (wchar_t *dest, const wchar_t *src, size_t n));
00808 _GL_CXXALIASWARN (wmemmove);
00809 #elif defined GNULIB_POSIXCHECK
00810 # undef wmemmove
00811 # if HAVE_RAW_DECL_WMEMMOVE
00812 _GL_WARN_ON_USE (wmemmove, "wmemmove is unportable - "
00813 "use gnulib module wmemmove for portability");
00814 # endif
00815 #endif
00816
00817
00818
00819 #if 0
00820 # if !1
00821 _GL_FUNCDECL_SYS (wmemset, wchar_t *, (wchar_t *s, wchar_t c, size_t n));
00822 # endif
00823 _GL_CXXALIAS_SYS (wmemset, wchar_t *, (wchar_t *s, wchar_t c, size_t n));
00824 _GL_CXXALIASWARN (wmemset);
00825 #elif defined GNULIB_POSIXCHECK
00826 # undef wmemset
00827 # if HAVE_RAW_DECL_WMEMSET
00828 _GL_WARN_ON_USE (wmemset, "wmemset is unportable - "
00829 "use gnulib module wmemset for portability");
00830 # endif
00831 #endif
00832
00833
00834
00835 #if 0
00836 # if !1
00837 _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s));
00838 # endif
00839 _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s));
00840 _GL_CXXALIASWARN (wcslen);
00841 #elif defined GNULIB_POSIXCHECK
00842 # undef wcslen
00843 # if HAVE_RAW_DECL_WCSLEN
00844 _GL_WARN_ON_USE (wcslen, "wcslen is unportable - "
00845 "use gnulib module wcslen for portability");
00846 # endif
00847 #endif
00848
00849
00850
00851 #if 0
00852 # if !1
00853 _GL_FUNCDECL_SYS (wcsnlen, size_t, (const wchar_t *s, size_t maxlen));
00854 # endif
00855 _GL_CXXALIAS_SYS (wcsnlen, size_t, (const wchar_t *s, size_t maxlen));
00856 _GL_CXXALIASWARN (wcsnlen);
00857 #elif defined GNULIB_POSIXCHECK
00858 # undef wcsnlen
00859 # if HAVE_RAW_DECL_WCSNLEN
00860 _GL_WARN_ON_USE (wcsnlen, "wcsnlen is unportable - "
00861 "use gnulib module wcsnlen for portability");
00862 # endif
00863 #endif
00864
00865
00866
00867 #if 0
00868 # if !1
00869 _GL_FUNCDECL_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
00870 # endif
00871 _GL_CXXALIAS_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
00872 _GL_CXXALIASWARN (wcscpy);
00873 #elif defined GNULIB_POSIXCHECK
00874 # undef wcscpy
00875 # if HAVE_RAW_DECL_WCSCPY
00876 _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - "
00877 "use gnulib module wcscpy for portability");
00878 # endif
00879 #endif
00880
00881
00882
00883 #if 0
00884 # if !1
00885 _GL_FUNCDECL_SYS (wcpcpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
00886 # endif
00887 _GL_CXXALIAS_SYS (wcpcpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
00888 _GL_CXXALIASWARN (wcpcpy);
00889 #elif defined GNULIB_POSIXCHECK
00890 # undef wcpcpy
00891 # if HAVE_RAW_DECL_WCPCPY
00892 _GL_WARN_ON_USE (wcpcpy, "wcpcpy is unportable - "
00893 "use gnulib module wcpcpy for portability");
00894 # endif
00895 #endif
00896
00897
00898
00899 #if 0
00900 # if !1
00901 _GL_FUNCDECL_SYS (wcsncpy, wchar_t *,
00902 (wchar_t *dest, const wchar_t *src, size_t n));
00903 # endif
00904 _GL_CXXALIAS_SYS (wcsncpy, wchar_t *,
00905 (wchar_t *dest, const wchar_t *src, size_t n));
00906 _GL_CXXALIASWARN (wcsncpy);
00907 #elif defined GNULIB_POSIXCHECK
00908 # undef wcsncpy
00909 # if HAVE_RAW_DECL_WCSNCPY
00910 _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - "
00911 "use gnulib module wcsncpy for portability");
00912 # endif
00913 #endif
00914
00915
00916
00917
00918 #if 0
00919 # if !1
00920 _GL_FUNCDECL_SYS (wcpncpy, wchar_t *,
00921 (wchar_t *dest, const wchar_t *src, size_t n));
00922 # endif
00923 _GL_CXXALIAS_SYS (wcpncpy, wchar_t *,
00924 (wchar_t *dest, const wchar_t *src, size_t n));
00925 _GL_CXXALIASWARN (wcpncpy);
00926 #elif defined GNULIB_POSIXCHECK
00927 # undef wcpncpy
00928 # if HAVE_RAW_DECL_WCPNCPY
00929 _GL_WARN_ON_USE (wcpncpy, "wcpncpy is unportable - "
00930 "use gnulib module wcpncpy for portability");
00931 # endif
00932 #endif
00933
00934
00935
00936 #if 0
00937 # if !1
00938 _GL_FUNCDECL_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src));
00939 # endif
00940 _GL_CXXALIAS_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src));
00941 _GL_CXXALIASWARN (wcscat);
00942 #elif defined GNULIB_POSIXCHECK
00943 # undef wcscat
00944 # if HAVE_RAW_DECL_WCSCAT
00945 _GL_WARN_ON_USE (wcscat, "wcscat is unportable - "
00946 "use gnulib module wcscat for portability");
00947 # endif
00948 #endif
00949
00950
00951
00952 #if 0
00953 # if !1
00954 _GL_FUNCDECL_SYS (wcsncat, wchar_t *,
00955 (wchar_t *dest, const wchar_t *src, size_t n));
00956 # endif
00957 _GL_CXXALIAS_SYS (wcsncat, wchar_t *,
00958 (wchar_t *dest, const wchar_t *src, size_t n));
00959 _GL_CXXALIASWARN (wcsncat);
00960 #elif defined GNULIB_POSIXCHECK
00961 # undef wcsncat
00962 # if HAVE_RAW_DECL_WCSNCAT
00963 _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - "
00964 "use gnulib module wcsncat for portability");
00965 # endif
00966 #endif
00967
00968
00969
00970 #if 0
00971 # if !1
00972 _GL_FUNCDECL_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2));
00973 # endif
00974 _GL_CXXALIAS_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2));
00975 _GL_CXXALIASWARN (wcscmp);
00976 #elif defined GNULIB_POSIXCHECK
00977 # undef wcscmp
00978 # if HAVE_RAW_DECL_WCSCMP
00979 _GL_WARN_ON_USE (wcscmp, "wcscmp is unportable - "
00980 "use gnulib module wcscmp for portability");
00981 # endif
00982 #endif
00983
00984
00985
00986 #if 0
00987 # if !1
00988 _GL_FUNCDECL_SYS (wcsncmp, int,
00989 (const wchar_t *s1, const wchar_t *s2, size_t n));
00990 # endif
00991 _GL_CXXALIAS_SYS (wcsncmp, int,
00992 (const wchar_t *s1, const wchar_t *s2, size_t n));
00993 _GL_CXXALIASWARN (wcsncmp);
00994 #elif defined GNULIB_POSIXCHECK
00995 # undef wcsncmp
00996 # if HAVE_RAW_DECL_WCSNCMP
00997 _GL_WARN_ON_USE (wcsncmp, "wcsncmp is unportable - "
00998 "use gnulib module wcsncmp for portability");
00999 # endif
01000 #endif
01001
01002
01003
01004 #if 0
01005 # if !1
01006 _GL_FUNCDECL_SYS (wcscasecmp, int, (const wchar_t *s1, const wchar_t *s2));
01007 # endif
01008 _GL_CXXALIAS_SYS (wcscasecmp, int, (const wchar_t *s1, const wchar_t *s2));
01009 _GL_CXXALIASWARN (wcscasecmp);
01010 #elif defined GNULIB_POSIXCHECK
01011 # undef wcscasecmp
01012 # if HAVE_RAW_DECL_WCSCASECMP
01013 _GL_WARN_ON_USE (wcscasecmp, "wcscasecmp is unportable - "
01014 "use gnulib module wcscasecmp for portability");
01015 # endif
01016 #endif
01017
01018
01019
01020 #if 0
01021 # if !1
01022 _GL_FUNCDECL_SYS (wcsncasecmp, int,
01023 (const wchar_t *s1, const wchar_t *s2, size_t n));
01024 # endif
01025 _GL_CXXALIAS_SYS (wcsncasecmp, int,
01026 (const wchar_t *s1, const wchar_t *s2, size_t n));
01027 _GL_CXXALIASWARN (wcsncasecmp);
01028 #elif defined GNULIB_POSIXCHECK
01029 # undef wcsncasecmp
01030 # if HAVE_RAW_DECL_WCSNCASECMP
01031 _GL_WARN_ON_USE (wcsncasecmp, "wcsncasecmp is unportable - "
01032 "use gnulib module wcsncasecmp for portability");
01033 # endif
01034 #endif
01035
01036
01037
01038
01039 #if 0
01040 # if !1
01041 _GL_FUNCDECL_SYS (wcscoll, int, (const wchar_t *s1, const wchar_t *s2));
01042 # endif
01043 _GL_CXXALIAS_SYS (wcscoll, int, (const wchar_t *s1, const wchar_t *s2));
01044 _GL_CXXALIASWARN (wcscoll);
01045 #elif defined GNULIB_POSIXCHECK
01046 # undef wcscoll
01047 # if HAVE_RAW_DECL_WCSCOLL
01048 _GL_WARN_ON_USE (wcscoll, "wcscoll is unportable - "
01049 "use gnulib module wcscoll for portability");
01050 # endif
01051 #endif
01052
01053
01054
01055
01056
01057 #if 0
01058 # if !1
01059 _GL_FUNCDECL_SYS (wcsxfrm, size_t, (wchar_t *s1, const wchar_t *s2, size_t n));
01060 # endif
01061 _GL_CXXALIAS_SYS (wcsxfrm, size_t, (wchar_t *s1, const wchar_t *s2, size_t n));
01062 _GL_CXXALIASWARN (wcsxfrm);
01063 #elif defined GNULIB_POSIXCHECK
01064 # undef wcsxfrm
01065 # if HAVE_RAW_DECL_WCSXFRM
01066 _GL_WARN_ON_USE (wcsxfrm, "wcsxfrm is unportable - "
01067 "use gnulib module wcsxfrm for portability");
01068 # endif
01069 #endif
01070
01071
01072
01073 #if 0
01074 # if !1
01075 _GL_FUNCDECL_SYS (wcsdup, wchar_t *, (const wchar_t *s));
01076 # endif
01077 _GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s));
01078 _GL_CXXALIASWARN (wcsdup);
01079 #elif defined GNULIB_POSIXCHECK
01080 # undef wcsdup
01081 # if HAVE_RAW_DECL_WCSDUP
01082 _GL_WARN_ON_USE (wcsdup, "wcsdup is unportable - "
01083 "use gnulib module wcsdup for portability");
01084 # endif
01085 #endif
01086
01087
01088
01089 #if 0
01090 # if !1
01091 _GL_FUNCDECL_SYS (wcschr, wchar_t *, (const wchar_t *wcs, wchar_t wc));
01092 # endif
01093 _GL_CXXALIAS_SYS (wcschr, wchar_t *, (const wchar_t *wcs, wchar_t wc));
01094 _GL_CXXALIASWARN (wcschr);
01095 #elif defined GNULIB_POSIXCHECK
01096 # undef wcschr
01097 # if HAVE_RAW_DECL_WCSCHR
01098 _GL_WARN_ON_USE (wcschr, "wcschr is unportable - "
01099 "use gnulib module wcschr for portability");
01100 # endif
01101 #endif
01102
01103
01104
01105 #if 0
01106 # if !1
01107 _GL_FUNCDECL_SYS (wcsrchr, wchar_t *, (const wchar_t *wcs, wchar_t wc));
01108 # endif
01109 _GL_CXXALIAS_SYS (wcsrchr, wchar_t *, (const wchar_t *wcs, wchar_t wc));
01110 _GL_CXXALIASWARN (wcsrchr);
01111 #elif defined GNULIB_POSIXCHECK
01112 # undef wcsrchr
01113 # if HAVE_RAW_DECL_WCSRCHR
01114 _GL_WARN_ON_USE (wcsrchr, "wcsrchr is unportable - "
01115 "use gnulib module wcsrchr for portability");
01116 # endif
01117 #endif
01118
01119
01120
01121
01122 #if 0
01123 # if !1
01124 _GL_FUNCDECL_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject));
01125 # endif
01126 _GL_CXXALIAS_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject));
01127 _GL_CXXALIASWARN (wcscspn);
01128 #elif defined GNULIB_POSIXCHECK
01129 # undef wcscspn
01130 # if HAVE_RAW_DECL_WCSCSPN
01131 _GL_WARN_ON_USE (wcscspn, "wcscspn is unportable - "
01132 "use gnulib module wcscspn for portability");
01133 # endif
01134 #endif
01135
01136
01137
01138
01139 #if 0
01140 # if !1
01141 _GL_FUNCDECL_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept));
01142 # endif
01143 _GL_CXXALIAS_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept));
01144 _GL_CXXALIASWARN (wcsspn);
01145 #elif defined GNULIB_POSIXCHECK
01146 # undef wcsspn
01147 # if HAVE_RAW_DECL_WCSSPN
01148 _GL_WARN_ON_USE (wcsspn, "wcsspn is unportable - "
01149 "use gnulib module wcsspn for portability");
01150 # endif
01151 #endif
01152
01153
01154
01155 #if 0
01156 # if !1
01157 _GL_FUNCDECL_SYS (wcspbrk, wchar_t *,
01158 (const wchar_t *wcs, const wchar_t *accept));
01159 # endif
01160 _GL_CXXALIAS_SYS (wcspbrk, wchar_t *,
01161 (const wchar_t *wcs, const wchar_t *accept));
01162 _GL_CXXALIASWARN (wcspbrk);
01163 #elif defined GNULIB_POSIXCHECK
01164 # undef wcspbrk
01165 # if HAVE_RAW_DECL_WCSPBRK
01166 _GL_WARN_ON_USE (wcspbrk, "wcspbrk is unportable - "
01167 "use gnulib module wcspbrk for portability");
01168 # endif
01169 #endif
01170
01171
01172
01173 #if 0
01174 # if !1
01175 _GL_FUNCDECL_SYS (wcsstr, wchar_t *,
01176 (const wchar_t *haystack, const wchar_t *needle));
01177 # endif
01178 _GL_CXXALIAS_SYS (wcsstr, wchar_t *,
01179 (const wchar_t *haystack, const wchar_t *needle));
01180 _GL_CXXALIASWARN (wcsstr);
01181 #elif defined GNULIB_POSIXCHECK
01182 # undef wcsstr
01183 # if HAVE_RAW_DECL_WCSSTR
01184 _GL_WARN_ON_USE (wcsstr, "wcsstr is unportable - "
01185 "use gnulib module wcsstr for portability");
01186 # endif
01187 #endif
01188
01189
01190
01191 #if 0
01192 # if !1
01193 _GL_FUNCDECL_SYS (wcstok, wchar_t *,
01194 (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr));
01195 # endif
01196 _GL_CXXALIAS_SYS (wcstok, wchar_t *,
01197 (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr));
01198 _GL_CXXALIASWARN (wcstok);
01199 #elif defined GNULIB_POSIXCHECK
01200 # undef wcstok
01201 # if HAVE_RAW_DECL_WCSTOK
01202 _GL_WARN_ON_USE (wcstok, "wcstok is unportable - "
01203 "use gnulib module wcstok for portability");
01204 # endif
01205 #endif
01206
01207
01208
01209
01210 #if 0
01211 # if 0
01212 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01213 # undef wcswidth
01214 # define wcswidth rpl_wcswidth
01215 # endif
01216 _GL_FUNCDECL_RPL (wcswidth, int, (const wchar_t *s, size_t n));
01217 _GL_CXXALIAS_RPL (wcswidth, int, (const wchar_t *s, size_t n));
01218 # else
01219 # if !1
01220 _GL_FUNCDECL_SYS (wcswidth, int, (const wchar_t *s, size_t n));
01221 # endif
01222 _GL_CXXALIAS_SYS (wcswidth, int, (const wchar_t *s, size_t n));
01223 # endif
01224 _GL_CXXALIASWARN (wcswidth);
01225 #elif defined GNULIB_POSIXCHECK
01226 # undef wcswidth
01227 # if HAVE_RAW_DECL_WCSWIDTH
01228 _GL_WARN_ON_USE (wcswidth, "wcswidth is unportable - "
01229 "use gnulib module wcswidth for portability");
01230 # endif
01231 #endif
01232
01233
01234 #endif
01235 #endif
01236 #endif