shithub: scc

Download patch

ref: ad9537bd2daa3be47f01d68f25c034aaab83ed15
parent: 526c098338106cfe67e236c72f2b7763d98ba13c
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Aug 31 06:00:04 EDT 2018

[cc1] Accept spaces as good characters

Tabulators were generating warnings because they were not
considered valid input parameters.

--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -197,7 +197,7 @@
 		newline();
 		break;
 	default:
-		if (!isprint(c) && !ispunct(c))
+		if (!isprint(c) && !ispunct(c) && !isspace(c))
 			warn("invalid input character. The shame of UB is yours");
 		break;
 	}