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

« back to all changes in this revision

Viewing changes to gl/printf-parse.h

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-10-01 15:28:13 UTC
  • mfrom: (12.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20111001152813-yygm1c4cxonfxhzy
Tags: 2.12.11-1
* New upstream version.
  + Allow CA importing of 0 certificates to succeed. Closes: #640639
* Add libp11-kit-dev to libgnutls-dev dependencies. (see #643811)
* [20_guiledocstring.diff] guile: Fix docstring extraction with CPP 4.5+.

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, 2009-2010 Free Software
 
2
   Copyright (C) 1999, 2002-2003, 2005, 2007, 2010-2011 Free Software
3
3
   Foundation, Inc.
4
4
 
5
5
   This program is free software; you can redistribute it and/or modify
23
23
     ENABLE_UNISTDIO    Set to 1 to enable the unistdio extensions.
24
24
     STATIC             Set to 'static' to declare the function static.  */
25
25
 
 
26
#if HAVE_FEATURES_H
 
27
# include <features.h> /* for __GLIBC__, __UCLIBC__ */
 
28
#endif
 
29
 
26
30
#include "printf-args.h"
27
31
 
28
32
 
33
37
#define FLAG_SPACE       8      /* space flag */
34
38
#define FLAG_ALT        16      /* # flag */
35
39
#define FLAG_ZERO       32
 
40
#if __GLIBC__ >= 2 && !defined __UCLIBC__
 
41
# define FLAG_LOCALIZED 64      /* I flag, uses localized digits */
 
42
#endif
36
43
 
37
44
/* arg_index value indicating that no argument is consumed.  */
38
45
#define ARG_NONE        (~(size_t)0)
40
47
/* xxx_directive: A parsed directive.
41
48
   xxx_directives: A parsed format string.  */
42
49
 
 
50
/* Number of directly allocated directives (no malloc() needed).  */
 
51
#define N_DIRECT_ALLOC_DIRECTIVES 7
 
52
 
43
53
/* A parsed directive.  */
44
54
typedef struct
45
55
{
64
74
  char_directive *dir;
65
75
  size_t max_width_length;
66
76
  size_t max_precision_length;
 
77
  char_directive direct_alloc_dir[N_DIRECT_ALLOC_DIRECTIVES];
67
78
}
68
79
char_directives;
69
80
 
93
104
  u8_directive *dir;
94
105
  size_t max_width_length;
95
106
  size_t max_precision_length;
 
107
  u8_directive direct_alloc_dir[N_DIRECT_ALLOC_DIRECTIVES];
96
108
}
97
109
u8_directives;
98
110
 
120
132
  u16_directive *dir;
121
133
  size_t max_width_length;
122
134
  size_t max_precision_length;
 
135
  u16_directive direct_alloc_dir[N_DIRECT_ALLOC_DIRECTIVES];
123
136
}
124
137
u16_directives;
125
138
 
147
160
  u32_directive *dir;
148
161
  size_t max_width_length;
149
162
  size_t max_precision_length;
 
163
  u32_directive direct_alloc_dir[N_DIRECT_ALLOC_DIRECTIVES];
150
164
}
151
165
u32_directives;
152
166