This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
A prototype patch for c-lex.c
- To: egcs-patches at cygnus dot com
- Subject: A prototype patch for c-lex.c
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 19 Jun 1998 18:58:51 -0700 (PDT)
check_newline is already declared in c-lex.h and build_objc_string is
in c-tree.h.
--
H.J. Lu (hjl@gnu.org)
----
Fri Jun 19 18:42:05 1998 H.J. Lu (hjl@gnu.org)
* c-lex.c (yyprint): Add prototype.
(check_newline, build_objc_string): Remove declaration.
Index: c-lex.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/c-lex.c,v
retrieving revision 1.1.1.14
diff -u -p -r1.1.1.14 c-lex.c
--- c-lex.c 1998/06/10 18:23:18 1.1.1.14
+++ c-lex.c 1998/06/18 14:52:11
@@ -53,6 +53,8 @@ extern cpp_options parse_options;
FILE *finput;
#endif
+extern void yyprint PROTO((FILE *, int, YYSTYPE));
+
/* The elements of `ridpointers' are identifier nodes
for the reserved type names and storage classes.
It is indexed by a RID_... value. */
@@ -122,7 +124,6 @@ static int skip_white_space PROTO((int)
static int skip_white_space_on_line PROTO((void));
static char *extend_token_buffer PROTO((char *));
static int readescape PROTO((int *));
-int check_newline ();
/* Do not insert generated code into the source, instead, include it.
This allows us to build gcc automatically even for targets that
@@ -1988,7 +1989,6 @@ yylex ()
}
else if (objc_flag)
{
- extern tree build_objc_string();
/* Return an Objective-C @"..." constant string object. */
yylval.ttype = build_objc_string (p - token_buffer,
token_buffer + 1);