diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-06-13 06:25:28 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-06-13 06:25:28 +0000 |
commit | 974c43f1e345d10b7dc1c202dbe62caf88b25255 (patch) | |
tree | 3e71956fa3f7d26102a5ef76e903e7afc02c749c /gcc/cppmacro.c | |
parent | e4dadd2ad0d2008b1838083846157ca527ec8170 (diff) | |
download | gcc-974c43f1e345d10b7dc1c202dbe62caf88b25255.zip gcc-974c43f1e345d10b7dc1c202dbe62caf88b25255.tar.gz gcc-974c43f1e345d10b7dc1c202dbe62caf88b25255.tar.bz2 |
cpplib.c (end_directive): Handle line skipping.
* cpplib.c (end_directive): Handle line skipping. Only remove
the rest of the line if the directive was valid.
* cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
expanding a traditional macro.
* cpptrad.c (recursive_macro): New.
(read_logical_line_trad): Handle skipping.
(scan_out_logical_line): Continue after a successful directive.
Don't expand macros whilst skipping, or if recursing.
(_cpp_create_trad_definition): scan_out_logical_line now sets
the output current position.
From-SVN: r54573
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r-- | gcc/cppmacro.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index a9ca6cf..20149ec 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -947,6 +947,7 @@ _cpp_push_text_context (pfile, macro, start, len) context->buff = NULL; CUR (context) = start; RLIMIT (context) = start + len; + macro->flags |= NODE_DISABLED; } /* Expand an argument ARG before replacing parameters in a |