summaryrefslogtreecommitdiffstats
path: root/src/misc/st/stmm.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2008-01-30 20:01:00 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2008-01-30 20:01:00 -0800
commit0c6505a26a537dc911b6566f82d759521e527c08 (patch)
treef2687995efd4943fe3b1307fce7ef5942d0a57b3 /src/misc/st/stmm.h
parent4d30a1e4f1edecff86d5066ce4653a370e59e5e1 (diff)
downloadabc-0c6505a26a537dc911b6566f82d759521e527c08.tar.gz
abc-0c6505a26a537dc911b6566f82d759521e527c08.tar.bz2
abc-0c6505a26a537dc911b6566f82d759521e527c08.zip
Version abc80130_2
Diffstat (limited to 'src/misc/st/stmm.h')
-rw-r--r--src/misc/st/stmm.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/misc/st/stmm.h b/src/misc/st/stmm.h
index 1fe3dfd2..4330416e 100644
--- a/src/misc/st/stmm.h
+++ b/src/misc/st/stmm.h
@@ -14,6 +14,10 @@
#ifndef STMM_INCLUDED
#define STMM_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "extra.h"
typedef struct stmm_table_entry stmm_table_entry;
@@ -93,7 +97,7 @@ EXTERN void stmm_clean ARGS ((stmm_table *));
// added by Zhihong: no need for memory allocation
#define stmm_foreach_item2(tb, /* stmm_generator */gen, key, value) \
- for(gen.table=(tb), gen.entry=NIL(stmm_table_entry), gen.index=0; \
+ for(gen.table=(tb), gen.entry=NULL, gen.index=0; \
stmm_gen(&(gen),key,value);)
#define stmm_foreach_item(table, gen, key, value) \
@@ -116,4 +120,8 @@ EXTERN void stmm_clean ARGS ((stmm_table *));
*/
+#ifdef __cplusplus
+}
+#endif
+
#endif /* STMM_INCLUDED */