summaryrefslogtreecommitdiff
path: root/src/lib/evil/evil_macro_pop.h
blob: a82818da9b4e086e3a3282b1d8db0631b79b1258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef __EVIL_MACRO_POP_H__
#define __EVIL_MACRO_POP_H__


#ifdef EVIL_CDECL_IS_DEFINED
# undef __cdecl
# undef EVIL_CDECL_IS_DEFINED
#endif

#define fprintf   _evil_fprintfa
#define printf    _evil_printfa
#define snprintf  _evil_snprintfa
#define sprintf   _evil_sprintfa
#define vfprintf  _evil_vfprintfa
#define vprintf   _evil_vprintfa
#define vsnprintf _evil_vsnprintfa
#define vsprintf  _evil_vsprintfa

#define fscanf    _evil_fscanf
#define scanf     _evil_scanf
#define sscanf    _evil_sscanf
#define vfscanf   _evil_vfscanf
#define vscanf    _evil_vscanf
#define vsscanf   _evil_vsscanf

#define asprintf  _evil_asprintf
#define vasprintf _evil_vasprintf

/* Redefine to GNU specific PRI... and SCN... macros.  */

#define PRId64 "lld"
#define PRIdLEAST64 "lld"
#define PRIdFAST64 "lld"
#define PRIdMAX "lld"
#define PRIi64 "lli"
#define PRIiLEAST64 "lli"
#define PRIiFAST64 "lli"
#define PRIiMAX "lli"
#define PRIo64 "llo"
#define PRIoLEAST64 "llo"
#define PRIoFAST64 "llo"
#define PRIoMAX "llo"
#define PRIu64 "llu"
#define PRIuLEAST64 "llu"
#define PRIuFAST64 "llu"
#define PRIuMAX "llu"
#define PRIx64 "llx"
#define PRIxLEAST64 "llx"
#define PRIxFAST64 "llx"
#define PRIxMAX "llx"
#define PRIX64 "llX"
#define PRIXLEAST64 "llX"
#define PRIXFAST64 "llX"
#define PRIXMAX "llX"

#define SCNd64 "lld"
#define SCNdLEAST64 "lld"
#define SCNdFAST64 "lld"
#define SCNdMAX "lld"
#define SCNi64 "lli"
#define SCNiLEAST64 "lli"
#define SCNiFAST64 "lli"
#define SCNiMAX "lli"
#define SCNo64 "llo"
#define SCNoLEAST64 "llo"
#define SCNoFAST64 "llo"
#define SCNoMAX "llo"
#define SCNx64 "llx"
#define SCNxLEAST64 "llx"
#define SCNxFAST64 "llx"
#define SCNxMAX "llx"
#define SCNu64 "llu"
#define SCNuLEAST64 "llu"
#define SCNuFAST64 "llu"
#define SCNuMAX "llu"

#ifdef _WIN64
#define PRIdPTR "lld"
#define PRIiPTR "lli"
#define PRIoPTR "llo"
#define PRIuPTR "llu"
#define PRIxPTR "llx"
#define PRIXPTR "llX"

#define SCNdPTR "lld"
#define SCNiPTR "lli"
#define SCNoPTR "llo"
#define SCNxPTR "llx"
#define SCNuPTR "llu"
#endif /* _WIN64 */


#endif /* __EVIL_MACRO_POP_H__ */