1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Decomposed printf argument list.
4 Copyright (C) 1999, 2002-2003, 2006-2007, 2011-2013 Free Software
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, see <http://www.gnu.org/licenses/>. */
20 #ifndef _PRINTF_ARGS_H
21 #define _PRINTF_ARGS_H
23 /* This file can be parametrized with the following macros:
24 ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions.
25 PRINTF_FETCHARGS Name of the function to be declared.
26 STATIC Set to 'static' to declare the function static. */
28 /* Default parameters. */
29 #ifndef PRINTF_FETCHARGS
30 # define PRINTF_FETCHARGS printf_fetchargs
62 #if HAVE_LONG_LONG_INT
77 TYPE_COUNT_SCHAR_POINTER,
78 TYPE_COUNT_SHORT_POINTER,
79 TYPE_COUNT_INT_POINTER,
80 TYPE_COUNT_LONGINT_POINTER
81 #if HAVE_LONG_LONG_INT
82 , TYPE_COUNT_LONGLONGINT_POINTER
85 /* The unistdio extensions. */
92 /* Polymorphic argument */
99 unsigned char a_uchar;
101 unsigned short a_ushort;
105 unsigned long int a_ulongint;
106 #if HAVE_LONG_LONG_INT
107 long long int a_longlongint;
108 unsigned long long int a_ulonglongint;
112 long double a_longdouble;
117 const char* a_string;
119 const wchar_t* a_wide_string;
122 signed char * a_count_schar_pointer;
123 short * a_count_short_pointer;
124 int * a_count_int_pointer;
125 long int * a_count_longint_pointer;
126 #if HAVE_LONG_LONG_INT
127 long long int * a_count_longlongint_pointer;
130 /* The unistdio extensions. */
131 const uint8_t * a_u8_string;
132 const uint16_t * a_u16_string;
133 const uint32_t * a_u32_string;
140 /* Number of directly allocated arguments (no malloc() needed). */
141 #define N_DIRECT_ALLOC_ARGUMENTS 7
147 argument direct_alloc_arg[N_DIRECT_ALLOC_ARGUMENTS];
152 /* Fetch the arguments, putting them into a. */
158 int PRINTF_FETCHARGS (va_list args, arguments *a);
160 #endif /* _PRINTF_ARGS_H */