binutils-gdb/ld/ldlex.h

64 lines
1.8 KiB
C
Raw Normal View History

1999-05-03 09:29:11 +02:00
/* ldlex.h -
2003-06-28 07:28:54 +02:00
Copyright 1991, 1992, 1993, 1994, 1995, 1997, 2000, 2003
Free Software Foundation, Inc.
1999-05-03 09:29:11 +02:00
This file is part of GLD, the Gnu Linker.
GLD is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
GLD is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
#ifndef LDLEX_H
#define LDLEX_H
#include <stdio.h>
/* 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. */
2003-06-28 07:28:54 +02:00
extern int yylex (void);
extern void lex_push_file (FILE *, const char *);
extern void lex_redirect (const char *);
extern void ldlex_script (void);
extern void ldlex_mri_script (void);
extern void ldlex_version_script (void);
extern void ldlex_version_file (void);
extern void ldlex_defsym (void);
extern void ldlex_expression (void);
extern void ldlex_both (void);
extern void ldlex_command (void);
extern void ldlex_popstate (void);
1999-05-03 09:29:11 +02:00
/* In lexsup.c. */
2003-06-28 07:28:54 +02:00
extern int lex_input (void);
extern void lex_unput (int);
1999-05-03 09:29:11 +02:00
#ifndef yywrap
2003-06-28 07:28:54 +02:00
extern int yywrap (void);
1999-05-03 09:29:11 +02:00
#endif
2003-06-28 07:28:54 +02:00
extern void parse_args (unsigned, char **);
1999-05-03 09:29:11 +02:00
#endif