Diff of /c2iec.y [f15b2a] .. [f6e191]  Maximize  Restore

Switch to side-by-side view

--- a/c2iec.y
+++ b/c2iec.y
@@ -508,19 +508,19 @@
 	| direct_declarator '[' ']'
 	| direct_declarator '(' parameter_type_list ')'
 	{
-		sprintf($<str>$, "FUNCTION %s:",$<str>1);
+		sprintf($<str>$, "FUNCTION %s:%%s;\n",$<str>1);
 		fifo_push(decl_all, $<str>$);
 		strcpy($<str>$, "");
 	}
 	| direct_declarator '(' identifier_list ')'
 	{
-		sprintf($<str>$, "FUNCTION %s:",$<str>1);
+		sprintf($<str>$, "FUNCTION %s:%%s;\n",$<str>1);
 		fifo_push(decl_all, $<str>$);
 		strcpy($<str>$, "");
 	}
 	| direct_declarator '(' ')'
 	{
-		sprintf($<str>$, "FUNCTION %s:",$<str>1);
+		sprintf($<str>$, "FUNCTION %s:%%s;\n",$<str>1);
 		fifo_push(decl_all, $<str>$);
 		strcpy($<str>$, "");
 	}
@@ -700,8 +700,7 @@
 		char *p;
 		while( (p=fifo_pop(decl_all)) != NULL)
 		{
-			printf("%s", p);
-			printf("%s;\n", $<str>1);
+		  printf(p, $<str>1);
 		}
 		printf("%s", $<str>3);
 		strcpy($<str>$, "");