Back to index

cell-binutils  2.17cvs20070401
ldlex.h
Go to the documentation of this file.
00001 /* ldlex.h -
00002    Copyright 1991, 1992, 1993, 1994, 1995, 1997, 2000, 2003
00003    Free Software Foundation, Inc.
00004 
00005    This file is part of GLD, the Gnu Linker.
00006 
00007    GLD is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 1, or (at your option)
00010    any later version.
00011 
00012    GLD is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with GLD; see the file COPYING.  If not, write to the Free
00019    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00020    02110-1301, USA.  */
00021 
00022 #ifndef LDLEX_H
00023 #define LDLEX_H
00024 
00025 #include <stdio.h>
00026 
00027 /* The initial parser states.  */
00028 typedef enum input_enum {
00029   input_selected,           /* We've set the initial state.  */
00030   input_script,
00031   input_mri_script,
00032   input_version_script,
00033   input_dynamic_list,
00034   input_defsym
00035 } input_type;
00036 
00037 extern input_type parser_input;
00038 
00039 extern unsigned int lineno;
00040 extern const char *lex_string;
00041 
00042 /* In ldlex.l.  */
00043 extern int yylex (void);
00044 extern void lex_push_file (FILE *, const char *);
00045 extern void lex_redirect (const char *);
00046 extern void ldlex_script (void);
00047 extern void ldlex_mri_script (void);
00048 extern void ldlex_version_script (void);
00049 extern void ldlex_version_file (void);
00050 extern void ldlex_defsym (void);
00051 extern void ldlex_expression (void);
00052 extern void ldlex_both (void);
00053 extern void ldlex_command (void);
00054 extern void ldlex_popstate (void);
00055 
00056 /* In lexsup.c.  */
00057 extern int lex_input (void);
00058 extern void lex_unput (int);
00059 #ifndef yywrap
00060 extern int yywrap (void);
00061 #endif
00062 extern void parse_args (unsigned, char **);
00063 
00064 #endif