aboutsummaryrefslogtreecommitdiff
path: root/gcc/scan-decls.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-13 01:07:32 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-13 01:07:32 +0000
commitf85c14eed13fe0985ac491e89ccd0ff8bd4b8a1e (patch)
treea7922a725bb54929e724a801edbcfd3a1f73d998 /gcc/scan-decls.c
parent7e96d768fe4e8fa821372cc7c7cd707efb917a3b (diff)
downloadgcc-f85c14eed13fe0985ac491e89ccd0ff8bd4b8a1e.zip
gcc-f85c14eed13fe0985ac491e89ccd0ff8bd4b8a1e.tar.gz
gcc-f85c14eed13fe0985ac491e89ccd0ff8bd4b8a1e.tar.bz2
fix-header.c (read_scan_file): Use cpp_get_callbacks and cpp_get_options rather than dereferencing pfile and...
* fix-header.c (read_scan_file): Use cpp_get_callbacks and cpp_get_options rather than dereferencing pfile and using CPP_OPTION. * scan-decls.c (scan_decls): Use return value of cpp_pop_buffer rather than CPP_BUFFER. From-SVN: r38972
Diffstat (limited to 'gcc/scan-decls.c')
-rw-r--r--gcc/scan-decls.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/scan-decls.c b/gcc/scan-decls.c
index cd92cdd..55f10ab 100644
--- a/gcc/scan-decls.c
+++ b/gcc/scan-decls.c
@@ -113,8 +113,7 @@ scan_decls (pfile, argc, argv)
}
if (token.type == CPP_EOF)
{
- cpp_pop_buffer (pfile);
- if (CPP_BUFFER (pfile) == NULL)
+ if (cpp_pop_buffer (pfile) == 0)
return 0;
goto new_statement;
@@ -149,8 +148,7 @@ scan_decls (pfile, argc, argv)
goto new_statement;
case CPP_EOF:
- cpp_pop_buffer (pfile);
- if (CPP_BUFFER (pfile) == NULL)
+ if (cpp_pop_buffer (pfile) == 0)
return 0;
break;