summaryrefslogtreecommitdiffstats
path: root/gl/printf-parse.h
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-07 21:11:46 -0400
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-12 21:26:35 -0400
commit74da141e618ef99959d509cb2e7be35a348a39db (patch)
tree88ebc38b381a1021fc2d74864a71e230ae591c3d /gl/printf-parse.h
parentc63a4f726a0b6ad8cf6040f947754a81fd4683bb (diff)
downloadmonitoring-plugins-74da141e618ef99959d509cb2e7be35a348a39db.tar.gz
Sync with the latest Gnulib code (177f525)
Signed-off-by: Thomas Guyot-Sionnest <dermoth@aei.ca>
Diffstat (limited to 'gl/printf-parse.h')
-rw-r--r--gl/printf-parse.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/gl/printf-parse.h b/gl/printf-parse.h
index e5d68d75..0f2b7082 100644
--- a/gl/printf-parse.h
+++ b/gl/printf-parse.h
@@ -1,5 +1,6 @@
1/* Parse printf format string. 1/* Parse printf format string.
2 Copyright (C) 1999, 2002-2003, 2005, 2007 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2002-2003, 2005, 2007, 2009-2010 Free Software
3 Foundation, Inc.
3 4
4 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
@@ -26,15 +27,15 @@
26 27
27 28
28/* Flags */ 29/* Flags */
29#define FLAG_GROUP 1 /* ' flag */ 30#define FLAG_GROUP 1 /* ' flag */
30#define FLAG_LEFT 2 /* - flag */ 31#define FLAG_LEFT 2 /* - flag */
31#define FLAG_SHOWSIGN 4 /* + flag */ 32#define FLAG_SHOWSIGN 4 /* + flag */
32#define FLAG_SPACE 8 /* space flag */ 33#define FLAG_SPACE 8 /* space flag */
33#define FLAG_ALT 16 /* # flag */ 34#define FLAG_ALT 16 /* # flag */
34#define FLAG_ZERO 32 35#define FLAG_ZERO 32
35 36
36/* arg_index value indicating that no argument is consumed. */ 37/* arg_index value indicating that no argument is consumed. */
37#define ARG_NONE (~(size_t)0) 38#define ARG_NONE (~(size_t)0)
38 39
39/* xxx_directive: A parsed directive. 40/* xxx_directive: A parsed directive.
40 xxx_directives: A parsed format string. */ 41 xxx_directives: A parsed format string. */
@@ -163,10 +164,10 @@ extern int
163 u8_printf_parse (const uint8_t *format, u8_directives *d, arguments *a); 164 u8_printf_parse (const uint8_t *format, u8_directives *d, arguments *a);
164extern int 165extern int
165 u16_printf_parse (const uint16_t *format, u16_directives *d, 166 u16_printf_parse (const uint16_t *format, u16_directives *d,
166 arguments *a); 167 arguments *a);
167extern int 168extern int
168 u32_printf_parse (const uint32_t *format, u32_directives *d, 169 u32_printf_parse (const uint32_t *format, u32_directives *d,
169 arguments *a); 170 arguments *a);
170#else 171#else
171# ifdef STATIC 172# ifdef STATIC
172STATIC 173STATIC