include/error/printf-gen.h
1
2
3
4
5 extern int
6 eprintf (int tag, int number, char const *, ...) ATTR_FORMAT_PRINTF(3,4);
7
8
9
10 extern int
11 fleprintf (int tag, int number, char const * , int , char const *, ...) ATTR_FORMAT_PRINTF(5,6);
12
13
14
15 extern int
16 flpeprintf (int tag, int number, char const * , int , int , char const *, ...) ATTR_FORMAT_PRINTF(6,7);
17
18
19
20 extern int
21 leprintf (int tag, int number, err_location_t const *, char const *, ...) ATTR_FORMAT_PRINTF(4,5);
22
23
24
25 extern int
26 oeprintf (int tag, int number, int , char const *, ...) ATTR_FORMAT_PRINTF(4,5);
27
28
29
30 extern int
31 ofleprintf (int tag, int number, int , char const * , int , char const *, ...) ATTR_FORMAT_PRINTF(6,7);
32
33
34
35 extern int
36 oflpeprintf (int tag, int number, int , char const * , int , int , char const *, ...) ATTR_FORMAT_PRINTF(7,8);
37
38
39
40 extern int
41 oleprintf (int tag, int number, int , err_location_t const *, char const *, ...) ATTR_FORMAT_PRINTF(5,6);
42
43
44
45 extern int
46 qeprintf (int tag, int number, char const *, ...) ATTR_FORMAT_PRINTF(3,4);
47
48
49
50 extern int
51 qfleprintf (int tag, int number, char const * , int , char const *, ...) ATTR_FORMAT_PRINTF(5,6);
52
53
54
55 extern int
56 qflpeprintf (int tag, int number, char const * , int , int , char const *, ...) ATTR_FORMAT_PRINTF(6,7);
57
58
59
60 extern int
61 qleprintf (int tag, int number, err_location_t const *, char const *, ...) ATTR_FORMAT_PRINTF(4,5);
62
63
64
65 extern int
66 veprintf (int tag, int number, char const *, va_list) ATTR_FORMAT_VPRINTF(3);
67
68
69
70 extern int
71 vfleprintf (int tag, int number, char const * , int , char const *, va_list) ATTR_FORMAT_VPRINTF(5);
72
73
74
75 extern int
76 vflpeprintf (int tag, int number, char const * , int , int , char const *, va_list) ATTR_FORMAT_VPRINTF(6);
77
78
79
80 extern int
81 vleprintf (int tag, int number, err_location_t const *, char const *, va_list) ATTR_FORMAT_VPRINTF(4);
82
83
84
85 extern int
86 voeprintf (int tag, int number, int , char const *, va_list) ATTR_FORMAT_VPRINTF(4);
87
88
89
90 extern int
91 vofleprintf (int tag, int number, int , char const * , int , char const *, va_list) ATTR_FORMAT_VPRINTF(6);
92
93
94
95 extern int
96 voflpeprintf (int tag, int number, int , char const * , int , int , char const *, va_list) ATTR_FORMAT_VPRINTF(7);
97
98
99
100
101
102 extern int
103 vqeprintf (int tag, int number, char const *, va_list) ATTR_FORMAT_VPRINTF(3);
104
105
106
107 extern int
108 vqfleprintf (int tag, int number, char const * , int , char const *, va_list) ATTR_FORMAT_VPRINTF(5);
109
110
111
112 extern int
113 vqflpeprintf (int tag, int number, char const * , int , int , char const *, va_list) ATTR_FORMAT_VPRINTF(6);
114
115
116
117 extern int
118 vqleprintf (int tag, int number, err_location_t const *, char const *, va_list) ATTR_FORMAT_VPRINTF(4);
119
120
121
122
123
124 extern void
125 eprintf_devel (int tag, int number, char const *, ...) ATTR_FORMAT_PRINTF(3,4);
126
127
128
129 extern void
130 fleprintf_devel (int tag, int number, char const * , int , char const *, ...) ATTR_FORMAT_PRINTF(5,6);
131
132
133
134 extern void
135 flpeprintf_devel (int tag, int number, char const * , int , int , char const *, ...) ATTR_FORMAT_PRINTF(6,7);
136
137
138
139 extern void
140 leprintf_devel (int tag, int number, err_location_t const *, char const *, ...) ATTR_FORMAT_PRINTF(4,5);
141
142
143
144 extern void
145 oeprintf_devel (int tag, int number, int , char const *, ...) ATTR_FORMAT_PRINTF(4,5);
146
147
148
149 extern void
150 ofleprintf_devel (int tag, int number, int , char const * , int , char const *, ...) ATTR_FORMAT_PRINTF(6,7);
151
152
153
154 extern void
155 oflpeprintf_devel (int tag, int number, int , char const * , int , int , char const *, ...) ATTR_FORMAT_PRINTF(7,8);
156
157
158
159 extern void
160 oleprintf_devel (int tag, int number, int , err_location_t const *, char const *, ...) ATTR_FORMAT_PRINTF(5,6);
161
162
163
164 extern void
165 qeprintf_devel (int tag, int number, char const *, ...) ATTR_FORMAT_PRINTF(3,4);
166
167
168
169 extern void
170 qfleprintf_devel (int tag, int number, char const * , int , char const *, ...) ATTR_FORMAT_PRINTF(5,6);
171
172
173
174 extern void
175 qflpeprintf_devel (int tag, int number, char const * , int , int , char const *, ...) ATTR_FORMAT_PRINTF(6,7);
176
177
178
179 extern void
180 qleprintf_devel (int tag, int number, err_location_t const *, char const *, ...) ATTR_FORMAT_PRINTF(4,5);
181
182
183
184 extern void
185 veprintf_devel (int tag, int number, char const *, va_list) ATTR_FORMAT_VPRINTF(3);
186
187
188
189 extern void
190 vfleprintf_devel (int tag, int number, char const * , int , char const *, va_list) ATTR_FORMAT_VPRINTF(5);
191
192
193
194 extern void
195 vflpeprintf_devel (int tag, int number, char const * , int , int , char const *, va_list) ATTR_FORMAT_VPRINTF(6);
196
197
198
199 extern void
200 vleprintf_devel (int tag, int number, err_location_t const *, char const *, va_list) ATTR_FORMAT_VPRINTF(4);
201
202
203
204 extern void
205 voeprintf_devel (int tag, int number, int , char const *, va_list) ATTR_FORMAT_VPRINTF(4);
206
207
208
209 extern void
210 vofleprintf_devel (int tag, int number, int , char const * , int , char const *, va_list) ATTR_FORMAT_VPRINTF(6);
211
212
213
214 extern void
215 voflpeprintf_devel (int tag, int number, int , char const * , int , int , char const *, va_list) ATTR_FORMAT_VPRINTF(7);
216
217
218
219 extern void
220 voleprintf_devel (int tag, int number, int , err_location_t const *, char const *, va_list) ATTR_FORMAT_VPRINTF(5);
221
222
223
224 extern void
225 vqeprintf_devel (int tag, int number, char const *, va_list) ATTR_FORMAT_VPRINTF(3);
226
227
228
229 extern void
230 vqfleprintf_devel (int tag, int number, char const * , int , char const *, va_list) ATTR_FORMAT_VPRINTF(5);
231
232
233
234 extern void
235 vqflpeprintf_devel (int tag, int number, char const * , int , int , char const *, va_list) ATTR_FORMAT_VPRINTF(6);
236
237
238
239 extern void
240 vqleprintf_devel (int tag, int number, err_location_t const *, char const *, va_list) ATTR_FORMAT_VPRINTF(4);
241
242
243
244 #if defined(NDEBUG) || defined(RELEASE)
245 #ifdef __GNUC__
246
247
248 #define deprintf(X...) ((void)0)
249
250
251 #define fldeprintf(X...) ((void)0)
252
253
254 #define flpdeprintf(X...) ((void)0)
255
256
257 #define ldeprintf(X...) ((void)0)
258
259
260 #define odeprintf(X...) ((void)0)
261
262
263 #define ofldeprintf(X...) ((void)0)
264
265
266 #define oflpdeprintf(X...) ((void)0)
267
268
269 #define oldeprintf(X...) ((void)0)
270
271
272 #define qdeprintf(X...) ((void)0)
273
274
275 #define qfldeprintf(X...) ((void)0)
276
277
278 #define qflpdeprintf(X...) ((void)0)
279
280
281 #define qldeprintf(X...) ((void)0)
282
283
284 #define vdeprintf(X...) ((void)0)
285
286
287 #define vfldeprintf(X...) ((void)0)
288
289
290 #define vflpdeprintf(X...) ((void)0)
291
292
293 #define vldeprintf(X...) ((void)0)
294
295
296 #define vodeprintf(X...) ((void)0)
297
298
299 #define vofldeprintf(X...) ((void)0)
300
301
302 #define voflpdeprintf(X...) ((void)0)
303
304
305 #define voldeprintf(X...) ((void)0)
306
307
308 #define vqdeprintf(X...) ((void)0)
309
310
311 #define vqfldeprintf(X...) ((void)0)
312
313
314 #define vqflpdeprintf(X...) ((void)0)
315
316
317 #define vqldeprintf(X...) ((void)0)
318
319
320 #else
321
322
323 #define deprintf while (0) eprintf_devel
324
325
326 #define fldeprintf while (0) fleprintf_devel
327
328
329 #define flpdeprintf while (0) flpeprintf_devel
330
331
332 #define ldeprintf while (0) leprintf_devel
333
334
335 #define odeprintf while (0) oeprintf_devel
336
337
338 #define ofldeprintf while (0) ofleprintf_devel
339
340
341 #define oflpdeprintf while (0) oflpeprintf_devel
342
343
344 #define oldeprintf while (0) oleprintf_devel
345
346
347 #define qdeprintf while (0) qeprintf_devel
348
349
350 #define qfldeprintf while (0) qfleprintf_devel
351
352
353 #define qflpdeprintf while (0) qflpeprintf_devel
354
355
356 #define qldeprintf while (0) qleprintf_devel
357
358
359 #define vdeprintf while (0) veprintf_devel
360
361
362 #define vfldeprintf while (0) vfleprintf_devel
363
364
365 #define vflpdeprintf while (0) vflpeprintf_devel
366
367
368 #define vldeprintf while (0) vleprintf_devel
369
370
371 #define vodeprintf while (0) voeprintf_devel
372
373
374 #define vofldeprintf while (0) vofleprintf_devel
375
376
377 #define voflpdeprintf while (0) voflpeprintf_devel
378
379
380 #define voldeprintf while (0) voleprintf_devel
381
382
383 #define vqdeprintf while (0) vqeprintf_devel
384
385
386 #define vqfldeprintf while (0) vqfleprintf_devel
387
388
389 #define vqflpdeprintf while (0) vqflpeprintf_devel
390
391
392 #define vqldeprintf while (0) vqleprintf_devel
393
394
395 #endif
396 #else
397
398
399
400 #define deprintf eprintf_devel
401
402
403
404 #define fldeprintf fleprintf_devel
405
406
407
408 #define flpdeprintf flpeprintf_devel
409
410
411
412 #define ldeprintf leprintf_devel
413
414
415
416 #define odeprintf oeprintf_devel
417
418
419
420 #define ofldeprintf ofleprintf_devel
421
422
423
424 #define oflpdeprintf oflpeprintf_devel
425
426
427
428 #define oldeprintf oleprintf_devel
429
430
431
432 #define qdeprintf qeprintf_devel
433
434
435
436 #define qfldeprintf qfleprintf_devel
437
438
439
440 #define qflpdeprintf qflpeprintf_devel
441
442
443
444 #define qldeprintf qleprintf_devel
445
446
447
448 #define vdeprintf veprintf_devel
449
450
451
452 #define vfldeprintf vfleprintf_devel
453
454
455
456 #define vflpdeprintf vflpeprintf_devel
457
458
459
460 #define vldeprintf vleprintf_devel
461
462
463
464 #define vodeprintf voeprintf_devel
465
466
467
468 #define vofldeprintf vofleprintf_devel
469
470
471
472 #define voflpdeprintf voflpeprintf_devel
473
474
475
476 #define voldeprintf voleprintf_devel
477
478
479
480 #define vqdeprintf vqeprintf_devel
481
482
483
484 #define vqfldeprintf vqfleprintf_devel
485
486
487
488 #define vqflpdeprintf vqflpeprintf_devel
489
490
491
492 #define vqldeprintf vqleprintf_devel
493
494
495 #endif