diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-17 06:17:44 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-17 06:17:44 +0000 |
commit | f7fdd7a16eaaf894ba417c0a9279843c14643fee (patch) | |
tree | aba39e5edc2926935bd59dd4f66f9b3d59447d19 /gcc/cpperror.c | |
parent | 1443120075ac9113770189749d39ca2e28fd2b82 (diff) | |
download | ppe42-gcc-f7fdd7a16eaaf894ba417c0a9279843c14643fee.tar.gz ppe42-gcc-f7fdd7a16eaaf894ba417c0a9279843c14643fee.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68070 138bc75d-0d04-0410-961f-82ee72b054a4
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 9f5a5397f44..cb681f00f24 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"); |