annotate lib/printf-args.c @ 425:67815606c5d9 3.0-beta2

Prevent NULL deref in lw_expr_destroy
author lost@l-w.ca
date Sun, 19 Sep 2010 10:27:47 -0600
parents 3c2e1f24cc7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
421
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
1 /* Decomposed printf argument list.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
2 Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2010 Free Software
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
3 Foundation, Inc.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
4
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
5 This program is free software; you can redistribute it and/or modify
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
7 the Free Software Foundation; either version 3, or (at your option)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
8 any later version.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
9
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
13 GNU General Public License for more details.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
14
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
15 You should have received a copy of the GNU General Public License along
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
16 with this program; if not, write to the Free Software Foundation,
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
18
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
19 /* This file can be parametrized with the following macros:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
20 ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
21 PRINTF_FETCHARGS Name of the function to be defined.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
22 STATIC Set to 'static' to declare the function static. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
23
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
24 #ifndef PRINTF_FETCHARGS
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
25 # include <config.h>
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
26 #endif
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
27
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
28 /* Specification. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
29 #ifndef PRINTF_FETCHARGS
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
30 # include "printf-args.h"
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
31 #endif
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
32
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
33 #ifdef STATIC
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
34 STATIC
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
35 #endif
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
36 int
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
37 PRINTF_FETCHARGS (va_list args, arguments *a)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
38 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
39 size_t i;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
40 argument *ap;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
41
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
42 for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
43 switch (ap->type)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
44 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
45 case TYPE_SCHAR:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
46 ap->a.a_schar = va_arg (args, /*signed char*/ int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
47 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
48 case TYPE_UCHAR:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
49 ap->a.a_uchar = va_arg (args, /*unsigned char*/ int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
50 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
51 case TYPE_SHORT:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
52 ap->a.a_short = va_arg (args, /*short*/ int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
53 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
54 case TYPE_USHORT:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
55 ap->a.a_ushort = va_arg (args, /*unsigned short*/ int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
56 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
57 case TYPE_INT:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
58 ap->a.a_int = va_arg (args, int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
59 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
60 case TYPE_UINT:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
61 ap->a.a_uint = va_arg (args, unsigned int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
62 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
63 case TYPE_LONGINT:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
64 ap->a.a_longint = va_arg (args, long int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
65 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
66 case TYPE_ULONGINT:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
67 ap->a.a_ulongint = va_arg (args, unsigned long int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
68 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
69 #if HAVE_LONG_LONG_INT
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
70 case TYPE_LONGLONGINT:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
71 ap->a.a_longlongint = va_arg (args, long long int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
72 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
73 case TYPE_ULONGLONGINT:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
74 ap->a.a_ulonglongint = va_arg (args, unsigned long long int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
75 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
76 #endif
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
77 case TYPE_DOUBLE:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
78 ap->a.a_double = va_arg (args, double);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
79 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
80 case TYPE_LONGDOUBLE:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
81 ap->a.a_longdouble = va_arg (args, long double);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
82 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
83 case TYPE_CHAR:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
84 ap->a.a_char = va_arg (args, int);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
85 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
86 #if HAVE_WINT_T
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
87 case TYPE_WIDE_CHAR:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
88 /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
89 default argument promotions", this is not the case in mingw32,
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
90 where wint_t is 'unsigned short'. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
91 ap->a.a_wide_char =
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
92 (sizeof (wint_t) < sizeof (int)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
93 ? (wint_t) va_arg (args, int)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
94 : va_arg (args, wint_t));
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
95 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
96 #endif
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
97 case TYPE_STRING:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
98 ap->a.a_string = va_arg (args, const char *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
99 /* A null pointer is an invalid argument for "%s", but in practice
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
100 it occurs quite frequently in printf statements that produce
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
101 debug output. Use a fallback in this case. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
102 if (ap->a.a_string == NULL)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
103 ap->a.a_string = "(NULL)";
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
104 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
105 #if HAVE_WCHAR_T
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
106 case TYPE_WIDE_STRING:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
107 ap->a.a_wide_string = va_arg (args, const wchar_t *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
108 /* A null pointer is an invalid argument for "%ls", but in practice
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
109 it occurs quite frequently in printf statements that produce
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
110 debug output. Use a fallback in this case. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
111 if (ap->a.a_wide_string == NULL)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
112 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
113 static const wchar_t wide_null_string[] =
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
114 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
115 (wchar_t)'(',
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
116 (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L',
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
117 (wchar_t)')',
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
118 (wchar_t)0
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
119 };
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
120 ap->a.a_wide_string = wide_null_string;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
121 }
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
122 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
123 #endif
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
124 case TYPE_POINTER:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
125 ap->a.a_pointer = va_arg (args, void *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
126 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
127 case TYPE_COUNT_SCHAR_POINTER:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
128 ap->a.a_count_schar_pointer = va_arg (args, signed char *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
129 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
130 case TYPE_COUNT_SHORT_POINTER:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
131 ap->a.a_count_short_pointer = va_arg (args, short *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
132 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
133 case TYPE_COUNT_INT_POINTER:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
134 ap->a.a_count_int_pointer = va_arg (args, int *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
135 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
136 case TYPE_COUNT_LONGINT_POINTER:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
137 ap->a.a_count_longint_pointer = va_arg (args, long int *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
138 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
139 #if HAVE_LONG_LONG_INT
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
140 case TYPE_COUNT_LONGLONGINT_POINTER:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
141 ap->a.a_count_longlongint_pointer = va_arg (args, long long int *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
142 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
143 #endif
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
144 #if ENABLE_UNISTDIO
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
145 /* The unistdio extensions. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
146 case TYPE_U8_STRING:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
147 ap->a.a_u8_string = va_arg (args, const uint8_t *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
148 /* A null pointer is an invalid argument for "%U", but in practice
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
149 it occurs quite frequently in printf statements that produce
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
150 debug output. Use a fallback in this case. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
151 if (ap->a.a_u8_string == NULL)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
152 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
153 static const uint8_t u8_null_string[] =
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
154 { '(', 'N', 'U', 'L', 'L', ')', 0 };
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
155 ap->a.a_u8_string = u8_null_string;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
156 }
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
157 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
158 case TYPE_U16_STRING:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
159 ap->a.a_u16_string = va_arg (args, const uint16_t *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
160 /* A null pointer is an invalid argument for "%lU", but in practice
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
161 it occurs quite frequently in printf statements that produce
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
162 debug output. Use a fallback in this case. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
163 if (ap->a.a_u16_string == NULL)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
164 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
165 static const uint16_t u16_null_string[] =
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
166 { '(', 'N', 'U', 'L', 'L', ')', 0 };
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
167 ap->a.a_u16_string = u16_null_string;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
168 }
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
169 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
170 case TYPE_U32_STRING:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
171 ap->a.a_u32_string = va_arg (args, const uint32_t *);
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
172 /* A null pointer is an invalid argument for "%llU", but in practice
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
173 it occurs quite frequently in printf statements that produce
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
174 debug output. Use a fallback in this case. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
175 if (ap->a.a_u32_string == NULL)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
176 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
177 static const uint32_t u32_null_string[] =
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
178 { '(', 'N', 'U', 'L', 'L', ')', 0 };
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
179 ap->a.a_u32_string = u32_null_string;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
180 }
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
181 break;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
182 #endif
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
183 default:
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
184 /* Unknown type. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
185 return -1;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
186 }
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
187 return 0;
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
188 }