| Line 1... |
Line 1... |
| 1 |
/* Formatted output to strings, using POSIX/XSI format strings with positions.
|
1 |
/* Formatted output to strings, using POSIX/XSI format strings with positions.
|
| 2 |
Copyright (C) 2003, 2006 Free Software Foundation, Inc.
|
2 |
Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
|
| 3 |
Written by Bruno Haible <bruno@clisp.org>, 2003.
|
3 |
Written by Bruno Haible <bruno@clisp.org>, 2003.
|
| 4 |
|
4 |
|
| 5 |
This program is free software; you can redistribute it and/or modify it
|
5 |
This program is free software; you can redistribute it and/or modify it
|
| 6 |
under the terms of the GNU Library General Public License as published
|
6 |
under the terms of the GNU Library General Public License as published
|
| 7 |
by the Free Software Foundation; either version 2, or (at your option)
|
7 |
by the Free Software Foundation; either version 2, or (at your option)
|
| Line 67... |
Line 67... |
| 67 |
#endif
|
67 |
#endif
|
| 68 |
|
68 |
|
| 69 |
#define STATIC static
|
69 |
#define STATIC static
|
| 70 |
|
70 |
|
| 71 |
/* This needs to be consistent with libgnuintl.h.in. */
|
71 |
/* This needs to be consistent with libgnuintl.h.in. */
|
| 72 |
#if defined __NetBSD__ || defined __CYGWIN__ || defined __MINGW32__
|
72 |
#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__
|
| 73 |
/* Don't break __attribute__((format(printf,M,N))).
|
73 |
/* Don't break __attribute__((format(printf,M,N))).
|
| 74 |
This redefinition is only possible because the libc in NetBSD, Cygwin,
|
74 |
This redefinition is only possible because the libc in NetBSD, Cygwin,
|
| 75 |
mingw does not have a function __printf__. */
|
75 |
mingw does not have a function __printf__. */
|
| 76 |
# define libintl_printf __printf__
|
76 |
# define libintl_printf __printf__
|
| 77 |
#endif
|
77 |
#endif
|
| Line 283... |
Line 283... |
| 283 |
|
283 |
|
| 284 |
#include <wchar.h>
|
284 |
#include <wchar.h>
|
| 285 |
|
285 |
|
| 286 |
#define WIDE_CHAR_VERSION 1
|
286 |
#define WIDE_CHAR_VERSION 1
|
| 287 |
|
287 |
|
| - |
|
288 |
#include "wprintf-parse.h"
|
| 288 |
/* Define auxiliary functions declared in "wprintf-parse.h". */
|
289 |
/* Define auxiliary functions declared in "wprintf-parse.h". */
|
| - |
|
290 |
#define CHAR_T wchar_t
|
| - |
|
291 |
#define DIRECTIVE wchar_t_directive
|
| - |
|
292 |
#define DIRECTIVES wchar_t_directives
|
| - |
|
293 |
#define PRINTF_PARSE wprintf_parse
|
| 289 |
#include "printf-parse.c"
|
294 |
#include "printf-parse.c"
|
| 290 |
|
295 |
|
| 291 |
/* Define functions declared in "vasnprintf.h". */
|
296 |
/* Define functions declared in "vasnprintf.h". */
|
| 292 |
#define vasnwprintf libintl_vasnwprintf
|
297 |
#define vasnwprintf libintl_vasnwprintf
|
| 293 |
#include "vasnprintf.c"
|
298 |
#include "vasnprintf.c"
|