~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to lib/gl/printf-parse.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

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 Lesser General Public License as published by
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