From 0c6505a26a537dc911b6566f82d759521e527c08 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 30 Jan 2008 20:01:00 -0800 Subject: Version abc80130_2 --- src/misc/st/stmm.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/misc/st/stmm.h') 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 */ -- cgit v1.2.3