[Commits] [SCM] claws branch, master, updated. 3.15.0-50-g6dfe487

mones at claws-mail.org mones at claws-mail.org
Sun May 14 11:48:41 CEST 2017


The branch, master has been updated
       via  6dfe487100b64f7e5ece4c874d7e8c2b72369e4a (commit)
      from  0099b71dfcf0286082ab6f188da1dc201e14e4fa (commit)

Summary of changes:
 src/html.c |   25 ++++---------------------
 1 file changed, 4 insertions(+), 21 deletions(-)


- Log -----------------------------------------------------------------
commit 6dfe487100b64f7e5ece4c874d7e8c2b72369e4a
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sun May 14 11:45:19 2017 +0200

    Remove one unused and one unnecessary macros

diff --git a/src/html.c b/src/html.c
index fd623b1..02717e4 100644
--- a/src/html.c
+++ b/src/html.c
@@ -348,30 +348,13 @@ SC_HTMLParser *sc_html_parser_new(FILE *fp, CodeConverter *conv)
 	parser->pre = FALSE;
 	parser->indent = 0;
 
-#define SYMBOL_TABLE_ADD(table, list) \
-{ \
-	gint i; \
- \
-	for (i = 0; i < sizeof(list) / sizeof(list[0]); i++) \
-		g_hash_table_insert(table, list[i].key, list[i].val); \
-}
-#define SYMBOL_TABLE_REF_ADD(table, list) \
-{ \
-	gint i; \
- \
-	for (i = 0; i < sizeof(list) / sizeof(list[0]); i++) \
-		g_hash_table_insert(table, &list[i].key, list[i].val); \
-}
-
 	if (!default_symbol_table) {
-		default_symbol_table =
-			g_hash_table_new(g_str_hash, g_str_equal);
-		SYMBOL_TABLE_ADD(default_symbol_table, symbol_list);
+		gint i;
+		default_symbol_table = g_hash_table_new(g_str_hash, g_str_equal);
+		for (i = 0; i < sizeof(list) / sizeof(list[0]); i++)
+			g_hash_table_insert(table, list[i].key, list[i].val);
 	}
 
-#undef SYMBOL_TABLE_ADD
-#undef SYMBOL_TABLE_REF_ADD
-
 	parser->symbol_table = default_symbol_table;
 
 	return parser;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list