* gdb.java/jv-print.exp: Fix p '' and p ''' tests to deal with
[deliverable/binutils-gdb.git] / ld / ldlex.h
index ed79934f8e598cdac2d1ccc4181fa914d2b27a84..36f2ad309b9088abe88db537cfd72bf75e3eb2ab 100644 (file)
@@ -1,5 +1,6 @@
 /* ldlex.h -
-   Copyright 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1991, 1992, 1993, 1994, 1995, 1997, 2000
+   Free Software Foundation, Inc.
 
    This file is part of GLD, the Gnu Linker.
 
    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 <stdio.h>
 
-extern int hex_mode;
+/* 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 *, char *));
+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));
@@ -40,8 +55,9 @@ extern void ldlex_popstate PARAMS ((void));
 /* In lexsup.c.  */
 extern int lex_input PARAMS ((void));
 extern void lex_unput PARAMS ((int));
+#ifndef yywrap
 extern int yywrap PARAMS ((void));
-extern void parse_args PARAMS ((int, char **));
-extern void parse_line PARAMS ((char*, int));
+#endif
+extern void parse_args PARAMS ((unsigned, char **));
 
 #endif
This page took 0.02333 seconds and 4 git commands to generate.