aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2003-11-21 01:52:16 +0000
committerKazu Hirata <kazu@codesourcery.com>2003-11-21 01:52:16 +0000
commit73ee5e4c0ff04c02e128f721fa63468cc687c14e (patch)
treee2be67b8b7f5934926556028c88ac1f89cd3a32e /gas/app.c
parent2d2255b58e98053e88fd7d4e9be0c98567d8c739 (diff)
downloadgdb-73ee5e4c0ff04c02e128f721fa63468cc687c14e.zip
gdb-73ee5e4c0ff04c02e128f721fa63468cc687c14e.tar.gz
gdb-73ee5e4c0ff04c02e128f721fa63468cc687c14e.tar.bz2
* app.c: Convert to ISO-C.
* as.h: Likewise. * atof-generic.c: Likewise. * bignum-copy.c: Likewise. * bignum.h: Likewise. * cgen.c: Likewise. * cgen.h: Likewise. * cond.c: Likewise.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/gas/app.c b/gas/app.c
index 074729f..d947664 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -87,15 +87,14 @@ static const char symbol_chars[] =
#define IS_LINE_COMMENT(c) (lex[c] == LEX_IS_LINE_COMMENT_START)
#define IS_NEWLINE(c) (lex[c] == LEX_IS_NEWLINE)
-static int process_escape PARAMS ((int));
+static int process_escape (int);
/* FIXME-soon: The entire lexer/parser thingy should be
built statically at compile time rather than dynamically
each and every time the assembler is run. xoxorich. */
void
-do_scrub_begin (m68k_mri)
- int m68k_mri ATTRIBUTE_UNUSED;
+do_scrub_begin (int m68k_mri ATTRIBUTE_UNUSED)
{
const char *p;
int c;
@@ -231,7 +230,7 @@ struct app_save
};
char *
-app_push ()
+app_push (void)
{
register struct app_save *saved;
@@ -267,8 +266,7 @@ app_push ()
}
void
-app_pop (arg)
- char *arg;
+app_pop (char *arg)
{
register struct app_save *saved = (struct app_save *) arg;
@@ -304,8 +302,7 @@ app_pop (arg)
necessarily true. */
static int
-process_escape (ch)
- int ch;
+process_escape (int ch)
{
switch (ch)
{
@@ -340,10 +337,7 @@ process_escape (ch)
This is the way the old code used to work. */
int
-do_scrub_chars (get, tostart, tolen)
- int (*get) PARAMS ((char *, int));
- char *tostart;
- int tolen;
+do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen)
{
char *to = tostart;
char *toend = tostart + tolen;