shithub: scc

Download patch

ref: a28ccde717c0ae7543a5f358fa10790d7177b6a7
parent: da8e1d6c8cd2711d7a8566bf658399fbe3531b39
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Jul 21 05:34:14 EDT 2015

Discard input in pragma()

At this point scc does not accept any pragma, so it must ignore
everything in pragma() and do not cause an error due to trailing
characters.

--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -436,7 +436,8 @@
 {
 	if (cppoff)
 		return;
-	/* TODO: discard input */
+	*input->p = '\0';
+	next();
 }
 
 static void