[hackers] [scc] [cc1] Add more comments about macro expansion and EOF || Roberto E. Vargas Caballero
commit a0d198a1bfef04690021893794afc3e22de38946
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Jan 16 16:34:18 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Jan 16 16:34:18 2017 +0100
[cc1] Add more comments about macro expansion and EOF
diff --git a/cc1/lex.c b/cc1/lex.c
index 7714583..9b8e7ea 100644
--- a/cc1/lex.c
+++ b/cc1/lex.c
_AT_@ -128,7 +128,7 @@ delinput(void)
--hide->hide;
/*
* If the symbol is not declared then it was
- * an extension due to a #if directive with
+ * an expansion due to a #if directive with
* a non declared symbol (expanded to 0),
* thus we have to kill the symbol
*/
_AT_@ -648,6 +648,11 @@ repeat:
return;
if (lexmode == CPPMODE) {
+ /*
+ * If we are in cpp mode, we only return eof when
+ * we don't have more inputs, or when the next
+ * next input is from a file
+ */
if (!input || !input->next || !input->next->fp)
return;
}
Received on Mon Jan 16 2017 - 16:34:34 CET
This archive was generated by hypermail 2.3.0
: Mon Jan 16 2017 - 16:36:22 CET