~ubuntu-branches/debian/wheezy/courier/wheezy

« back to all changes in this revision

Viewing changes to pcp/intl/printf-args.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Hornburg (Racke)
  • Date: 2009-03-08 16:42:08 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090308164208-nlve2wtx9bbrulmd
Tags: 0.61.2-1
* New upstream release.
* Lintian:
  - fix chown in courier-webadmin postinst
  - removed courier-base preinst
  - added debhelper token to courier-mta.preinst
  - removed *.conffiles

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Decomposed printf argument list.
2
 
   Copyright (C) 1999, 2002-2003, 2006 Free Software Foundation, Inc.
 
2
   Copyright (C) 1999, 2002-2003, 2006-2007 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify it
5
5
   under the terms of the GNU Library General Public License as published
19
19
#ifndef _PRINTF_ARGS_H
20
20
#define _PRINTF_ARGS_H
21
21
 
 
22
/* This file can be parametrized with the following macros:
 
23
     ENABLE_UNISTDIO    Set to 1 to enable the unistdio extensions.
 
24
     PRINTF_FETCHARGS   Name of the function to be declared.
 
25
     STATIC             Set to 'static' to declare the function static.  */
 
26
 
 
27
/* Default parameters.  */
 
28
#ifndef PRINTF_FETCHARGS
 
29
# define PRINTF_FETCHARGS printf_fetchargs
 
30
#endif
 
31
 
22
32
/* Get size_t.  */
23
33
#include <stddef.h>
24
34
 
25
35
/* Get wchar_t.  */
26
 
#ifdef HAVE_WCHAR_T
 
36
#if HAVE_WCHAR_T
27
37
# include <stddef.h>
28
38
#endif
29
39
 
30
40
/* Get wint_t.  */
31
 
#ifdef HAVE_WINT_T
 
41
#if HAVE_WINT_T
32
42
# include <wchar.h>
33
43
#endif
34
44
 
48
58
  TYPE_UINT,
49
59
  TYPE_LONGINT,
50
60
  TYPE_ULONGINT,
51
 
#ifdef HAVE_LONG_LONG_INT
 
61
#if HAVE_LONG_LONG_INT
52
62
  TYPE_LONGLONGINT,
53
63
  TYPE_ULONGLONGINT,
54
64
#endif
55
65
  TYPE_DOUBLE,
56
 
#ifdef HAVE_LONG_DOUBLE
57
66
  TYPE_LONGDOUBLE,
58
 
#endif
59
67
  TYPE_CHAR,
60
 
#ifdef HAVE_WINT_T
 
68
#if HAVE_WINT_T
61
69
  TYPE_WIDE_CHAR,
62
70
#endif
63
71
  TYPE_STRING,
64
 
#ifdef HAVE_WCHAR_T
 
72
#if HAVE_WCHAR_T
65
73
  TYPE_WIDE_STRING,
66
74
#endif
67
75
  TYPE_POINTER,
69
77
  TYPE_COUNT_SHORT_POINTER,
70
78
  TYPE_COUNT_INT_POINTER,
71
79
  TYPE_COUNT_LONGINT_POINTER
72
 
#ifdef HAVE_LONG_LONG_INT
 
80
#if HAVE_LONG_LONG_INT
73
81
, TYPE_COUNT_LONGLONGINT_POINTER
74
82
#endif
 
83
#if ENABLE_UNISTDIO
 
84
  /* The unistdio extensions.  */
 
85
, TYPE_U8_STRING
 
86
, TYPE_U16_STRING
 
87
, TYPE_U32_STRING
 
88
#endif
75
89
} arg_type;
76
90
 
77
91
/* Polymorphic argument */
88
102
    unsigned int                a_uint;
89
103
    long int                    a_longint;
90
104
    unsigned long int           a_ulongint;
91
 
#ifdef HAVE_LONG_LONG_INT
 
105
#if HAVE_LONG_LONG_INT
92
106
    long long int               a_longlongint;
93
107
    unsigned long long int      a_ulonglongint;
94
108
#endif
95
109
    float                       a_float;
96
110
    double                      a_double;
97
 
#ifdef HAVE_LONG_DOUBLE
98
111
    long double                 a_longdouble;
99
 
#endif
100
112
    int                         a_char;
101
 
#ifdef HAVE_WINT_T
 
113
#if HAVE_WINT_T
102
114
    wint_t                      a_wide_char;
103
115
#endif
104
116
    const char*                 a_string;
105
 
#ifdef HAVE_WCHAR_T
 
117
#if HAVE_WCHAR_T
106
118
    const wchar_t*              a_wide_string;
107
119
#endif
108
120
    void*                       a_pointer;
110
122
    short *                     a_count_short_pointer;
111
123
    int *                       a_count_int_pointer;
112
124
    long int *                  a_count_longint_pointer;
113
 
#ifdef HAVE_LONG_LONG_INT
 
125
#if HAVE_LONG_LONG_INT
114
126
    long long int *             a_count_longlongint_pointer;
115
127
#endif
 
128
#if ENABLE_UNISTDIO
 
129
    /* The unistdio extensions.  */
 
130
    const uint8_t *             a_u8_string;
 
131
    const uint16_t *            a_u16_string;
 
132
    const uint32_t *            a_u32_string;
 
133
#endif
116
134
  }
117
135
  a;
118
136
}
132
150
#else
133
151
extern
134
152
#endif
135
 
int printf_fetchargs (va_list args, arguments *a);
 
153
int PRINTF_FETCHARGS (va_list args, arguments *a);
136
154
 
137
155
#endif /* _PRINTF_ARGS_H */