diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2000-02-27 07:57:29 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-02-27 07:57:29 +0000 |
commit | 656ac1103948f17cf59c5ff0caef23e51ff47a38 (patch) | |
tree | ba356ab51b707985be58f6261c5d261a51ca066f /gcc/cpplib.c | |
parent | 6aede5678763545abe158ca6000921015db57013 (diff) | |
download | gcc-656ac1103948f17cf59c5ff0caef23e51ff47a38.zip gcc-656ac1103948f17cf59c5ff0caef23e51ff47a38.tar.gz gcc-656ac1103948f17cf59c5ff0caef23e51ff47a38.tar.bz2 |
cpplib.h (enum file_change_code): Added rename_file.
* cpplib.h (enum file_change_code): Added rename_file.
* cpplib.c (do_line): If a filename is given, set file_change to
rename_file.
(output_line_command): If file_change is rename_file, always
output a # directive with the file name.
From-SVN: r32215
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 8c7c2ea..9f96297 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -965,7 +965,7 @@ output_line_command (pfile, file_change) CPP_ADJUST_WRITTEN (pfile, strlen (CPP_PWRITTEN (pfile))); quote_string (pfile, ip->nominal_fname); - if (file_change != same_file) + if (file_change != same_file && file_change != rename_file) { CPP_PUTC_Q (pfile, ' '); CPP_PUTC_Q (pfile, file_change == enter_file ? '1' : '2'); @@ -1358,6 +1358,8 @@ do_line (pfile, keyword) U_CHAR *end_name = CPP_PWRITTEN (pfile) - 1; int action_number = 0; + file_change = rename_file; + if (read_line_number (pfile, &action_number)) { if (CPP_PEDANTIC (pfile)) |