diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2003-06-17 06:17:44 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-06-17 06:17:44 +0000 |
commit | 6cf87ca4e574edb0bf2bcb2cf396adb6e040311d (patch) | |
tree | aba39e5edc2926935bd59dd4f66f9b3d59447d19 /gcc/cpperror.c | |
parent | 82620aaf0b59eead65b65bbaa3db5606df4027f9 (diff) | |
download | gcc-6cf87ca4e574edb0bf2bcb2cf396adb6e040311d.zip gcc-6cf87ca4e574edb0bf2bcb2cf396adb6e040311d.tar.gz gcc-6cf87ca4e574edb0bf2bcb2cf396adb6e040311d.tar.bz2 |
* cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
* cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
* cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
ISO C: new-style function declarations, no need for PARAMS,
no special punctuation on indirect function calls, use string
constant concatenation where convenient.
From-SVN: r68070
Diffstat (limited to 'gcc/cpperror.c')
-rw-r--r-- | gcc/cpperror.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/gcc/cpperror.c b/gcc/cpperror.c index 9f5a539..cb681f0 100644 --- a/gcc/cpperror.c +++ b/gcc/cpperror.c @@ -31,16 +31,14 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "cpphash.h" #include "intl.h" -static void print_location PARAMS ((cpp_reader *, unsigned int, unsigned int)); +static void print_location (cpp_reader *, unsigned int, unsigned int); /* Print the logical file location (LINE, COL) in preparation for a diagnostic. Outputs the #include chain if it has changed. A line of zero suppresses the include stack, and outputs the program name instead. */ static void -print_location (pfile, line, col) - cpp_reader *pfile; - unsigned int line, col; +print_location (cpp_reader *pfile, unsigned int line, unsigned int col) { if (!pfile->buffer || line == 0) fprintf (stderr, "%s: ", progname); @@ -72,10 +70,8 @@ print_location (pfile, line, col) the correct place by default. Returns 0 if the error has been suppressed. */ int -_cpp_begin_message (pfile, code, line, column) - cpp_reader *pfile; - int code; - unsigned int line, column; +_cpp_begin_message (cpp_reader *pfile, int code, unsigned int line, + unsigned int column) { int level = DL_EXTRACT (code); @@ -177,10 +173,7 @@ cpp_error_with_line (cpp_reader *pfile, int level, } void -cpp_errno (pfile, level, msgid) - cpp_reader *pfile; - int level; - const char *msgid; +cpp_errno (cpp_reader *pfile, int level, const char *msgid) { if (msgid[0] == '\0') msgid = _("stdout"); |