projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214ac7c
)
Define ARRAY_LENGTH
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 4 Nov 2009 23:15:59 +0000
(18:15 -0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 4 Nov 2009 23:15:59 +0000
(18:15 -0500)
src/hb-private.h
patch
|
blob
|
history
diff --git
a/src/hb-private.h
b/src/hb-private.h
index
caa0a5c
..
f335b95
100644
(file)
--- a/
src/hb-private.h
+++ b/
src/hb-private.h
@@
-124,16
+124,17
@@
typedef int hb_mutex_t;
#endif
#ifndef NULL
-# define NULL ((void *)0)
+# define NULL ((void *)
0)
#endif
-#ifndef FALSE
-# define FALSE 0
-#endif
+#undef FALSE
+#define FALSE 0
-#ifndef TRUE
-# define TRUE 1
-#endif
+#undef TRUE
+#define TRUE 1
+
+#undef ARRAY_LENGTH
+#define ARRAY_LENGTH(__array) ((signed int) (sizeof (__array) / sizeof (__array[0])))
#define HB_STMT_START do
#define HB_STMT_END while (0)