diff options
Diffstat (limited to 'src/misc/st/stmm.h')
-rw-r--r-- | src/misc/st/stmm.h | 10 |
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 */ |