~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-tools/gnulib-lib/printf-parse.h

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
5
   This program is free software; you can redistribute it and/or modify
5
6
   it under the terms of the GNU General Public License as published by
6
 
   the Free Software Foundation; either version 2, or (at your option)
 
7
   the Free Software Foundation; either version 3, or (at your option)
7
8
   any later version.
8
9
 
9
10
   This program is distributed in the hope that it will be useful,
26
27
 
27
28
 
28
29
/* Flags */
29
 
#define FLAG_GROUP       1      /* ' flag */
30
 
#define FLAG_LEFT        2      /* - flag */
31
 
#define FLAG_SHOWSIGN    4      /* + flag */
32
 
#define FLAG_SPACE       8      /* space flag */
33
 
#define FLAG_ALT        16      /* # flag */
34
 
#define FLAG_ZERO       32
 
30
#define FLAG_GROUP       1      /* ' flag */
 
31
#define FLAG_LEFT        2      /* - flag */
 
32
#define FLAG_SHOWSIGN    4      /* + flag */
 
33
#define FLAG_SPACE       8      /* space flag */
 
34
#define FLAG_ALT        16      /* # flag */
 
35
#define FLAG_ZERO       32
35
36
 
36
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
40
/* xxx_directive: A parsed directive.
40
41
   xxx_directives: A parsed format string.  */
163
164
       u8_printf_parse (const uint8_t *format, u8_directives *d, arguments *a);
164
165
extern int
165
166
       u16_printf_parse (const uint16_t *format, u16_directives *d,
166
 
                         arguments *a);
 
167
                         arguments *a);
167
168
extern int
168
169
       u32_printf_parse (const uint32_t *format, u32_directives *d,
169
 
                         arguments *a);
 
170
                         arguments *a);
170
171
#else
171
172
# ifdef STATIC
172
173
STATIC