Diff of /c2iec.y [8e3d7b] .. [7e489a]  Maximize  Restore

Switch to side-by-side view

--- a/c2iec.y
+++ b/c2iec.y
@@ -404,9 +404,14 @@
 	: type_specifier specifier_qualifier_list
 	{ sprintf($<str>$, "%s %s",$<str>1, $<str>2); }
 	| type_specifier
-	{ strcpy($<str>$, maptype($<str>1)); }
+	{
+		strcpy($<str>$, maptype($<str>1));
+	}
 	| type_qualifier specifier_qualifier_list
-	{ sprintf($<str>$, "%s %s",$<str>1, $<str>2); }
+	{
+		sprintf($<str>$, "%s %s",$<str>1, $<str>2);
+		sprintf($<str>$, "%s",maptype($<str>$));
+	}
 	| type_qualifier
 	;
 
@@ -768,13 +773,13 @@
 	if (!strcmp(ctype, "void"))
 		return "BOOL";
 
-	if (!strcmp(ctype, "char"))
+	if (!strcmp(ctype, "char") || !strcmp(ctype, "signed BYTE"))
 		return "BYTE";
-	if (!strcmp(ctype, "short"))
+	if (!strcmp(ctype, "short") || !strcmp(ctype, "signed INT"))
 		return "INT";
-	if (!strcmp(ctype, "int"))
+	if (!strcmp(ctype, "int") || !strcmp(ctype, "signed DINT"))
 		return "DINT";
-	if (!strcmp(ctype, "long"))
+	if (!strcmp(ctype, "long") || !strcmp(ctype, "signed DINT"))
 		return "DINT";
 	if (!strcmp(ctype, "long DINT"))
 		return "LINT";