summaryrefslogtreecommitdiff
path: root/gcc/scan.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-16 18:24:08 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-16 18:24:08 +0000
commit909ea6886c0e5489da98ce1adda6a87d37dae079 (patch)
treecaea83bfff1499eade153bc41526765715e0958f /gcc/scan.h
parent5400906f2f159abefc0c51403024403a446018dd (diff)
downloadgcc-909ea6886c0e5489da98ce1adda6a87d37dae079.tar.gz
* scan.h: Convert to ISO C.
* system.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68027 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/scan.h')
-rw-r--r--gcc/scan.h34
1 files changed, 13 insertions, 21 deletions
diff --git a/gcc/scan.h b/gcc/scan.h
index 49ca823af3b..7062cdaf90e 100644
--- a/gcc/scan.h
+++ b/gcc/scan.h
@@ -33,14 +33,6 @@ typedef struct sstring
#define MAKE_SSTRING_SPACE(STR, COUNT) \
if ((STR)->limit - (STR)->ptr < (COUNT)) make_sstring_space (STR, COUNT);
-#ifndef _PARAMS
-#if defined(ANSI_PROTOTYPES) || defined(__cplusplus)
-#define _PARAMS(args) args
-#else
-#define _PARAMS(args) ()
-#endif
-#endif
-
struct partial_proto;
struct fn_decl
{
@@ -52,26 +44,26 @@ struct fn_decl
struct cpp_token;
-extern void sstring_append _PARAMS((sstring *, sstring *));
-extern void make_sstring_space _PARAMS((sstring *, int));
-extern int skip_spaces _PARAMS((FILE *, int));
-extern int scan_ident _PARAMS((FILE *, sstring *, int));
-extern int scan_string _PARAMS((FILE *, sstring *, int));
-extern int read_upto _PARAMS((FILE *, sstring *, int));
-extern unsigned long hash _PARAMS((const char *));
-extern void recognized_function _PARAMS((const struct cpp_token *,
- unsigned int, int, int));
-extern void recognized_extern _PARAMS((const struct cpp_token *));
-extern unsigned int hashstr _PARAMS((const char *, unsigned int));
+extern void sstring_append (sstring *, sstring *);
+extern void make_sstring_space (sstring *, int);
+extern int skip_spaces (FILE *, int);
+extern int scan_ident (FILE *, sstring *, int);
+extern int scan_string (FILE *, sstring *, int);
+extern int read_upto (FILE *, sstring *, int);
+extern unsigned long hash (const char *);
+extern void recognized_function (const struct cpp_token *,
+ unsigned int, int, int);
+extern void recognized_extern (const struct cpp_token *);
+extern unsigned int hashstr (const char *, unsigned int);
-extern int scan_decls _PARAMS((struct cpp_reader *, int, char **));
+extern int scan_decls (struct cpp_reader *, int, char **);
/* get_token is a simple C lexer. */
#define IDENTIFIER_TOKEN 300
#define CHAR_TOKEN 301
#define STRING_TOKEN 302
#define INT_TOKEN 303
-extern int get_token _PARAMS ((FILE *, sstring *));
+extern int get_token (FILE *, sstring *);
/* Current file and line numer, taking #-directives into account */
extern int source_lineno;