r13642 dsilvers - /trunk/libcss/src/parse/properties/css_property_parser_gen.c

netsurf at semichrome.net netsurf at semichrome.net
Sat Mar 24 22:41:47 GMT 2012


Author: dsilvers
Date: Sat Mar 24 17:41:47 2012
New Revision: 13642

URL: http://source.netsurf-browser.org?rev=13642&view=rev
Log:
Dodgy bodge to shut clang up

Modified:
    trunk/libcss/src/parse/properties/css_property_parser_gen.c

Modified: trunk/libcss/src/parse/properties/css_property_parser_gen.c
URL: http://source.netsurf-browser.org/trunk/libcss/src/parse/properties/css_property_parser_gen.c?rev=13642&r1=13641&r2=13642&view=diff
==============================================================================
--- trunk/libcss/src/parse/properties/css_property_parser_gen.c (original)
+++ trunk/libcss/src/parse/properties/css_property_parser_gen.c Sat Mar 24 17:41:47 2012
@@ -126,7 +126,9 @@
 		"	const css_token *token;\n"
 		"	bool match;\n\n"
 		"	token = parserutils_vector_iterate(vector, ctx);\n"
-		"	if ((token == NULL)");
+		"	if (%stoken == NULL%s",
+		do_token_check ? "(" : "",
+		do_token_check ? ")" : "");
 
 	if (do_token_check) {
 		bool prev = false; /* there was a previous check - add && */




More information about the netsurf-commits mailing list