git://git.jankratochvil.net
/
gdbmicli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implemented pagination.
[gdbmicli.git]
/
ansidecl.h
diff --git
a/ansidecl.h
b/ansidecl.h
index
b16f2b2
..
984e95d
100644
(file)
--- a/
ansidecl.h
+++ b/
ansidecl.h
@@
-6,6
+6,9
@@
#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
#define LENGTH(x) (sizeof (x) / sizeof (*(x)))
+#define max(a, b) ((a) > (b) ? (a) : (b))
+#define min(a, b) ((a) < (b) ? (a) : (b))
+
#define bool int
#define true 1
#define false 0