PIPS
|
#include <stddef.h>
#include <stdarg.h>
Go to the source code of this file.
Data Structures | |
struct | argument |
Polymorphic argument. More... | |
struct | arguments |
Macros | |
#define | PRINTF_FETCHARGS printf_fetchargs |
Decomposed printf argument list. More... | |
#define | N_DIRECT_ALLOC_ARGUMENTS 7 |
Number of directly allocated arguments (no malloc() needed). More... | |
Enumerations | |
enum | arg_type { TYPE_NONE , TYPE_SCHAR , TYPE_UCHAR , TYPE_SHORT , TYPE_USHORT , TYPE_INT , TYPE_UINT , TYPE_LONGINT , TYPE_ULONGINT , TYPE_DOUBLE , TYPE_LONGDOUBLE , TYPE_CHAR , TYPE_STRING , TYPE_POINTER , TYPE_COUNT_SCHAR_POINTER , TYPE_COUNT_SHORT_POINTER , TYPE_COUNT_INT_POINTER , TYPE_COUNT_LONGINT_POINTER } |
Get size_t. More... | |
Functions | |
int | PRINTF_FETCHARGS (va_list args, arguments *a) |
Fetch the arguments, putting them into a. More... | |
#define N_DIRECT_ALLOC_ARGUMENTS 7 |
Number of directly allocated arguments (no malloc() needed).
Definition at line 139 of file printf-args.h.
#define PRINTF_FETCHARGS printf_fetchargs |
Decomposed printf argument list.
Copyright (C) 1999, 2002-2003, 2006-2007, 2011-2014 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. PRINTF_FETCHARGS Name of the function to be declared. STATIC Set to 'static' to declare the function static.
Default parameters.
Definition at line 28 of file printf-args.h.
enum arg_type |
Get size_t.
Get wchar_t.
Get wint_t.
Get va_list.
Argument types
Definition at line 49 of file printf-args.h.
Fetch the arguments, putting them into a.
Fetch the arguments, putting them into a.
Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2014 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. PRINTF_FETCHARGS Name of the function to be defined. STATIC Set to 'static' to declare the function static.
Specification.
igned char
nsigned char
hort
nsigned short
A null pointer is an invalid argument for "%s", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case.
Unknown type.
Definition at line 36 of file printf-args.c.
References argument::a, argument::a_char, argument::a_count_int_pointer, argument::a_count_longint_pointer, argument::a_count_schar_pointer, argument::a_count_short_pointer, argument::a_double, argument::a_int, argument::a_longdouble, argument::a_longint, argument::a_pointer, argument::a_schar, argument::a_short, argument::a_string, argument::a_uchar, argument::a_uint, argument::a_ulongint, argument::a_ushort, arguments::arg, count, argument::type, TYPE_CHAR, TYPE_COUNT_INT_POINTER, TYPE_COUNT_LONGINT_POINTER, TYPE_COUNT_SCHAR_POINTER, TYPE_COUNT_SHORT_POINTER, TYPE_DOUBLE, TYPE_INT, TYPE_LONGDOUBLE, TYPE_LONGINT, TYPE_POINTER, TYPE_SCHAR, TYPE_SHORT, TYPE_STRING, TYPE_UCHAR, TYPE_UINT, TYPE_ULONGINT, TYPE_USHORT, uint16_t, uint32_t, uint8_t, wchar_t, and wint_t.