aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.h
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldlex.h')
-rw-r--r--ld/ldlex.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ld/ldlex.h b/ld/ldlex.h
index ed79934..34ab4a1 100644
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
@@ -22,6 +22,16 @@
#include <stdio.h>
+/* The initial parser states. */
+typedef enum input_enum {
+ input_selected, /* We've set the initial state. */
+ input_script = INPUT_SCRIPT,
+ input_mri_script = INPUT_MRI_SCRIPT,
+ input_defsym = INPUT_DEFSYM
+} input_type;
+
+extern input_type parser_input;
+
extern int hex_mode;
extern unsigned int lineno;
@@ -40,8 +50,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));
+#endif
extern void parse_args PARAMS ((int, char **));
-extern void parse_line PARAMS ((char*, int));
#endif