aboutsummaryrefslogtreecommitdiff
path: root/gcc/scan.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-07-06 14:35:56 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2003-07-06 14:35:56 +0200
commit46c5ad278b15d1db509093032ea1eed00459b3a0 (patch)
tree2e1f352052c069dc89b540d510fb95d6fac245ed /gcc/scan.c
parent6623b2f26dd64817454896e5b20a793e8d6ac14c (diff)
downloadgcc-46c5ad278b15d1db509093032ea1eed00459b3a0.zip
gcc-46c5ad278b15d1db509093032ea1eed00459b3a0.tar.gz
gcc-46c5ad278b15d1db509093032ea1eed00459b3a0.tar.bz2
sbitmap.c: Convert prototypes to ISO C90.
* sbitmap.c: Convert prototypes to ISO C90. * sbitmap.h: Likewise. * scan-decls.c: Likewise. * scan.c: Likewise. * sched-deps.c: Likewise. * sched-ebb.c: Likewise. * sched-int.h: Likewise. * sched-rgn.c: Likewise. * sched-vis.c: Likewise. * sibcall.c: Likewise. * simplify-rtx.c: Likewise. * sreal.c: Likewise. * sreal.h: Likewise. * ssa-ccp.c: Likewise. * ssa-dce.c: Likewise. * ssa.c: Likewise. * ssa.h: Likewise. * stack.h: Likewise. * stmt.c: Likewise. * stor-layout.c: Likewise. * stringpool.c: Likewise. * target.h: Likewise. * timevar.c: Likewise. * timevar.h: Likewise. * tlink.c: Likewise. * tracer.c: Likewise. * tree-inline.c: Likewise. * tree-inline.h: Likewise. * tree.c: Likewise. * tree.h: Likewise. From-SVN: r69002
Diffstat (limited to 'gcc/scan.c')
-rw-r--r--gcc/scan.c37
1 files changed, 9 insertions, 28 deletions
diff --git a/gcc/scan.c b/gcc/scan.c
index 9e2476f..f326061 100644
--- a/gcc/scan.c
+++ b/gcc/scan.c
@@ -1,5 +1,5 @@
/* Utility functions for scan-decls and fix-header programs.
- Copyright (C) 1993, 1994, 1998, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 1998, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -26,9 +26,7 @@ int source_lineno = 1;
sstring source_filename;
void
-make_sstring_space (str, count)
- sstring *str;
- int count;
+make_sstring_space (sstring *str, int count)
{
int cur_pos = str->ptr - str->base;
int cur_size = str->limit - str->base;
@@ -43,9 +41,7 @@ make_sstring_space (str, count)
}
void
-sstring_append (dst, src)
- sstring *dst;
- sstring *src;
+sstring_append (sstring *dst, sstring *src)
{
char *d, *s;
int count = SSTRING_LENGTH (src);
@@ -59,10 +55,7 @@ sstring_append (dst, src)
}
int
-scan_ident (fp, s, c)
- FILE *fp;
- sstring *s;
- int c;
+scan_ident (FILE *fp, sstring *s, int c)
{
s->ptr = s->base;
if (ISIDST (c))
@@ -81,10 +74,7 @@ scan_ident (fp, s, c)
}
int
-scan_string (fp, s, init)
- FILE *fp;
- sstring *s;
- int init;
+scan_string (FILE *fp, sstring *s, int init)
{
int c;
@@ -116,9 +106,7 @@ scan_string (fp, s, init)
/* Skip horizontal white spaces (spaces, tabs, and C-style comments). */
int
-skip_spaces (fp, c)
- FILE *fp;
- int c;
+skip_spaces (FILE *fp, int c)
{
for (;;)
{
@@ -154,10 +142,7 @@ skip_spaces (fp, c)
}
int
-read_upto (fp, str, delim)
- FILE *fp;
- sstring *str;
- int delim;
+read_upto (FILE *fp, sstring *str, int delim)
{
int ch;
@@ -174,9 +159,7 @@ read_upto (fp, str, delim)
}
int
-get_token (fp, s)
- FILE *fp;
- sstring *s;
+get_token (FILE *fp, sstring *s)
{
int c;
@@ -244,9 +227,7 @@ get_token (fp, s)
}
unsigned int
-hashstr (str, len)
- const char *str;
- unsigned int len;
+hashstr (const char *str, unsigned int len)
{
unsigned int n = len;
unsigned int r = 0;