diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-11 08:29:34 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-11 08:29:34 +0000 |
commit | 82831e190cc383b5d4629a4a71d065afdc4d1155 (patch) | |
tree | 93c98a7c646d78b47d835793796c2fccda85d151 /gcc/scan-decls.c | |
parent | 46f134c5f83c51246f280cd696efd731be679695 (diff) | |
download | gcc-82831e190cc383b5d4629a4a71d065afdc4d1155.tar.gz |
* cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
cpp_token with cpp_ttype everywhere.
* cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
CPP_BUF_COL. Line and column numbers are unsigned int, not
long.
* cpplex.c (cpp_buf_line_and_col): Delete.
* cpplib.h (struct cpp_buffer, struct cpp_reader): Change
'long lineno' to 'unsigned int lineno'.
(CPP_BUF_LINE, CPP_BUF_COL): New macros.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33076 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/scan-decls.c')
-rw-r--r-- | gcc/scan-decls.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/scan-decls.c b/gcc/scan-decls.c index 0c10f94fb44..a0b8de0664f 100644 --- a/gcc/scan-decls.c +++ b/gcc/scan-decls.c @@ -45,7 +45,7 @@ skip_to_closing_brace (pfile) int nesting = 1; for (;;) { - enum cpp_token token = cpp_get_token (pfile); + enum cpp_ttype token = cpp_get_token (pfile); if (token == CPP_EOF) break; if (token == CPP_LBRACE) @@ -90,7 +90,7 @@ scan_decls (pfile, argc, argv) decl-specs, or prev_id_start marks the start of the declarator. */ int declarator_start; int prev_id_start, prev_id_end = 0; - enum cpp_token token; + enum cpp_ttype token; new_statement: CPP_SET_WRITTEN (pfile, 0); @@ -135,8 +135,7 @@ scan_decls (pfile, argc, argv) int nesting = 1; int have_arg_list = 0; cpp_buffer *fbuf = cpp_file_buffer (pfile); - long func_lineno; - cpp_buf_line_and_col (fbuf, &func_lineno, NULL); + unsigned int func_lineno = CPP_BUF_LINE (fbuf); for (;;) { token = cpp_get_token (pfile); |