/* messages.c - error reporter -
- Copyright (C) 1987, 91, 92, 93, 94, 95, 96, 97, 98, 2000
+ Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
#define va_end(ARGS)
#endif
-static void identify PARAMS ((char *));
-static void as_show_where PARAMS ((void));
-static void as_warn_internal PARAMS ((char *, unsigned int, char *));
-static void as_bad_internal PARAMS ((char *, unsigned int, char *));
+static void identify (char *);
+static void as_show_where (void);
+static void as_warn_internal (char *, unsigned int, char *);
+static void as_bad_internal (char *, unsigned int, char *);
/* Despite the rest of the comments in this file, (FIXME-SOON),
* here is the current scheme for error messages etc:
*/
static void
-identify (file)
- char *file;
+identify (char *file)
{
static int identified;
if (identified)
static int warning_count;
int
-had_warnings ()
+had_warnings (void)
{
return (warning_count);
}
static int error_count;
int
-had_errors ()
+had_errors (void)
{
return (error_count);
}
/* Print the current location to stderr. */
static void
-as_show_where ()
+as_show_where (void)
{
char *file;
unsigned int line;
/* Like perror(3), but with more info. */
void
-as_perror (gripe, filename)
- const char *gripe; /* Unpunctuated error theme. */
- const char *filename;
+as_perror (const char *gripe, /* Unpunctuated error theme. */
+ const char *filename)
{
const char *errtxt;
/* The common portion of as_warn and as_warn_where. */
static void
-as_warn_internal (file, line, buffer)
- char *file;
- unsigned int line;
- char *buffer;
+as_warn_internal (char *file, unsigned int line, char *buffer)
{
++warning_count;
/* The common portion of as_bad and as_bad_where. */
static void
-as_bad_internal (file, line, buffer)
- char *file;
- unsigned int line;
- char *buffer;
+as_bad_internal (char *file, unsigned int line, char *buffer)
{
++error_count;
file(s). Please us when there is no recovery, but we want to
continue processing but not produce an object file.
Please explain in string (which may have '\n's) what recovery was
- done. */
+ done. */
#ifdef USE_STDARG
void
Arguments: Filename, line number, optional function name. */
void
-as_assert (file, line, fn)
- const char *file, *fn;
- int line;
+as_assert (const char *file, int line, const char *fn)
{
as_show_where ();
fprintf (stderr, _("Internal error!\n"));
and exit without producing a core file. */
void
-as_abort (file, line, fn)
- const char *file, *fn;
- int line;
+as_abort (const char *file, int line, const char *fn)
{
as_show_where ();
if (fn)
/* Support routines. */
void
-fprint_value (file, val)
- FILE *file;
- valueT val;
+fprint_value (FILE *file, valueT val)
{
if (sizeof (val) <= sizeof (long))
{
}
void
-sprint_value (buf, val)
- char *buf;
- valueT val;
+sprint_value (char *buf, valueT val)
{
if (sizeof (val) <= sizeof (long))
{