summaryrefslogtreecommitdiff
path: root/gcc/scan-decls.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-13 01:07:32 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-13 01:07:32 +0000
commitf5156d82107c7644953e6970e9fe7a304ca057ab (patch)
treea7922a725bb54929e724a801edbcfd3a1f73d998 /gcc/scan-decls.c
parent72b04ca42cc8cde82b0106d3c15f9024a7706923 (diff)
downloadgcc-f5156d82107c7644953e6970e9fe7a304ca057ab.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38972 138bc75d-0d04-0410-961f-82ee72b054a4
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 cd92cdd8aa5..55f10abb8d6 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;