| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
#if __GNUC__ >= 3 |
| 29 |
@PRAGMA_SYSTEM_HEADER@ |
| 30 |
#endif |
| 31 |
@PRAGMA_COLUMNS@ |
| 32 |
|
| 33 |
#if (((defined __need_mbstate_t || defined __need_wint_t) \ |
| 34 |
&& !defined __MINGW32__) \ |
| 35 |
|| (defined __hpux \ |
| 36 |
&& ((defined _INTTYPES_INCLUDED \ |
| 37 |
&& !defined _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H) \ |
| 38 |
|| defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) \ |
| 39 |
|| (defined __MINGW32__ && defined __STRING_H_SOURCED__) \ |
| 40 |
|| defined _GL_ALREADY_INCLUDING_WCHAR_H) |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
#@INCLUDE_NEXT@ @NEXT_WCHAR_H@ |
| 56 |
|
| 57 |
#else |
| 58 |
|
| 59 |
|
| 60 |
#ifndef _@GUARD_PREFIX@_WCHAR_H |
| 61 |
|
| 62 |
#define _GL_ALREADY_INCLUDING_WCHAR_H |
| 63 |
|
| 64 |
#if @HAVE_FEATURES_H@ |
| 65 |
# include <features.h> |
| 66 |
#endif |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
#if !(defined __GLIBC__ && !defined __UCLIBC__) |
| 72 |
# include <stddef.h> |
| 73 |
#endif |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
#if @HAVE_WCHAR_H@ |
| 79 |
# @INCLUDE_NEXT@ @NEXT_WCHAR_H@ |
| 80 |
#endif |
| 81 |
|
| 82 |
#undef _GL_ALREADY_INCLUDING_WCHAR_H |
| 83 |
|
| 84 |
#ifndef _@GUARD_PREFIX@_WCHAR_H |
| 85 |
#define _@GUARD_PREFIX@_WCHAR_H |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
#if !_GL_CONFIG_H_INCLUDED |
| 91 |
#error "Please include config.h first." |
| 92 |
#endif |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
#ifndef _GL_ATTRIBUTE_DEALLOC |
| 98 |
# if __GNUC__ >= 11 && !defined __clang__ |
| 99 |
# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) |
| 100 |
# else |
| 101 |
# define _GL_ATTRIBUTE_DEALLOC(f, i) |
| 102 |
# endif |
| 103 |
#endif |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
#ifndef _GL_ATTRIBUTE_DEALLOC_FREE |
| 109 |
# if defined __cplusplus && defined __GNUC__ && !defined __clang__ |
| 110 |
|
| 111 |
# define _GL_ATTRIBUTE_DEALLOC_FREE \ |
| 112 |
_GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1) |
| 113 |
# else |
| 114 |
# define _GL_ATTRIBUTE_DEALLOC_FREE \ |
| 115 |
_GL_ATTRIBUTE_DEALLOC (free, 1) |
| 116 |
# endif |
| 117 |
#endif |
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
#ifndef _GL_ATTRIBUTE_MALLOC |
| 123 |
# if __GNUC__ >= 3 || defined __clang__ |
| 124 |
# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) |
| 125 |
# else |
| 126 |
# define _GL_ATTRIBUTE_MALLOC |
| 127 |
# endif |
| 128 |
#endif |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
#ifndef _GL_ATTRIBUTE_PURE |
| 133 |
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__ |
| 134 |
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) |
| 135 |
# else |
| 136 |
# define _GL_ATTRIBUTE_PURE |
| 137 |
# endif |
| 138 |
#endif |
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
#ifndef _GL_ATTRIBUTE_NOTHROW |
| 143 |
# if defined __cplusplus |
| 144 |
# if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4 |
| 145 |
# if __cplusplus >= 201103L |
| 146 |
# define _GL_ATTRIBUTE_NOTHROW noexcept (true) |
| 147 |
# else |
| 148 |
# define _GL_ATTRIBUTE_NOTHROW throw () |
| 149 |
# endif |
| 150 |
# else |
| 151 |
# define _GL_ATTRIBUTE_NOTHROW |
| 152 |
# endif |
| 153 |
# else |
| 154 |
# if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 3) || defined __clang__ |
| 155 |
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__)) |
| 156 |
# else |
| 157 |
# define _GL_ATTRIBUTE_NOTHROW |
| 158 |
# endif |
| 159 |
# endif |
| 160 |
#endif |
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
#if !@HAVE_WINT_T@ && !defined wint_t |
| 171 |
# define wint_t int |
| 172 |
# ifndef WEOF |
| 173 |
# define WEOF -1 |
| 174 |
# endif |
| 175 |
#else |
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
# if @GNULIBHEADERS_OVERRIDE_WINT_T@ |
| 180 |
# if !GNULIB_defined_wint_t |
| 181 |
# if @HAVE_CRTDEFS_H@ |
| 182 |
# include <crtdefs.h> |
| 183 |
# else |
| 184 |
# include <stddef.h> |
| 185 |
# endif |
| 186 |
typedef unsigned int rpl_wint_t; |
| 187 |
# undef wint_t |
| 188 |
# define wint_t rpl_wint_t |
| 189 |
# define GNULIB_defined_wint_t 1 |
| 190 |
# endif |
| 191 |
# endif |
| 192 |
# ifndef WEOF |
| 193 |
# define WEOF ((wint_t) -1) |
| 194 |
# endif |
| 195 |
#endif |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
#if !(((defined _WIN32 && !defined __CYGWIN__) || @HAVE_MBSINIT@) && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@ |
| 204 |
# if !GNULIB_defined_mbstate_t |
| 205 |
# if !(defined _AIX || defined _MSC_VER) |
| 206 |
typedef int rpl_mbstate_t; |
| 207 |
# undef mbstate_t |
| 208 |
# define mbstate_t rpl_mbstate_t |
| 209 |
# endif |
| 210 |
# define GNULIB_defined_mbstate_t 1 |
| 211 |
# endif |
| 212 |
#endif |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
#if @GNULIB_FREE_POSIX@ |
| 217 |
# if (@REPLACE_FREE@ && !defined free \ |
| 218 |
&& !(defined __cplusplus && defined GNULIB_NAMESPACE)) |
| 219 |
|
| 220 |
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) |
| 221 |
_GL_EXTERN_C void rpl_free (void *) _GL_ATTRIBUTE_NOTHROW; |
| 222 |
# else |
| 223 |
_GL_EXTERN_C void rpl_free (void *); |
| 224 |
# endif |
| 225 |
# undef _GL_ATTRIBUTE_DEALLOC_FREE |
| 226 |
# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1) |
| 227 |
# else |
| 228 |
# if defined _MSC_VER && !defined free |
| 229 |
_GL_EXTERN_C |
| 230 |
# if defined _DLL |
| 231 |
__declspec (dllimport) |
| 232 |
# endif |
| 233 |
void __cdecl free (void *); |
| 234 |
# else |
| 235 |
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) |
| 236 |
_GL_EXTERN_C void free (void *) _GL_ATTRIBUTE_NOTHROW; |
| 237 |
# else |
| 238 |
_GL_EXTERN_C void free (void *); |
| 239 |
# endif |
| 240 |
# endif |
| 241 |
# endif |
| 242 |
#else |
| 243 |
# if defined _MSC_VER && !defined free |
| 244 |
_GL_EXTERN_C |
| 245 |
# if defined _DLL |
| 246 |
__declspec (dllimport) |
| 247 |
# endif |
| 248 |
void __cdecl free (void *); |
| 249 |
# else |
| 250 |
# if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) |
| 251 |
_GL_EXTERN_C void free (void *) _GL_ATTRIBUTE_NOTHROW; |
| 252 |
# else |
| 253 |
_GL_EXTERN_C void free (void *); |
| 254 |
# endif |
| 255 |
# endif |
| 256 |
#endif |
| 257 |
|
| 258 |
|
| 259 |
#if @GNULIB_MBSZERO@ |
| 260 |
|
| 261 |
# include <string.h> |
| 262 |
#endif |
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
#if @GNULIB_BTOWC@ |
| 267 |
# if @REPLACE_BTOWC@ |
| 268 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 269 |
# undef btowc |
| 270 |
# define btowc rpl_btowc |
| 271 |
# endif |
| 272 |
_GL_FUNCDECL_RPL (btowc, wint_t, (int c) _GL_ATTRIBUTE_PURE); |
| 273 |
_GL_CXXALIAS_RPL (btowc, wint_t, (int c)); |
| 274 |
# else |
| 275 |
# if !@HAVE_BTOWC@ |
| 276 |
_GL_FUNCDECL_SYS (btowc, wint_t, (int c) _GL_ATTRIBUTE_PURE); |
| 277 |
# endif |
| 278 |
|
| 279 |
_GL_CXXALIAS_SYS_CAST (btowc, wint_t, (int c)); |
| 280 |
# endif |
| 281 |
# if __GLIBC__ >= 2 |
| 282 |
_GL_CXXALIASWARN (btowc); |
| 283 |
# endif |
| 284 |
#elif defined GNULIB_POSIXCHECK |
| 285 |
# undef btowc |
| 286 |
# if HAVE_RAW_DECL_BTOWC |
| 287 |
_GL_WARN_ON_USE (btowc, "btowc is unportable - " |
| 288 |
"use gnulib module btowc for portability"); |
| 289 |
# endif |
| 290 |
#endif |
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
#if @GNULIB_WCTOB@ |
| 295 |
# if @REPLACE_WCTOB@ |
| 296 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 297 |
# undef wctob |
| 298 |
# define wctob rpl_wctob |
| 299 |
# endif |
| 300 |
_GL_FUNCDECL_RPL (wctob, int, (wint_t wc) _GL_ATTRIBUTE_PURE); |
| 301 |
_GL_CXXALIAS_RPL (wctob, int, (wint_t wc)); |
| 302 |
# else |
| 303 |
# if !defined wctob && !@HAVE_DECL_WCTOB@ |
| 304 |
|
| 305 |
_GL_FUNCDECL_SYS (wctob, int, (wint_t wc) _GL_ATTRIBUTE_PURE); |
| 306 |
# endif |
| 307 |
_GL_CXXALIAS_SYS (wctob, int, (wint_t wc)); |
| 308 |
# endif |
| 309 |
# if __GLIBC__ >= 2 |
| 310 |
_GL_CXXALIASWARN (wctob); |
| 311 |
# endif |
| 312 |
#elif defined GNULIB_POSIXCHECK |
| 313 |
# undef wctob |
| 314 |
# if HAVE_RAW_DECL_WCTOB |
| 315 |
_GL_WARN_ON_USE (wctob, "wctob is unportable - " |
| 316 |
"use gnulib module wctob for portability"); |
| 317 |
# endif |
| 318 |
#endif |
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
#if @GNULIB_MBSINIT@ |
| 323 |
# if @REPLACE_MBSINIT@ |
| 324 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 325 |
# undef mbsinit |
| 326 |
# define mbsinit rpl_mbsinit |
| 327 |
# endif |
| 328 |
_GL_FUNCDECL_RPL (mbsinit, int, (const mbstate_t *ps)); |
| 329 |
_GL_CXXALIAS_RPL (mbsinit, int, (const mbstate_t *ps)); |
| 330 |
# else |
| 331 |
# if !@HAVE_MBSINIT@ |
| 332 |
_GL_FUNCDECL_SYS (mbsinit, int, (const mbstate_t *ps)); |
| 333 |
# endif |
| 334 |
_GL_CXXALIAS_SYS (mbsinit, int, (const mbstate_t *ps)); |
| 335 |
# endif |
| 336 |
# if __GLIBC__ >= 2 |
| 337 |
_GL_CXXALIASWARN (mbsinit); |
| 338 |
# endif |
| 339 |
#elif defined GNULIB_POSIXCHECK |
| 340 |
# undef mbsinit |
| 341 |
# if HAVE_RAW_DECL_MBSINIT |
| 342 |
_GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - " |
| 343 |
"use gnulib module mbsinit for portability"); |
| 344 |
# endif |
| 345 |
#endif |
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
#if @GNULIB_MBSZERO@ |
| 350 |
e |
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
# if GNULIB_defined_mbstate_t |
| 382 |
|
| 383 |
|
| 384 |
# define _GL_MBSTATE_INIT_SIZE 1 |
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
# elif __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2 |
| 389 |
|
| 390 |
|
| 391 |
# define _GL_MBSTATE_INIT_SIZE 4 |
| 392 |
# define _GL_MBSTATE_ZERO_SIZE sizeof (mbstate_t) |
| 393 |
# elif defined MUSL_LIBC |
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
# define _GL_MBSTATE_INIT_SIZE 4 |
| 399 |
# define _GL_MBSTATE_ZERO_SIZE 4 |
| 400 |
# elif defined __APPLE__ && defined __MACH__ |
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
# define _GL_MBSTATE_INIT_SIZE 12 |
| 419 |
# define _GL_MBSTATE_ZERO_SIZE 12 |
| 420 |
# elif defined __FreeBSD__ |
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
|
| 437 |
# define _GL_MBSTATE_INIT_SIZE 12 |
| 438 |
# define _GL_MBSTATE_ZERO_SIZE 12 |
| 439 |
# elif defined __NetBSD__ |
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
|
| 448 |
|
| 449 |
|
| 450 |
|
| 451 |
|
| 452 |
|
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
# define _GL_MBSTATE_ZERO_SIZE 28 |
| 460 |
# elif defined __OpenBSD__ |
| 461 |
|
| 462 |
|
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
# define _GL_MBSTATE_INIT_SIZE 12 |
| 469 |
# define _GL_MBSTATE_ZERO_SIZE 12 |
| 470 |
# elif defined __minix |
| 471 |
|
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
|
| 479 |
# define _GL_MBSTATE_ZERO_SIZE 4 |
| 480 |
# elif defined __sun |
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
|
| 502 |
|
| 503 |
|
| 504 |
# elif defined __CYGWIN__ |
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
# define _GL_MBSTATE_INIT_SIZE 4 |
| 509 |
# define _GL_MBSTATE_ZERO_SIZE 8 |
| 510 |
# elif defined _WIN32 && !defined __CYGWIN__ |
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
# elif defined __ANDROID__ |
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
# define _GL_MBSTATE_INIT_SIZE 4 |
| 524 |
# define _GL_MBSTATE_ZERO_SIZE 4 |
| 525 |
# endif |
| 526 |
|
| 527 |
# ifndef _GL_MBSTATE_INIT_SIZE |
| 528 |
# define _GL_MBSTATE_INIT_SIZE sizeof (mbstate_t) |
| 529 |
# endif |
| 530 |
# ifndef _GL_MBSTATE_ZERO_SIZE |
| 531 |
# define _GL_MBSTATE_ZERO_SIZE sizeof (mbstate_t) |
| 532 |
# endif |
| 533 |
_GL_BEGIN_C_LINKAGE |
| 534 |
# if defined IN_MBSZERO |
| 535 |
_GL_EXTERN_INLINE |
| 536 |
# else |
| 537 |
_GL_INLINE |
| 538 |
# endif |
| 539 |
_GL_ARG_NONNULL ((1)) void |
| 540 |
mbszero (mbstate_t *ps) |
| 541 |
{ |
| 542 |
memset (ps, 0, _GL_MBSTATE_ZERO_SIZE); |
| 543 |
} |
| 544 |
_GL_END_C_LINKAGE |
| 545 |
_GL_CXXALIAS_SYS (mbszero, void, (mbstate_t *ps)); |
| 546 |
_GL_CXXALIASWARN (mbszero); |
| 547 |
#endif |
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
#if @GNULIB_MBRTOWC@ |
| 552 |
# if @REPLACE_MBRTOWC@ |
| 553 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 554 |
# undef mbrtowc |
| 555 |
# define mbrtowc rpl_mbrtowc |
| 556 |
# endif |
| 557 |
_GL_FUNCDECL_RPL (mbrtowc, size_t, |
| 558 |
(wchar_t *restrict pwc, const char *restrict s, size_t n, |
| 559 |
mbstate_t *restrict ps)); |
| 560 |
_GL_CXXALIAS_RPL (mbrtowc, size_t, |
| 561 |
(wchar_t *restrict pwc, const char *restrict s, size_t n, |
| 562 |
mbstate_t *restrict ps)); |
| 563 |
# else |
| 564 |
# if !@HAVE_MBRTOWC@ |
| 565 |
_GL_FUNCDECL_SYS (mbrtowc, size_t, |
| 566 |
(wchar_t *restrict pwc, const char *restrict s, size_t n, |
| 567 |
mbstate_t *restrict ps)); |
| 568 |
# endif |
| 569 |
_GL_CXXALIAS_SYS (mbrtowc, size_t, |
| 570 |
(wchar_t *restrict pwc, const char *restrict s, size_t n, |
| 571 |
mbstate_t *restrict ps)); |
| 572 |
# endif |
| 573 |
# if __GLIBC__ >= 2 |
| 574 |
_GL_CXXALIASWARN (mbrtowc); |
| 575 |
# endif |
| 576 |
#elif defined GNULIB_POSIXCHECK |
| 577 |
# undef mbrtowc |
| 578 |
# if HAVE_RAW_DECL_MBRTOWC |
| 579 |
_GL_WARN_ON_USE (mbrtowc, "mbrtowc is unportable - " |
| 580 |
"use gnulib module mbrtowc for portability"); |
| 581 |
# endif |
| 582 |
#endif |
| 583 |
|
| 584 |
|
| 585 |
|
| 586 |
#if @GNULIB_MBRLEN@ |
| 587 |
# if @REPLACE_MBRLEN@ |
| 588 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 589 |
# undef mbrlen |
| 590 |
# define mbrlen rpl_mbrlen |
| 591 |
# endif |
| 592 |
_GL_FUNCDECL_RPL (mbrlen, size_t, |
| 593 |
(const char *restrict s, size_t n, mbstate_t *restrict ps)); |
| 594 |
_GL_CXXALIAS_RPL (mbrlen, size_t, |
| 595 |
(const char *restrict s, size_t n, mbstate_t *restrict ps)); |
| 596 |
# else |
| 597 |
# if !@HAVE_MBRLEN@ |
| 598 |
_GL_FUNCDECL_SYS (mbrlen, size_t, |
| 599 |
(const char *restrict s, size_t n, mbstate_t *restrict ps)); |
| 600 |
# endif |
| 601 |
_GL_CXXALIAS_SYS (mbrlen, size_t, |
| 602 |
(const char *restrict s, size_t n, mbstate_t *restrict ps)); |
| 603 |
# endif |
| 604 |
# if __GLIBC__ >= 2 |
| 605 |
_GL_CXXALIASWARN (mbrlen); |
| 606 |
# endif |
| 607 |
#elif defined GNULIB_POSIXCHECK |
| 608 |
# undef mbrlen |
| 609 |
# if HAVE_RAW_DECL_MBRLEN |
| 610 |
_GL_WARN_ON_USE (mbrlen, "mbrlen is unportable - " |
| 611 |
"use gnulib module mbrlen for portability"); |
| 612 |
# endif |
| 613 |
#endif |
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
#if @GNULIB_MBSRTOWCS@ |
| 618 |
# if @REPLACE_MBSRTOWCS@ |
| 619 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 620 |
# undef mbsrtowcs |
| 621 |
# define mbsrtowcs rpl_mbsrtowcs |
| 622 |
# endif |
| 623 |
_GL_FUNCDECL_RPL (mbsrtowcs, size_t, |
| 624 |
(wchar_t *restrict dest, |
| 625 |
const char **restrict srcp, size_t len, |
| 626 |
mbstate_t *restrict ps) |
| 627 |
_GL_ARG_NONNULL ((2))); |
| 628 |
_GL_CXXALIAS_RPL (mbsrtowcs, size_t, |
| 629 |
(wchar_t *restrict dest, |
| 630 |
const char **restrict srcp, size_t len, |
| 631 |
mbstate_t *restrict ps)); |
| 632 |
# else |
| 633 |
# if !@HAVE_MBSRTOWCS@ |
| 634 |
_GL_FUNCDECL_SYS (mbsrtowcs, size_t, |
| 635 |
(wchar_t *restrict dest, |
| 636 |
const char **restrict srcp, size_t len, |
| 637 |
mbstate_t *restrict ps) |
| 638 |
_GL_ARG_NONNULL ((2))); |
| 639 |
# endif |
| 640 |
_GL_CXXALIAS_SYS (mbsrtowcs, size_t, |
| 641 |
(wchar_t *restrict dest, |
| 642 |
const char **restrict srcp, size_t len, |
| 643 |
mbstate_t *restrict ps)); |
| 644 |
# endif |
| 645 |
# if __GLIBC__ >= 2 |
| 646 |
_GL_CXXALIASWARN (mbsrtowcs); |
| 647 |
# endif |
| 648 |
#elif defined GNULIB_POSIXCHECK |
| 649 |
# undef mbsrtowcs |
| 650 |
# if HAVE_RAW_DECL_MBSRTOWCS |
| 651 |
_GL_WARN_ON_USE (mbsrtowcs, "mbsrtowcs is unportable - " |
| 652 |
"use gnulib module mbsrtowcs for portability"); |
| 653 |
# endif |
| 654 |
#endif |
| 655 |
|
| 656 |
|
| 657 |
|
| 658 |
#if @GNULIB_MBSNRTOWCS@ |
| 659 |
# if @REPLACE_MBSNRTOWCS@ |
| 660 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 661 |
# undef mbsnrtowcs |
| 662 |
# define mbsnrtowcs rpl_mbsnrtowcs |
| 663 |
# endif |
| 664 |
_GL_FUNCDECL_RPL (mbsnrtowcs, size_t, |
| 665 |
(wchar_t *restrict dest, |
| 666 |
const char **restrict srcp, size_t srclen, size_t len, |
| 667 |
mbstate_t *restrict ps) |
| 668 |
_GL_ARG_NONNULL ((2))); |
| 669 |
_GL_CXXALIAS_RPL (mbsnrtowcs, size_t, |
| 670 |
(wchar_t *restrict dest, |
| 671 |
const char **restrict srcp, size_t srclen, size_t len, |
| 672 |
mbstate_t *restrict ps)); |
| 673 |
# else |
| 674 |
# if !@HAVE_MBSNRTOWCS@ |
| 675 |
_GL_FUNCDECL_SYS (mbsnrtowcs, size_t, |
| 676 |
(wchar_t *restrict dest, |
| 677 |
const char **restrict srcp, size_t srclen, size_t len, |
| 678 |
mbstate_t *restrict ps) |
| 679 |
_GL_ARG_NONNULL ((2))); |
| 680 |
# endif |
| 681 |
_GL_CXXALIAS_SYS (mbsnrtowcs, size_t, |
| 682 |
(wchar_t *restrict dest, |
| 683 |
const char **restrict srcp, size_t srclen, size_t len, |
| 684 |
mbstate_t *restrict ps)); |
| 685 |
# endif |
| 686 |
# if __GLIBC__ >= 2 |
| 687 |
_GL_CXXALIASWARN (mbsnrtowcs); |
| 688 |
# endif |
| 689 |
#elif defined GNULIB_POSIXCHECK |
| 690 |
# undef mbsnrtowcs |
| 691 |
# if HAVE_RAW_DECL_MBSNRTOWCS |
| 692 |
_GL_WARN_ON_USE (mbsnrtowcs, "mbsnrtowcs is unportable - " |
| 693 |
"use gnulib module mbsnrtowcs for portability"); |
| 694 |
# endif |
| 695 |
#endif |
| 696 |
|
| 697 |
|
| 698 |
|
| 699 |
#if @GNULIB_WCRTOMB@ |
| 700 |
# if @REPLACE_WCRTOMB@ |
| 701 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 702 |
# undef wcrtomb |
| 703 |
# define wcrtomb rpl_wcrtomb |
| 704 |
# endif |
| 705 |
_GL_FUNCDECL_RPL (wcrtomb, size_t, |
| 706 |
(char *restrict s, wchar_t wc, mbstate_t *restrict ps)); |
| 707 |
_GL_CXXALIAS_RPL (wcrtomb, size_t, |
| 708 |
(char *restrict s, wchar_t wc, mbstate_t *restrict ps)); |
| 709 |
# else |
| 710 |
# if !@HAVE_WCRTOMB@ |
| 711 |
_GL_FUNCDECL_SYS (wcrtomb, size_t, |
| 712 |
(char *restrict s, wchar_t wc, mbstate_t *restrict ps)); |
| 713 |
# endif |
| 714 |
_GL_CXXALIAS_SYS (wcrtomb, size_t, |
| 715 |
(char *restrict s, wchar_t wc, mbstate_t *restrict ps)); |
| 716 |
# endif |
| 717 |
# if __GLIBC__ >= 2 |
| 718 |
_GL_CXXALIASWARN (wcrtomb); |
| 719 |
# endif |
| 720 |
#elif defined GNULIB_POSIXCHECK |
| 721 |
# undef wcrtomb |
| 722 |
# if HAVE_RAW_DECL_WCRTOMB |
| 723 |
_GL_WARN_ON_USE (wcrtomb, "wcrtomb is unportable - " |
| 724 |
"use gnulib module wcrtomb for portability"); |
| 725 |
# endif |
| 726 |
#endif |
| 727 |
|
| 728 |
|
| 729 |
|
| 730 |
#if @GNULIB_WCSRTOMBS@ |
| 731 |
# if @REPLACE_WCSRTOMBS@ |
| 732 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 733 |
# undef wcsrtombs |
| 734 |
# define wcsrtombs rpl_wcsrtombs |
| 735 |
# endif |
| 736 |
_GL_FUNCDECL_RPL (wcsrtombs, size_t, |
| 737 |
(char *restrict dest, const wchar_t **restrict srcp, |
| 738 |
size_t len, |
| 739 |
mbstate_t *restrict ps) |
| 740 |
_GL_ARG_NONNULL ((2))); |
| 741 |
_GL_CXXALIAS_RPL (wcsrtombs, size_t, |
| 742 |
(char *restrict dest, const wchar_t **restrict srcp, |
| 743 |
size_t len, |
| 744 |
mbstate_t *restrict ps)); |
| 745 |
# else |
| 746 |
# if !@HAVE_WCSRTOMBS@ |
| 747 |
_GL_FUNCDECL_SYS (wcsrtombs, size_t, |
| 748 |
(char *restrict dest, const wchar_t **restrict srcp, |
| 749 |
size_t len, |
| 750 |
mbstate_t *restrict ps) |
| 751 |
_GL_ARG_NONNULL ((2))); |
| 752 |
# endif |
| 753 |
_GL_CXXALIAS_SYS (wcsrtombs, size_t, |
| 754 |
(char *restrict dest, const wchar_t **restrict srcp, |
| 755 |
size_t len, |
| 756 |
mbstate_t *restrict ps)); |
| 757 |
# endif |
| 758 |
# if __GLIBC__ >= 2 |
| 759 |
_GL_CXXALIASWARN (wcsrtombs); |
| 760 |
# endif |
| 761 |
#elif defined GNULIB_POSIXCHECK |
| 762 |
# undef wcsrtombs |
| 763 |
# if HAVE_RAW_DECL_WCSRTOMBS |
| 764 |
_GL_WARN_ON_USE (wcsrtombs, "wcsrtombs is unportable - " |
| 765 |
"use gnulib module wcsrtombs for portability"); |
| 766 |
# endif |
| 767 |
#endif |
| 768 |
|
| 769 |
|
| 770 |
|
| 771 |
#if @GNULIB_WCSNRTOMBS@ |
| 772 |
# if @REPLACE_WCSNRTOMBS@ |
| 773 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 774 |
# undef wcsnrtombs |
| 775 |
# define wcsnrtombs rpl_wcsnrtombs |
| 776 |
# endif |
| 777 |
_GL_FUNCDECL_RPL (wcsnrtombs, size_t, |
| 778 |
(char *restrict dest, |
| 779 |
const wchar_t **restrict srcp, size_t srclen, |
| 780 |
size_t len, |
| 781 |
mbstate_t *restrict ps) |
| 782 |
_GL_ARG_NONNULL ((2))); |
| 783 |
_GL_CXXALIAS_RPL (wcsnrtombs, size_t, |
| 784 |
(char *restrict dest, |
| 785 |
const wchar_t **restrict srcp, size_t srclen, |
| 786 |
size_t len, |
| 787 |
mbstate_t *restrict ps)); |
| 788 |
# else |
| 789 |
# if !@HAVE_WCSNRTOMBS@ || (defined __cplusplus && defined __sun) |
| 790 |
_GL_FUNCDECL_SYS (wcsnrtombs, size_t, |
| 791 |
(char *restrict dest, |
| 792 |
const wchar_t **restrict srcp, size_t srclen, |
| 793 |
size_t len, |
| 794 |
mbstate_t *restrict ps) |
| 795 |
_GL_ARG_NONNULL ((2))); |
| 796 |
# endif |
| 797 |
_GL_CXXALIAS_SYS (wcsnrtombs, size_t, |
| 798 |
(char *restrict dest, |
| 799 |
const wchar_t **restrict srcp, size_t srclen, |
| 800 |
size_t len, |
| 801 |
mbstate_t *restrict ps)); |
| 802 |
# endif |
| 803 |
# if __GLIBC__ >= 2 |
| 804 |
_GL_CXXALIASWARN (wcsnrtombs); |
| 805 |
# endif |
| 806 |
#elif defined GNULIB_POSIXCHECK |
| 807 |
# undef wcsnrtombs |
| 808 |
# if HAVE_RAW_DECL_WCSNRTOMBS |
| 809 |
_GL_WARN_ON_USE (wcsnrtombs, "wcsnrtombs is unportable - " |
| 810 |
"use gnulib module wcsnrtombs for portability"); |
| 811 |
# endif |
| 812 |
#endif |
| 813 |
|
| 814 |
|
| 815 |
|
| 816 |
#if @GNULIB_WCWIDTH@ |
| 817 |
# if @REPLACE_WCWIDTH@ |
| 818 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 819 |
# undef wcwidth |
| 820 |
# define wcwidth rpl_wcwidth |
| 821 |
# endif |
| 822 |
_GL_FUNCDECL_RPL (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE); |
| 823 |
_GL_CXXALIAS_RPL (wcwidth, int, (wchar_t)); |
| 824 |
# else |
| 825 |
# if !@HAVE_DECL_WCWIDTH@ |
| 826 |
|
| 827 |
_GL_FUNCDECL_SYS (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE); |
| 828 |
# endif |
| 829 |
_GL_CXXALIAS_SYS (wcwidth, int, (wchar_t)); |
| 830 |
# endif |
| 831 |
# if __GLIBC__ >= 2 |
| 832 |
_GL_CXXALIASWARN (wcwidth); |
| 833 |
# endif |
| 834 |
#elif defined GNULIB_POSIXCHECK |
| 835 |
# undef wcwidth |
| 836 |
# if HAVE_RAW_DECL_WCWIDTH |
| 837 |
_GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - " |
| 838 |
"use gnulib module wcwidth for portability"); |
| 839 |
# endif |
| 840 |
#endif |
| 841 |
|
| 842 |
|
| 843 |
|
| 844 |
#if @GNULIB_WMEMCHR@ |
| 845 |
# if !@HAVE_WMEMCHR@ |
| 846 |
_GL_FUNCDECL_SYS (wmemchr, wchar_t *, (const wchar_t *s, wchar_t c, size_t n) |
| 847 |
_GL_ATTRIBUTE_PURE); |
| 848 |
# endif |
| 849 |
|
| 850 |
|
| 851 |
|
| 852 |
|
| 853 |
|
| 854 |
_GL_CXXALIAS_SYS_CAST2 (wmemchr, |
| 855 |
wchar_t *, (const wchar_t *, wchar_t, size_t), |
| 856 |
const wchar_t *, (const wchar_t *, wchar_t, size_t)); |
| 857 |
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ |
| 858 |
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) \ |
| 859 |
&& !defined __clang__ |
| 860 |
_GL_CXXALIASWARN1 (wmemchr, wchar_t *, (wchar_t *s, wchar_t c, size_t n)); |
| 861 |
_GL_CXXALIASWARN1 (wmemchr, const wchar_t *, |
| 862 |
(const wchar_t *s, wchar_t c, size_t n)); |
| 863 |
# elif __GLIBC__ >= 2 && !defined __CORRECT_ISO_CPP_WCHAR_H_PROTO |
| 864 |
_GL_CXXALIASWARN (wmemchr); |
| 865 |
# endif |
| 866 |
#elif defined GNULIB_POSIXCHECK |
| 867 |
# undef wmemchr |
| 868 |
# if HAVE_RAW_DECL_WMEMCHR |
| 869 |
_GL_WARN_ON_USE (wmemchr, "wmemchr is unportable - " |
| 870 |
"use gnulib module wmemchr for portability"); |
| 871 |
# endif |
| 872 |
#endif |
| 873 |
|
| 874 |
|
| 875 |
|
| 876 |
#if @GNULIB_WMEMCMP@ |
| 877 |
# if @REPLACE_WMEMCMP@ |
| 878 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 879 |
# undef wmemcmp |
| 880 |
# define wmemcmp rpl_wmemcmp |
| 881 |
# endif |
| 882 |
_GL_FUNCDECL_RPL (wmemcmp, int, |
| 883 |
(const wchar_t *s1, const wchar_t *s2, size_t n) |
| 884 |
_GL_ATTRIBUTE_PURE); |
| 885 |
_GL_CXXALIAS_RPL (wmemcmp, int, |
| 886 |
(const wchar_t *s1, const wchar_t *s2, size_t n)); |
| 887 |
# else |
| 888 |
# if !@HAVE_WMEMCMP@ |
| 889 |
_GL_FUNCDECL_SYS (wmemcmp, int, |
| 890 |
(const wchar_t *s1, const wchar_t *s2, size_t n) |
| 891 |
_GL_ATTRIBUTE_PURE); |
| 892 |
# endif |
| 893 |
_GL_CXXALIAS_SYS (wmemcmp, int, |
| 894 |
(const wchar_t *s1, const wchar_t *s2, size_t n)); |
| 895 |
# endif |
| 896 |
# if __GLIBC__ >= 2 |
| 897 |
_GL_CXXALIASWARN (wmemcmp); |
| 898 |
# endif |
| 899 |
#elif defined GNULIB_POSIXCHECK |
| 900 |
# undef wmemcmp |
| 901 |
# if HAVE_RAW_DECL_WMEMCMP |
| 902 |
_GL_WARN_ON_USE (wmemcmp, "wmemcmp is unportable - " |
| 903 |
"use gnulib module wmemcmp for portability"); |
| 904 |
# endif |
| 905 |
#endif |
| 906 |
|
| 907 |
|
| 908 |
|
| 909 |
#if @GNULIB_WMEMCPY@ |
| 910 |
# if !@HAVE_WMEMCPY@ |
| 911 |
_GL_FUNCDECL_SYS (wmemcpy, wchar_t *, |
| 912 |
(wchar_t *restrict dest, |
| 913 |
const wchar_t *restrict src, size_t n)); |
| 914 |
# endif |
| 915 |
_GL_CXXALIAS_SYS (wmemcpy, wchar_t *, |
| 916 |
(wchar_t *restrict dest, |
| 917 |
const wchar_t *restrict src, size_t n)); |
| 918 |
# if __GLIBC__ >= 2 |
| 919 |
_GL_CXXALIASWARN (wmemcpy); |
| 920 |
# endif |
| 921 |
#elif defined GNULIB_POSIXCHECK |
| 922 |
# undef wmemcpy |
| 923 |
# if HAVE_RAW_DECL_WMEMCPY |
| 924 |
_GL_WARN_ON_USE (wmemcpy, "wmemcpy is unportable - " |
| 925 |
"use gnulib module wmemcpy for portability"); |
| 926 |
# endif |
| 927 |
#endif |
| 928 |
|
| 929 |
|
| 930 |
|
| 931 |
|
| 932 |
#if @GNULIB_WMEMMOVE@ |
| 933 |
# if !@HAVE_WMEMMOVE@ |
| 934 |
_GL_FUNCDECL_SYS (wmemmove, wchar_t *, |
| 935 |
(wchar_t *dest, const wchar_t *src, size_t n)); |
| 936 |
# endif |
| 937 |
_GL_CXXALIAS_SYS (wmemmove, wchar_t *, |
| 938 |
(wchar_t *dest, const wchar_t *src, size_t n)); |
| 939 |
# if __GLIBC__ >= 2 |
| 940 |
_GL_CXXALIASWARN (wmemmove); |
| 941 |
# endif |
| 942 |
#elif defined GNULIB_POSIXCHECK |
| 943 |
# undef wmemmove |
| 944 |
# if HAVE_RAW_DECL_WMEMMOVE |
| 945 |
_GL_WARN_ON_USE (wmemmove, "wmemmove is unportable - " |
| 946 |
"use gnulib module wmemmove for portability"); |
| 947 |
# endif |
| 948 |
#endif |
| 949 |
|
| 950 |
|
| 951 |
|
| 952 |
|
| 953 |
#if @GNULIB_WMEMPCPY@ |
| 954 |
# if @REPLACE_WMEMPCPY@ |
| 955 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 956 |
# undef wmempcpy |
| 957 |
# define wmempcpy rpl_wmempcpy |
| 958 |
# endif |
| 959 |
_GL_FUNCDECL_RPL (wmempcpy, wchar_t *, |
| 960 |
(wchar_t *restrict dest, |
| 961 |
const wchar_t *restrict src, size_t n)); |
| 962 |
_GL_CXXALIAS_RPL (wmempcpy, wchar_t *, |
| 963 |
(wchar_t *restrict dest, |
| 964 |
const wchar_t *restrict src, size_t n)); |
| 965 |
# else |
| 966 |
# if !@HAVE_WMEMPCPY@ |
| 967 |
_GL_FUNCDECL_SYS (wmempcpy, wchar_t *, |
| 968 |
(wchar_t *restrict dest, |
| 969 |
const wchar_t *restrict src, size_t n)); |
| 970 |
# endif |
| 971 |
_GL_CXXALIAS_SYS (wmempcpy, wchar_t *, |
| 972 |
(wchar_t *restrict dest, |
| 973 |
const wchar_t *restrict src, size_t n)); |
| 974 |
# endif |
| 975 |
# if __GLIBC__ >= 2 |
| 976 |
_GL_CXXALIASWARN (wmempcpy); |
| 977 |
# endif |
| 978 |
#elif defined GNULIB_POSIXCHECK |
| 979 |
# undef wmempcpy |
| 980 |
# if HAVE_RAW_DECL_WMEMPCPY |
| 981 |
_GL_WARN_ON_USE (wmempcpy, "wmempcpy is unportable - " |
| 982 |
"use gnulib module wmempcpy for portability"); |
| 983 |
# endif |
| 984 |
#endif |
| 985 |
|
| 986 |
|
| 987 |
|
| 988 |
#if @GNULIB_WMEMSET@ |
| 989 |
# if !@HAVE_WMEMSET@ |
| 990 |
_GL_FUNCDECL_SYS (wmemset, wchar_t *, (wchar_t *s, wchar_t c, size_t n)); |
| 991 |
# endif |
| 992 |
_GL_CXXALIAS_SYS (wmemset, wchar_t *, (wchar_t *s, wchar_t c, size_t n)); |
| 993 |
# if __GLIBC__ >= 2 |
| 994 |
_GL_CXXALIASWARN (wmemset); |
| 995 |
# endif |
| 996 |
#elif defined GNULIB_POSIXCHECK |
| 997 |
# undef wmemset |
| 998 |
# if HAVE_RAW_DECL_WMEMSET |
| 999 |
_GL_WARN_ON_USE (wmemset, "wmemset is unportable - " |
| 1000 |
"use gnulib module wmemset for portability"); |
| 1001 |
# endif |
| 1002 |
#endif |
| 1003 |
|
| 1004 |
|
| 1005 |
|
| 1006 |
#if @GNULIB_WCSLEN@ |
| 1007 |
# if !@HAVE_WCSLEN@ |
| 1008 |
_GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE); |
| 1009 |
# endif |
| 1010 |
_GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s)); |
| 1011 |
# if __GLIBC__ >= 2 |
| 1012 |
_GL_CXXALIASWARN (wcslen); |
| 1013 |
# endif |
| 1014 |
#elif defined GNULIB_POSIXCHECK |
| 1015 |
# undef wcslen |
| 1016 |
# if HAVE_RAW_DECL_WCSLEN |
| 1017 |
_GL_WARN_ON_USE (wcslen, "wcslen is unportable - " |
| 1018 |
"use gnulib module wcslen for portability"); |
| 1019 |
# endif |
| 1020 |
#endif |
| 1021 |
|
| 1022 |
|
| 1023 |
|
| 1024 |
#if @GNULIB_WCSNLEN@ |
| 1025 |
|
| 1026 |
|
| 1027 |
|
| 1028 |
# if !@HAVE_WCSNLEN@ || (defined __sun && defined __cplusplus) |
| 1029 |
_GL_FUNCDECL_SYS (wcsnlen, size_t, (const wchar_t *s, size_t maxlen) |
| 1030 |
_GL_ATTRIBUTE_PURE); |
| 1031 |
# endif |
| 1032 |
_GL_CXXALIAS_SYS (wcsnlen, size_t, (const wchar_t *s, size_t maxlen)); |
| 1033 |
_GL_CXXALIASWARN (wcsnlen); |
| 1034 |
#elif defined GNULIB_POSIXCHECK |
| 1035 |
# undef wcsnlen |
| 1036 |
# if HAVE_RAW_DECL_WCSNLEN |
| 1037 |
_GL_WARN_ON_USE (wcsnlen, "wcsnlen is unportable - " |
| 1038 |
"use gnulib module wcsnlen for portability"); |
| 1039 |
# endif |
| 1040 |
#endif |
| 1041 |
|
| 1042 |
|
| 1043 |
|
| 1044 |
#if @GNULIB_WCSCPY@ |
| 1045 |
# if !@HAVE_WCSCPY@ |
| 1046 |
_GL_FUNCDECL_SYS (wcscpy, wchar_t *, |
| 1047 |
(wchar_t *restrict dest, const wchar_t *restrict src)); |
| 1048 |
# endif |
| 1049 |
_GL_CXXALIAS_SYS (wcscpy, wchar_t *, |
| 1050 |
(wchar_t *restrict dest, const wchar_t *restrict src)); |
| 1051 |
# if __GLIBC__ >= 2 |
| 1052 |
_GL_CXXALIASWARN (wcscpy); |
| 1053 |
# endif |
| 1054 |
#elif defined GNULIB_POSIXCHECK |
| 1055 |
# undef wcscpy |
| 1056 |
# if HAVE_RAW_DECL_WCSCPY |
| 1057 |
_GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - " |
| 1058 |
"use gnulib module wcscpy for portability"); |
| 1059 |
# endif |
| 1060 |
#endif |
| 1061 |
|
| 1062 |
|
| 1063 |
|
| 1064 |
#if @GNULIB_WCPCPY@ |
| 1065 |
|
| 1066 |
|
| 1067 |
|
| 1068 |
# if !@HAVE_WCPCPY@ || (defined __sun && defined __cplusplus) |
| 1069 |
_GL_FUNCDECL_SYS (wcpcpy, wchar_t *, |
| 1070 |
(wchar_t *restrict dest, const wchar_t *restrict src)); |
| 1071 |
# endif |
| 1072 |
_GL_CXXALIAS_SYS (wcpcpy, wchar_t *, |
| 1073 |
(wchar_t *restrict dest, const wchar_t *restrict src)); |
| 1074 |
_GL_CXXALIASWARN (wcpcpy); |
| 1075 |
#elif defined GNULIB_POSIXCHECK |
| 1076 |
# undef wcpcpy |
| 1077 |
# if HAVE_RAW_DECL_WCPCPY |
| 1078 |
_GL_WARN_ON_USE (wcpcpy, "wcpcpy is unportable - " |
| 1079 |
"use gnulib module wcpcpy for portability"); |
| 1080 |
# endif |
| 1081 |
#endif |
| 1082 |
|
| 1083 |
|
| 1084 |
|
| 1085 |
#if @GNULIB_WCSNCPY@ |
| 1086 |
# if !@HAVE_WCSNCPY@ |
| 1087 |
_GL_FUNCDECL_SYS (wcsncpy, wchar_t *, |
| 1088 |
(wchar_t *restrict dest, |
| 1089 |
const wchar_t *restrict src, size_t n)); |
| 1090 |
# endif |
| 1091 |
_GL_CXXALIAS_SYS (wcsncpy, wchar_t *, |
| 1092 |
(wchar_t *restrict dest, |
| 1093 |
const wchar_t *restrict src, size_t n)); |
| 1094 |
# if __GLIBC__ >= 2 |
| 1095 |
_GL_CXXALIASWARN (wcsncpy); |
| 1096 |
# endif |
| 1097 |
#elif defined GNULIB_POSIXCHECK |
| 1098 |
# undef wcsncpy |
| 1099 |
# if HAVE_RAW_DECL_WCSNCPY |
| 1100 |
_GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " |
| 1101 |
"use gnulib module wcsncpy for portability"); |
| 1102 |
# endif |
| 1103 |
#endif |
| 1104 |
|
| 1105 |
|
| 1106 |
|
| 1107 |
|
| 1108 |
#if @GNULIB_WCPNCPY@ |
| 1109 |
|
| 1110 |
|
| 1111 |
|
| 1112 |
# if !@HAVE_WCPNCPY@ || (defined __sun && defined __cplusplus) |
| 1113 |
_GL_FUNCDECL_SYS (wcpncpy, wchar_t *, |
| 1114 |
(wchar_t *restrict dest, |
| 1115 |
const wchar_t *restrict src, size_t n)); |
| 1116 |
# endif |
| 1117 |
_GL_CXXALIAS_SYS (wcpncpy, wchar_t *, |
| 1118 |
(wchar_t *restrict dest, |
| 1119 |
const wchar_t *restrict src, size_t n)); |
| 1120 |
_GL_CXXALIASWARN (wcpncpy); |
| 1121 |
#elif defined GNULIB_POSIXCHECK |
| 1122 |
# undef wcpncpy |
| 1123 |
# if HAVE_RAW_DECL_WCPNCPY |
| 1124 |
_GL_WARN_ON_USE (wcpncpy, "wcpncpy is unportable - " |
| 1125 |
"use gnulib module wcpncpy for portability"); |
| 1126 |
# endif |
| 1127 |
#endif |
| 1128 |
|
| 1129 |
|
| 1130 |
|
| 1131 |
#if @GNULIB_WCSCAT@ |
| 1132 |
# if !@HAVE_WCSCAT@ |
| 1133 |
_GL_FUNCDECL_SYS (wcscat, wchar_t *, |
| 1134 |
(wchar_t *restrict dest, const wchar_t *restrict src)); |
| 1135 |
# endif |
| 1136 |
_GL_CXXALIAS_SYS (wcscat, wchar_t *, |
| 1137 |
(wchar_t *restrict dest, const wchar_t *restrict src)); |
| 1138 |
# if __GLIBC__ >= 2 |
| 1139 |
_GL_CXXALIASWARN (wcscat); |
| 1140 |
# endif |
| 1141 |
#elif defined GNULIB_POSIXCHECK |
| 1142 |
# undef wcscat |
| 1143 |
# if HAVE_RAW_DECL_WCSCAT |
| 1144 |
_GL_WARN_ON_USE (wcscat, "wcscat is unportable - " |
| 1145 |
"use gnulib module wcscat for portability"); |
| 1146 |
# endif |
| 1147 |
#endif |
| 1148 |
|
| 1149 |
|
| 1150 |
|
| 1151 |
#if @GNULIB_WCSNCAT@ |
| 1152 |
# if !@HAVE_WCSNCAT@ |
| 1153 |
_GL_FUNCDECL_SYS (wcsncat, wchar_t *, |
| 1154 |
(wchar_t *restrict dest, const wchar_t *restrict src, |
| 1155 |
size_t n)); |
| 1156 |
# endif |
| 1157 |
_GL_CXXALIAS_SYS (wcsncat, wchar_t *, |
| 1158 |
(wchar_t *restrict dest, const wchar_t *restrict src, |
| 1159 |
size_t n)); |
| 1160 |
# if __GLIBC__ >= 2 |
| 1161 |
_GL_CXXALIASWARN (wcsncat); |
| 1162 |
# endif |
| 1163 |
#elif defined GNULIB_POSIXCHECK |
| 1164 |
# undef wcsncat |
| 1165 |
# if HAVE_RAW_DECL_WCSNCAT |
| 1166 |
_GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - " |
| 1167 |
"use gnulib module wcsncat for portability"); |
| 1168 |
# endif |
| 1169 |
#endif |
| 1170 |
|
| 1171 |
|
| 1172 |
|
| 1173 |
#if @GNULIB_WCSCMP@ |
| 1174 |
# if @REPLACE_WCSCMP@ |
| 1175 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1176 |
# undef wcscmp |
| 1177 |
# define wcscmp rpl_wcscmp |
| 1178 |
# endif |
| 1179 |
_GL_FUNCDECL_RPL (wcscmp, int, (const wchar_t *s1, const wchar_t *s2) |
| 1180 |
_GL_ATTRIBUTE_PURE); |
| 1181 |
_GL_CXXALIAS_RPL (wcscmp, int, (const wchar_t *s1, const wchar_t *s2)); |
| 1182 |
# else |
| 1183 |
# if !@HAVE_WCSCMP@ |
| 1184 |
_GL_FUNCDECL_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2) |
| 1185 |
_GL_ATTRIBUTE_PURE); |
| 1186 |
# endif |
| 1187 |
_GL_CXXALIAS_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2)); |
| 1188 |
# endif |
| 1189 |
# if __GLIBC__ >= 2 |
| 1190 |
_GL_CXXALIASWARN (wcscmp); |
| 1191 |
# endif |
| 1192 |
#elif defined GNULIB_POSIXCHECK |
| 1193 |
# undef wcscmp |
| 1194 |
# if HAVE_RAW_DECL_WCSCMP |
| 1195 |
_GL_WARN_ON_USE (wcscmp, "wcscmp is unportable - " |
| 1196 |
"use gnulib module wcscmp for portability"); |
| 1197 |
# endif |
| 1198 |
#endif |
| 1199 |
|
| 1200 |
|
| 1201 |
|
| 1202 |
#if @GNULIB_WCSNCMP@ |
| 1203 |
# if @REPLACE_WCSNCMP@ |
| 1204 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1205 |
# undef wcsncmp |
| 1206 |
# define wcsncmp rpl_wcsncmp |
| 1207 |
# endif |
| 1208 |
_GL_FUNCDECL_RPL (wcsncmp, int, |
| 1209 |
(const wchar_t *s1, const wchar_t *s2, size_t n) |
| 1210 |
_GL_ATTRIBUTE_PURE); |
| 1211 |
_GL_CXXALIAS_RPL (wcsncmp, int, |
| 1212 |
(const wchar_t *s1, const wchar_t *s2, size_t n)); |
| 1213 |
# else |
| 1214 |
# if !@HAVE_WCSNCMP@ |
| 1215 |
_GL_FUNCDECL_SYS (wcsncmp, int, |
| 1216 |
(const wchar_t *s1, const wchar_t *s2, size_t n) |
| 1217 |
_GL_ATTRIBUTE_PURE); |
| 1218 |
# endif |
| 1219 |
_GL_CXXALIAS_SYS (wcsncmp, int, |
| 1220 |
(const wchar_t *s1, const wchar_t *s2, size_t n)); |
| 1221 |
# endif |
| 1222 |
# if __GLIBC__ >= 2 |
| 1223 |
_GL_CXXALIASWARN (wcsncmp); |
| 1224 |
# endif |
| 1225 |
#elif defined GNULIB_POSIXCHECK |
| 1226 |
# undef wcsncmp |
| 1227 |
# if HAVE_RAW_DECL_WCSNCMP |
| 1228 |
_GL_WARN_ON_USE (wcsncmp, "wcsncmp is unportable - " |
| 1229 |
"use gnulib module wcsncmp for portability"); |
| 1230 |
# endif |
| 1231 |
#endif |
| 1232 |
|
| 1233 |
|
| 1234 |
|
| 1235 |
#if @GNULIB_WCSCASECMP@ |
| 1236 |
|
| 1237 |
|
| 1238 |
|
| 1239 |
# if !@HAVE_WCSCASECMP@ || (defined __sun && defined __cplusplus) |
| 1240 |
_GL_FUNCDECL_SYS (wcscasecmp, int, (const wchar_t *s1, const wchar_t *s2) |
| 1241 |
_GL_ATTRIBUTE_PURE); |
| 1242 |
# endif |
| 1243 |
_GL_CXXALIAS_SYS (wcscasecmp, int, (const wchar_t *s1, const wchar_t *s2)); |
| 1244 |
_GL_CXXALIASWARN (wcscasecmp); |
| 1245 |
#elif defined GNULIB_POSIXCHECK |
| 1246 |
# undef wcscasecmp |
| 1247 |
# if HAVE_RAW_DECL_WCSCASECMP |
| 1248 |
_GL_WARN_ON_USE (wcscasecmp, "wcscasecmp is unportable - " |
| 1249 |
"use gnulib module wcscasecmp for portability"); |
| 1250 |
# endif |
| 1251 |
#endif |
| 1252 |
|
| 1253 |
|
| 1254 |
|
| 1255 |
#if @GNULIB_WCSNCASECMP@ |
| 1256 |
|
| 1257 |
|
| 1258 |
|
| 1259 |
# if !@HAVE_WCSNCASECMP@ || (defined __sun && defined __cplusplus) |
| 1260 |
_GL_FUNCDECL_SYS (wcsncasecmp, int, |
| 1261 |
(const wchar_t *s1, const wchar_t *s2, size_t n) |
| 1262 |
_GL_ATTRIBUTE_PURE); |
| 1263 |
# endif |
| 1264 |
_GL_CXXALIAS_SYS (wcsncasecmp, int, |
| 1265 |
(const wchar_t *s1, const wchar_t *s2, size_t n)); |
| 1266 |
_GL_CXXALIASWARN (wcsncasecmp); |
| 1267 |
#elif defined GNULIB_POSIXCHECK |
| 1268 |
# undef wcsncasecmp |
| 1269 |
# if HAVE_RAW_DECL_WCSNCASECMP |
| 1270 |
_GL_WARN_ON_USE (wcsncasecmp, "wcsncasecmp is unportable - " |
| 1271 |
"use gnulib module wcsncasecmp for portability"); |
| 1272 |
# endif |
| 1273 |
#endif |
| 1274 |
|
| 1275 |
|
| 1276 |
|
| 1277 |
|
| 1278 |
#if @GNULIB_WCSCOLL@ |
| 1279 |
# if !@HAVE_WCSCOLL@ |
| 1280 |
_GL_FUNCDECL_SYS (wcscoll, int, (const wchar_t *s1, const wchar_t *s2)); |
| 1281 |
# endif |
| 1282 |
_GL_CXXALIAS_SYS (wcscoll, int, (const wchar_t *s1, const wchar_t *s2)); |
| 1283 |
# if __GLIBC__ >= 2 |
| 1284 |
_GL_CXXALIASWARN (wcscoll); |
| 1285 |
# endif |
| 1286 |
#elif defined GNULIB_POSIXCHECK |
| 1287 |
# undef wcscoll |
| 1288 |
# if HAVE_RAW_DECL_WCSCOLL |
| 1289 |
_GL_WARN_ON_USE (wcscoll, "wcscoll is unportable - " |
| 1290 |
"use gnulib module wcscoll for portability"); |
| 1291 |
# endif |
| 1292 |
#endif |
| 1293 |
|
| 1294 |
|
| 1295 |
|
| 1296 |
|
| 1297 |
|
| 1298 |
#if @GNULIB_WCSXFRM@ |
| 1299 |
# if !@HAVE_WCSXFRM@ |
| 1300 |
_GL_FUNCDECL_SYS (wcsxfrm, size_t, |
| 1301 |
(wchar_t *restrict s1, const wchar_t *restrict s2, size_t n)); |
| 1302 |
# endif |
| 1303 |
_GL_CXXALIAS_SYS (wcsxfrm, size_t, |
| 1304 |
(wchar_t *restrict s1, const wchar_t *restrict s2, size_t n)); |
| 1305 |
# if __GLIBC__ >= 2 |
| 1306 |
_GL_CXXALIASWARN (wcsxfrm); |
| 1307 |
# endif |
| 1308 |
#elif defined GNULIB_POSIXCHECK |
| 1309 |
# undef wcsxfrm |
| 1310 |
# if HAVE_RAW_DECL_WCSXFRM |
| 1311 |
_GL_WARN_ON_USE (wcsxfrm, "wcsxfrm is unportable - " |
| 1312 |
"use gnulib module wcsxfrm for portability"); |
| 1313 |
# endif |
| 1314 |
#endif |
| 1315 |
|
| 1316 |
|
| 1317 |
|
| 1318 |
#if @GNULIB_WCSDUP@ |
| 1319 |
# if defined _WIN32 && !defined __CYGWIN__ |
| 1320 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1321 |
# undef wcsdup |
| 1322 |
# define wcsdup _wcsdup |
| 1323 |
# endif |
| 1324 |
_GL_CXXALIAS_MDA (wcsdup, wchar_t *, (const wchar_t *s)); |
| 1325 |
# else |
| 1326 |
|
| 1327 |
|
| 1328 |
|
| 1329 |
# if !@HAVE_WCSDUP@ || (defined __sun && defined __cplusplus) \ |
| 1330 |
|| (__GNUC__ >= 11 && !defined __clang__) |
| 1331 |
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2 |
| 1332 |
_GL_FUNCDECL_SYS (wcsdup, wchar_t *, |
| 1333 |
(const wchar_t *s) |
| 1334 |
_GL_ATTRIBUTE_NOTHROW |
| 1335 |
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); |
| 1336 |
# else |
| 1337 |
_GL_FUNCDECL_SYS (wcsdup, wchar_t *, |
| 1338 |
(const wchar_t *s) |
| 1339 |
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); |
| 1340 |
# endif |
| 1341 |
# endif |
| 1342 |
_GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s)); |
| 1343 |
# endif |
| 1344 |
_GL_CXXALIASWARN (wcsdup); |
| 1345 |
#else |
| 1346 |
# if (__GNUC__ >= 11 && !defined __clang__) && !defined wcsdup |
| 1347 |
|
| 1348 |
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2 |
| 1349 |
_GL_FUNCDECL_SYS (wcsdup, wchar_t *, |
| 1350 |
(const wchar_t *s) |
| 1351 |
_GL_ATTRIBUTE_NOTHROW |
| 1352 |
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); |
| 1353 |
# else |
| 1354 |
_GL_FUNCDECL_SYS (wcsdup, wchar_t *, |
| 1355 |
(const wchar_t *s) |
| 1356 |
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); |
| 1357 |
# endif |
| 1358 |
# endif |
| 1359 |
# if defined GNULIB_POSIXCHECK |
| 1360 |
# undef wcsdup |
| 1361 |
# if HAVE_RAW_DECL_WCSDUP |
| 1362 |
_GL_WARN_ON_USE (wcsdup, "wcsdup is unportable - " |
| 1363 |
"use gnulib module wcsdup for portability"); |
| 1364 |
# endif |
| 1365 |
# elif @GNULIB_MDA_WCSDUP@ |
| 1366 |
|
| 1367 |
|
| 1368 |
|
| 1369 |
# if defined _WIN32 && !defined __CYGWIN__ |
| 1370 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1371 |
# undef wcsdup |
| 1372 |
# define wcsdup _wcsdup |
| 1373 |
# endif |
| 1374 |
_GL_CXXALIAS_MDA (wcsdup, wchar_t *, (const wchar_t *s)); |
| 1375 |
# else |
| 1376 |
# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2 |
| 1377 |
_GL_FUNCDECL_SYS (wcsdup, wchar_t *, |
| 1378 |
(const wchar_t *s) |
| 1379 |
_GL_ATTRIBUTE_NOTHROW |
| 1380 |
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); |
| 1381 |
# else |
| 1382 |
_GL_FUNCDECL_SYS (wcsdup, wchar_t *, |
| 1383 |
(const wchar_t *s) |
| 1384 |
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); |
| 1385 |
# endif |
| 1386 |
# if @HAVE_DECL_WCSDUP@ |
| 1387 |
_GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s)); |
| 1388 |
# endif |
| 1389 |
# endif |
| 1390 |
# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_WCSDUP@ |
| 1391 |
_GL_CXXALIASWARN (wcsdup); |
| 1392 |
# endif |
| 1393 |
# endif |
| 1394 |
#endif |
| 1395 |
|
| 1396 |
|
| 1397 |
|
| 1398 |
#if @GNULIB_WCSCHR@ |
| 1399 |
# if !@HAVE_WCSCHR@ |
| 1400 |
_GL_FUNCDECL_SYS (wcschr, wchar_t *, (const wchar_t *wcs, wchar_t wc) |
| 1401 |
_GL_ATTRIBUTE_PURE); |
| 1402 |
# endif |
| 1403 |
|
| 1404 |
|
| 1405 |
|
| 1406 |
|
| 1407 |
|
| 1408 |
_GL_CXXALIAS_SYS_CAST2 (wcschr, |
| 1409 |
wchar_t *, (const wchar_t *, wchar_t), |
| 1410 |
const wchar_t *, (const wchar_t *, wchar_t)); |
| 1411 |
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ |
| 1412 |
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) \ |
| 1413 |
&& !defined __clang__ |
| 1414 |
_GL_CXXALIASWARN1 (wcschr, wchar_t *, (wchar_t *wcs, wchar_t wc)); |
| 1415 |
_GL_CXXALIASWARN1 (wcschr, const wchar_t *, (const wchar_t *wcs, wchar_t wc)); |
| 1416 |
# elif __GLIBC__ >= 2 && !defined __CORRECT_ISO_CPP_WCHAR_H_PROTO |
| 1417 |
_GL_CXXALIASWARN (wcschr); |
| 1418 |
# endif |
| 1419 |
#elif defined GNULIB_POSIXCHECK |
| 1420 |
# undef wcschr |
| 1421 |
# if HAVE_RAW_DECL_WCSCHR |
| 1422 |
_GL_WARN_ON_USE (wcschr, "wcschr is unportable - " |
| 1423 |
"use gnulib module wcschr for portability"); |
| 1424 |
# endif |
| 1425 |
#endif |
| 1426 |
|
| 1427 |
|
| 1428 |
|
| 1429 |
#if @GNULIB_WCSRCHR@ |
| 1430 |
# if !@HAVE_WCSRCHR@ |
| 1431 |
_GL_FUNCDECL_SYS (wcsrchr, wchar_t *, (const wchar_t *wcs, wchar_t wc) |
| 1432 |
_GL_ATTRIBUTE_PURE); |
| 1433 |
# endif |
| 1434 |
|
| 1435 |
|
| 1436 |
|
| 1437 |
|
| 1438 |
|
| 1439 |
_GL_CXXALIAS_SYS_CAST2 (wcsrchr, |
| 1440 |
wchar_t *, (const wchar_t *, wchar_t), |
| 1441 |
const wchar_t *, (const wchar_t *, wchar_t)); |
| 1442 |
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ |
| 1443 |
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) \ |
| 1444 |
&& !defined __clang__ |
| 1445 |
_GL_CXXALIASWARN1 (wcsrchr, wchar_t *, (wchar_t *wcs, wchar_t wc)); |
| 1446 |
_GL_CXXALIASWARN1 (wcsrchr, const wchar_t *, (const wchar_t *wcs, wchar_t wc)); |
| 1447 |
# elif __GLIBC__ >= 2 && !defined __CORRECT_ISO_CPP_WCHAR_H_PROTO |
| 1448 |
_GL_CXXALIASWARN (wcsrchr); |
| 1449 |
# endif |
| 1450 |
#elif defined GNULIB_POSIXCHECK |
| 1451 |
# undef wcsrchr |
| 1452 |
# if HAVE_RAW_DECL_WCSRCHR |
| 1453 |
_GL_WARN_ON_USE (wcsrchr, "wcsrchr is unportable - " |
| 1454 |
"use gnulib module wcsrchr for portability"); |
| 1455 |
# endif |
| 1456 |
#endif |
| 1457 |
|
| 1458 |
|
| 1459 |
|
| 1460 |
|
| 1461 |
#if @GNULIB_WCSCSPN@ |
| 1462 |
# if !@HAVE_WCSCSPN@ |
| 1463 |
_GL_FUNCDECL_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject) |
| 1464 |
_GL_ATTRIBUTE_PURE); |
| 1465 |
# endif |
| 1466 |
_GL_CXXALIAS_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject)); |
| 1467 |
# if __GLIBC__ >= 2 |
| 1468 |
_GL_CXXALIASWARN (wcscspn); |
| 1469 |
# endif |
| 1470 |
#elif defined GNULIB_POSIXCHECK |
| 1471 |
# undef wcscspn |
| 1472 |
# if HAVE_RAW_DECL_WCSCSPN |
| 1473 |
_GL_WARN_ON_USE (wcscspn, "wcscspn is unportable - " |
| 1474 |
"use gnulib module wcscspn for portability"); |
| 1475 |
# endif |
| 1476 |
#endif |
| 1477 |
|
| 1478 |
|
| 1479 |
|
| 1480 |
|
| 1481 |
#if @GNULIB_WCSSPN@ |
| 1482 |
# if !@HAVE_WCSSPN@ |
| 1483 |
_GL_FUNCDECL_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept) |
| 1484 |
_GL_ATTRIBUTE_PURE); |
| 1485 |
# endif |
| 1486 |
_GL_CXXALIAS_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept)); |
| 1487 |
# if __GLIBC__ >= 2 |
| 1488 |
_GL_CXXALIASWARN (wcsspn); |
| 1489 |
# endif |
| 1490 |
#elif defined GNULIB_POSIXCHECK |
| 1491 |
# undef wcsspn |
| 1492 |
# if HAVE_RAW_DECL_WCSSPN |
| 1493 |
_GL_WARN_ON_USE (wcsspn, "wcsspn is unportable - " |
| 1494 |
"use gnulib module wcsspn for portability"); |
| 1495 |
# endif |
| 1496 |
#endif |
| 1497 |
|
| 1498 |
|
| 1499 |
|
| 1500 |
#if @GNULIB_WCSPBRK@ |
| 1501 |
# if !@HAVE_WCSPBRK@ |
| 1502 |
_GL_FUNCDECL_SYS (wcspbrk, wchar_t *, |
| 1503 |
(const wchar_t *wcs, const wchar_t *accept) |
| 1504 |
_GL_ATTRIBUTE_PURE); |
| 1505 |
# endif |
| 1506 |
|
| 1507 |
|
| 1508 |
|
| 1509 |
|
| 1510 |
|
| 1511 |
_GL_CXXALIAS_SYS_CAST2 (wcspbrk, |
| 1512 |
wchar_t *, (const wchar_t *, const wchar_t *), |
| 1513 |
const wchar_t *, (const wchar_t *, const wchar_t *)); |
| 1514 |
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ |
| 1515 |
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) \ |
| 1516 |
&& !defined __clang__ |
| 1517 |
_GL_CXXALIASWARN1 (wcspbrk, wchar_t *, |
| 1518 |
(wchar_t *wcs, const wchar_t *accept)); |
| 1519 |
_GL_CXXALIASWARN1 (wcspbrk, const wchar_t *, |
| 1520 |
(const wchar_t *wcs, const wchar_t *accept)); |
| 1521 |
# elif __GLIBC__ >= 2 && !defined __CORRECT_ISO_CPP_WCHAR_H_PROTO |
| 1522 |
_GL_CXXALIASWARN (wcspbrk); |
| 1523 |
# endif |
| 1524 |
#elif defined GNULIB_POSIXCHECK |
| 1525 |
# undef wcspbrk |
| 1526 |
# if HAVE_RAW_DECL_WCSPBRK |
| 1527 |
_GL_WARN_ON_USE (wcspbrk, "wcspbrk is unportable - " |
| 1528 |
"use gnulib module wcspbrk for portability"); |
| 1529 |
# endif |
| 1530 |
#endif |
| 1531 |
|
| 1532 |
|
| 1533 |
|
| 1534 |
#if @GNULIB_WCSSTR@ |
| 1535 |
# if @REPLACE_WCSSTR@ |
| 1536 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1537 |
# undef wcsstr |
| 1538 |
# define wcsstr rpl_wcsstr |
| 1539 |
# endif |
| 1540 |
_GL_FUNCDECL_RPL (wcsstr, wchar_t *, |
| 1541 |
(const wchar_t *restrict haystack, |
| 1542 |
const wchar_t *restrict needle) |
| 1543 |
_GL_ATTRIBUTE_PURE); |
| 1544 |
_GL_CXXALIAS_RPL (wcsstr, wchar_t *, |
| 1545 |
(const wchar_t *restrict haystack, |
| 1546 |
const wchar_t *restrict needle)); |
| 1547 |
# else |
| 1548 |
# if !@HAVE_WCSSTR@ |
| 1549 |
_GL_FUNCDECL_SYS (wcsstr, wchar_t *, |
| 1550 |
(const wchar_t *restrict haystack, |
| 1551 |
const wchar_t *restrict needle) |
| 1552 |
_GL_ATTRIBUTE_PURE); |
| 1553 |
# endif |
| 1554 |
|
| 1555 |
|
| 1556 |
|
| 1557 |
|
| 1558 |
|
| 1559 |
_GL_CXXALIAS_SYS_CAST2 (wcsstr, |
| 1560 |
wchar_t *, |
| 1561 |
(const wchar_t *restrict, const wchar_t *restrict), |
| 1562 |
const wchar_t *, |
| 1563 |
(const wchar_t *restrict, const wchar_t *restrict)); |
| 1564 |
# endif |
| 1565 |
# if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ |
| 1566 |
&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) \ |
| 1567 |
&& !defined __clang__ |
| 1568 |
_GL_CXXALIASWARN1 (wcsstr, wchar_t *, |
| 1569 |
(wchar_t *restrict haystack, |
| 1570 |
const wchar_t *restrict needle)); |
| 1571 |
_GL_CXXALIASWARN1 (wcsstr, const wchar_t *, |
| 1572 |
(const wchar_t *restrict haystack, |
| 1573 |
const wchar_t *restrict needle)); |
| 1574 |
# elif __GLIBC__ >= 2 && !defined __CORRECT_ISO_CPP_WCHAR_H_PROTO |
| 1575 |
_GL_CXXALIASWARN (wcsstr); |
| 1576 |
# endif |
| 1577 |
#elif defined GNULIB_POSIXCHECK |
| 1578 |
# undef wcsstr |
| 1579 |
# if HAVE_RAW_DECL_WCSSTR |
| 1580 |
_GL_WARN_ON_USE (wcsstr, "wcsstr is unportable - " |
| 1581 |
"use gnulib module wcsstr for portability"); |
| 1582 |
# endif |
| 1583 |
#endif |
| 1584 |
|
| 1585 |
|
| 1586 |
|
| 1587 |
#if @GNULIB_WCSTOK@ |
| 1588 |
# if @REPLACE_WCSTOK@ |
| 1589 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1590 |
# undef wcstok |
| 1591 |
# define wcstok rpl_wcstok |
| 1592 |
# endif |
| 1593 |
_GL_FUNCDECL_RPL (wcstok, wchar_t *, |
| 1594 |
(wchar_t *restrict wcs, const wchar_t *restrict delim, |
| 1595 |
wchar_t **restrict ptr)); |
| 1596 |
_GL_CXXALIAS_RPL (wcstok, wchar_t *, |
| 1597 |
(wchar_t *restrict wcs, const wchar_t *restrict delim, |
| 1598 |
wchar_t **restrict ptr)); |
| 1599 |
# else |
| 1600 |
# if !@HAVE_WCSTOK@ |
| 1601 |
_GL_FUNCDECL_SYS (wcstok, wchar_t *, |
| 1602 |
(wchar_t *restrict wcs, const wchar_t *restrict delim, |
| 1603 |
wchar_t **restrict ptr)); |
| 1604 |
# endif |
| 1605 |
_GL_CXXALIAS_SYS (wcstok, wchar_t *, |
| 1606 |
(wchar_t *restrict wcs, const wchar_t *restrict delim, |
| 1607 |
wchar_t **restrict ptr)); |
| 1608 |
# endif |
| 1609 |
# if __GLIBC__ >= 2 |
| 1610 |
_GL_CXXALIASWARN (wcstok); |
| 1611 |
# endif |
| 1612 |
#elif defined GNULIB_POSIXCHECK |
| 1613 |
# undef wcstok |
| 1614 |
# if HAVE_RAW_DECL_WCSTOK |
| 1615 |
_GL_WARN_ON_USE (wcstok, "wcstok is unportable - " |
| 1616 |
"use gnulib module wcstok for portability"); |
| 1617 |
# endif |
| 1618 |
#endif |
| 1619 |
|
| 1620 |
|
| 1621 |
|
| 1622 |
|
| 1623 |
#if @GNULIB_WCSWIDTH@ |
| 1624 |
# if @REPLACE_WCSWIDTH@ |
| 1625 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1626 |
# undef wcswidth |
| 1627 |
# define wcswidth rpl_wcswidth |
| 1628 |
# endif |
| 1629 |
_GL_FUNCDECL_RPL (wcswidth, int, (const wchar_t *s, size_t n) |
| 1630 |
_GL_ATTRIBUTE_PURE); |
| 1631 |
_GL_CXXALIAS_RPL (wcswidth, int, (const wchar_t *s, size_t n)); |
| 1632 |
# else |
| 1633 |
# if !@HAVE_WCSWIDTH@ |
| 1634 |
_GL_FUNCDECL_SYS (wcswidth, int, (const wchar_t *s, size_t n) |
| 1635 |
_GL_ATTRIBUTE_PURE); |
| 1636 |
# endif |
| 1637 |
_GL_CXXALIAS_SYS (wcswidth, int, (const wchar_t *s, size_t n)); |
| 1638 |
# endif |
| 1639 |
# if __GLIBC__ >= 2 |
| 1640 |
_GL_CXXALIASWARN (wcswidth); |
| 1641 |
# endif |
| 1642 |
#elif defined GNULIB_POSIXCHECK |
| 1643 |
# undef wcswidth |
| 1644 |
# if HAVE_RAW_DECL_WCSWIDTH |
| 1645 |
_GL_WARN_ON_USE (wcswidth, "wcswidth is unportable - " |
| 1646 |
"use gnulib module wcswidth for portability"); |
| 1647 |
# endif |
| 1648 |
#endif |
| 1649 |
|
| 1650 |
|
| 1651 |
|
| 1652 |
|
| 1653 |
#if @GNULIB_WCSFTIME@ |
| 1654 |
# if @REPLACE_WCSFTIME@ |
| 1655 |
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 1656 |
# undef wcsftime |
| 1657 |
# define wcsftime rpl_wcsftime |
| 1658 |
# endif |
| 1659 |
_GL_FUNCDECL_RPL (wcsftime, size_t, |
| 1660 |
(wchar_t *restrict __buf, size_t __bufsize, |
| 1661 |
const wchar_t *restrict __fmt, |
| 1662 |
const struct tm *restrict __tp) |
| 1663 |
_GL_ARG_NONNULL ((1, 3, 4))); |
| 1664 |
_GL_CXXALIAS_RPL (wcsftime, size_t, |
| 1665 |
(wchar_t *restrict __buf, size_t __bufsize, |
| 1666 |
const wchar_t *restrict __fmt, |
| 1667 |
const struct tm *restrict __tp)); |
| 1668 |
# else |
| 1669 |
# if !@HAVE_WCSFTIME@ |
| 1670 |
_GL_FUNCDECL_SYS (wcsftime, size_t, |
| 1671 |
(wchar_t *restrict __buf, size_t __bufsize, |
| 1672 |
const wchar_t *restrict __fmt, |
| 1673 |
const struct tm *restrict __tp) |
| 1674 |
_GL_ARG_NONNULL ((1, 3, 4))); |
| 1675 |
# endif |
| 1676 |
_GL_CXXALIAS_SYS (wcsftime, size_t, |
| 1677 |
(wchar_t *restrict __buf, size_t __bufsize, |
| 1678 |
const wchar_t *restrict __fmt, |
| 1679 |
const struct tm *restrict __tp)); |
| 1680 |
# endif |
| 1681 |
# if __GLIBC__ >= 2 |
| 1682 |
_GL_CXXALIASWARN (wcsftime); |
| 1683 |
# endif |
| 1684 |
#elif defined GNULIB_POSIXCHECK |
| 1685 |
# undef wcsftime |
| 1686 |
# if HAVE_RAW_DECL_WCSFTIME |
| 1687 |
_GL_WARN_ON_USE (wcsftime, "wcsftime is unportable - " |
| 1688 |
"use gnulib module wcsftime for portability"); |
| 1689 |
# endif |
| 1690 |
#endif |
| 1691 |
|
| 1692 |
|
| 1693 |
#if @GNULIB_WGETCWD@ && (defined _WIN32 && !defined __CYGWIN__) |
| 1694 |
|
| 1695 |
|
| 1696 |
|
| 1697 |
|
| 1698 |
|
| 1699 |
|
| 1700 |
|
| 1701 |
|
| 1702 |
|
| 1703 |
|
| 1704 |
|
| 1705 |
|
| 1706 |
|
| 1707 |
_GL_FUNCDECL_SYS (wgetcwd, wchar_t *, (wchar_t *buf, size_t size)); |
| 1708 |
#endif |
| 1709 |
|
| 1710 |
|
| 1711 |
#endif |
| 1712 |
#endif |
| 1713 |
#endif |