projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comments and a bit of initialization order cleanup.
[pintos-anon]
/
src
/
lib
/
inttypes.h
diff --git
a/src/lib/inttypes.h
b/src/lib/inttypes.h
index 70bb8980b722c1bc7cf16ddc40125a76a1a3a449..f7037255c8d5249b35cd72a47747b12f0789a532 100644
(file)
--- a/
src/lib/inttypes.h
+++ b/
src/lib/inttypes.h
@@
-1,48
+1,48
@@
-#ifndef LIB_INTTYPES_H
-#define LIB_INTTYPES_H
+#ifndef
__
LIB_INTTYPES_H
+#define
__
LIB_INTTYPES_H
-#define PRId8 "hhd"
-#define PRId16 "hd"
-#define PRId32 "d"
-#define PRId64 "lld"
+#include <stdint.h>
+#define PRId8 "hhd"
#define PRIi8 "hhi"
#define PRIi8 "hhi"
-#define PRIi16 "hi"
-#define PRIi32 "i"
-#define PRIi64 "lli"
-
#define PRIo8 "hho"
#define PRIo8 "hho"
-#define PRIo16 "ho"
-#define PRIo32 "o"
-#define PRIo64 "llo"
-
#define PRIu8 "hhu"
#define PRIu8 "hhu"
-#define PRIu16 "hu"
-#define PRIu32 "u"
-#define PRIu64 "llu"
-
#define PRIx8 "hhx"
#define PRIx8 "hhx"
-#define PRIx16 "hx"
-#define PRIx32 "x"
-#define PRIx64 "llx"
-
#define PRIX8 "hhX"
#define PRIX8 "hhX"
+
+#define PRId16 "hd"
+#define PRIi16 "hi"
+#define PRIo16 "ho"
+#define PRIu16 "hu"
+#define PRIx16 "hx"
#define PRIX16 "hX"
#define PRIX16 "hX"
+
+#define PRId32 "d"
+#define PRIi32 "i"
+#define PRIo32 "o"
+#define PRIu32 "u"
+#define PRIx32 "x"
#define PRIX32 "X"
#define PRIX32 "X"
+
+#define PRId64 "lld"
+#define PRIi64 "lli"
+#define PRIo64 "llo"
+#define PRIu64 "llu"
+#define PRIx64 "llx"
#define PRIX64 "llX"
#define PRIX64 "llX"
-#define PRIdMAX "
ll
d"
-#define PRIiMAX "
ll
i"
-#define PRIoMAX "
ll
o"
-#define PRIuMAX "
ll
u"
-#define PRIxMAX "
ll
x"
-#define PRIXMAX "
ll
X"
-
-#define PRIdPTR "d"
-#define PRIiPTR "i"
-#define PRIoPTR "o"
-#define PRIuPTR "u"
-#define PRIxPTR "x"
-#define PRIXPTR "X"
+#define PRIdMAX "
j
d"
+#define PRIiMAX "
j
i"
+#define PRIoMAX "
j
o"
+#define PRIuMAX "
j
u"
+#define PRIxMAX "
j
x"
+#define PRIXMAX "
j
X"
+
+#define PRIdPTR "
t
d"
+#define PRIiPTR "
t
i"
+#define PRIoPTR "
t
o"
+#define PRIuPTR "
t
u"
+#define PRIxPTR "
t
x"
+#define PRIXPTR "
t
X"
#endif /* lib/inttypes.h */
#endif /* lib/inttypes.h */