[hackers] [scc] Discard input in pragma() || Roberto E. Vargas Caballero
commit a28ccde717c0ae7543a5f358fa10790d7177b6a7
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Jul 21 09:34:14 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Jul 21 09:34:14 2015 +0200
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.
diff --git a/cc1/cpp.c b/cc1/cpp.c
index 727b801..f3f9002 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -436,7 +436,8 @@ pragma(void)
{
if (cppoff)
return;
- /* TODO: discard input */
+ *input->p = '\0';
+ next();
}
static void
Received on Tue Jul 21 2015 - 09:45:27 CEST
This archive was generated by hypermail 2.3.0
: Tue Jul 21 2015 - 09:48:10 CEST