X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fldlex.h;h=53444cacad7803edd74b4461b4d6e4b419d17895;hb=197d87f8ece97740f74bc58042bd1d5ff1dd6860;hp=fe4e017f759efca520dc7523682a2841355190de;hpb=2fa0b342a5cd580781d2b9348a87f33a92d363fa;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ldlex.h b/ld/ldlex.h index fe4e017f75..53444cacad 100644 --- a/ld/ldlex.h +++ b/ld/ldlex.h @@ -1,6 +1,5 @@ /* ldlex.h - - - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright 1991, 92, 93, 94, 95, 1997 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. @@ -15,12 +14,49 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with GLD; see the file COPYING. If not, write to - the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with GLD; see the file COPYING. If not, write to the Free + Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. */ + +#ifndef LDLEX_H +#define LDLEX_H + +#include + +/* The initial parser states. */ +typedef enum input_enum { + input_selected, /* We've set the initial state. */ + input_script, + input_mri_script, + input_version_script, + input_defsym +} input_type; + +extern input_type parser_input; + +extern unsigned int lineno; +extern const char *lex_string; + +/* In ldlex.l. */ +extern int yylex PARAMS ((void)); +extern void lex_push_file PARAMS ((FILE *, const char *)); +extern void lex_redirect PARAMS ((const char *)); +extern void ldlex_script PARAMS ((void)); +extern void ldlex_mri_script PARAMS ((void)); +extern void ldlex_version_script PARAMS ((void)); +extern void ldlex_version_file PARAMS ((void)); +extern void ldlex_defsym PARAMS ((void)); +extern void ldlex_expression PARAMS ((void)); +extern void ldlex_both PARAMS ((void)); +extern void ldlex_command PARAMS ((void)); +extern void ldlex_popstate PARAMS ((void)); -PROTO(int, lex_input, (void)); -PROTO(void, lex_unput, (int)); -PROTO(int ,yywrap,(void)); -PROTO(void, parse_args,(int, char **)); -PROTO(void, parse_line,(char*)); +/* In lexsup.c. */ +extern int lex_input PARAMS ((void)); +extern void lex_unput PARAMS ((int)); +#ifndef yywrap +extern int yywrap PARAMS ((void)); +#endif +extern void parse_args PARAMS ((int, char **)); +#endif