From 4d7d583e47215304d7be5487a42578081bbc8497 Mon Sep 17 00:00:00 2001 From: jaortega Date: Fri, 8 Dec 2000 21:30:01 +0000 Subject: (mix_eval_{set,remove}symbols_from_table, mix_eval_substract_table) new functions (mix_symbol_table_{merge,substract}_table) const-correct --- mixlib/mix_symbol_table.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'mixlib/mix_symbol_table.h') diff --git a/mixlib/mix_symbol_table.h b/mixlib/mix_symbol_table.h index db48ffd..9837ee0 100644 --- a/mixlib/mix_symbol_table.h +++ b/mixlib/mix_symbol_table.h @@ -34,27 +34,27 @@ typedef GHashTable mix_symbol_table_t ; /* Create an empty table */ extern mix_symbol_table_t * -mix_symbol_table_new(void); +mix_symbol_table_new (void); /* Create a table and populate it with the contents of a table stored - in -file- using mix_symbol_table_print(table, MIX_SYM_LINE, file) + in -file- using mix_symbol_table_print (table, MIX_SYM_LINE, file) */ extern mix_symbol_table_t * -mix_symbol_table_new_from_file(FILE *file); +mix_symbol_table_new_from_file (FILE *file); /* Delete a table */ extern void -mix_symbol_table_delete(mix_symbol_table_t *table); +mix_symbol_table_delete (mix_symbol_table_t *table); /* add/remove symbols from other table */ extern gboolean mix_symbol_table_merge_table (mix_symbol_table_t *table, - mix_symbol_table_t *from); + const mix_symbol_table_t *from); extern gboolean mix_symbol_table_substract_table (mix_symbol_table_t *table, - mix_symbol_table_t *other); + const mix_symbol_table_t *other); /* Add/remove symbols one by one */ /* possible outcomes: */ @@ -66,33 +66,33 @@ enum { }; extern gint -mix_symbol_table_add(mix_symbol_table_t *table, - const gchar *sym, mix_word_t value); +mix_symbol_table_add (mix_symbol_table_t *table, + const gchar *sym, mix_word_t value); #define mix_symbol_table_remove(table, sym) \ - g_hash_table_remove(table, sym) + g_hash_table_remove (table, sym) /* Add or modify symbol if it exists */ extern gint -mix_symbol_table_insert(mix_symbol_table_t *table, - const gchar *sym, mix_word_t new_value); +mix_symbol_table_insert (mix_symbol_table_t *table, + const gchar *sym, mix_word_t new_value); /* Add or modify symbol if it exists, without copiying sym */ #define mix_symbol_table_insert_static(table,sym,value)\ - g_hash_table_insert(table,(gpointer)sym,GUINT_TO_POINTER(value)) + g_hash_table_insert (table,(gpointer)sym,GUINT_TO_POINTER (value)) /* Symbols lookup */ extern gboolean -mix_symbol_table_is_defined(const mix_symbol_table_t *table, const gchar *sym); +mix_symbol_table_is_defined (const mix_symbol_table_t *table, const gchar *sym); #define mix_symbol_table_value(table,sym) \ - (mix_word_t)GPOINTER_TO_UINT (g_hash_table_lookup ((GHashTable *)table, \ + (mix_word_t)GPOINTER_TO_UINT (g_hash_table_lookup ((GHashTable *)table, \ (gpointer)sym)) /* Traverse the table */ #define mix_symbol_table_foreach(table,func,data) \ - g_hash_table_foreach(table,func,data) + g_hash_table_foreach (table,func,data) /* Print the table */ enum { @@ -101,8 +101,8 @@ enum { }; extern void -mix_symbol_table_print(const mix_symbol_table_t *table, gint mode, - FILE *file, gboolean skiplocal); +mix_symbol_table_print (const mix_symbol_table_t *table, gint mode, + FILE *file, gboolean skiplocal); #endif /* MIX_SYMBOL_TABLE_H */ -- cgit v1.2.3