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