mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
* ldgram.y: Move include of ldlex.h back with other includes.
* ldlex.h (input_type): Don't initialize enum constants to particular values. * ldlex.l: Use a switch to return the right token based on input_type, rather than knowing that input_type has a value based on a token type.
This commit is contained in:
@ -1,5 +1,12 @@
|
|||||||
Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
|
Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
|
||||||
|
|
||||||
|
* ldgram.y: Move include of ldlex.h back with other includes.
|
||||||
|
* ldlex.h (input_type): Don't initialize enum constants to
|
||||||
|
particular values.
|
||||||
|
* ldlex.l: Use a switch to return the right token based on
|
||||||
|
input_type, rather than knowing that input_type has a value based
|
||||||
|
on a token type.
|
||||||
|
|
||||||
* ldgram.y (dirlist_ptr): Removed; not used.
|
* ldgram.y (dirlist_ptr): Removed; not used.
|
||||||
* lexsup.c: Include ldver.h.
|
* lexsup.c: Include ldver.h.
|
||||||
* Makefile.in: Rebuilt dependencies.
|
* Makefile.in: Rebuilt dependencies.
|
||||||
|
@ -37,6 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#include "ldmisc.h"
|
#include "ldmisc.h"
|
||||||
#include "ldmain.h"
|
#include "ldmain.h"
|
||||||
#include "mri.h"
|
#include "mri.h"
|
||||||
|
#include "ldlex.h"
|
||||||
|
|
||||||
#define YYDEBUG 1
|
#define YYDEBUG 1
|
||||||
|
|
||||||
@ -111,10 +112,6 @@ static int error_index;
|
|||||||
%token FORMAT PUBLIC DEFSYMEND BASE ALIAS TRUNCATE REL
|
%token FORMAT PUBLIC DEFSYMEND BASE ALIAS TRUNCATE REL
|
||||||
%token INPUT_SCRIPT INPUT_MRI_SCRIPT INPUT_DEFSYM
|
%token INPUT_SCRIPT INPUT_MRI_SCRIPT INPUT_DEFSYM
|
||||||
|
|
||||||
%{
|
|
||||||
/* For byacc, this has to come after INPUT_SCRIPT et al. are defined. */
|
|
||||||
#include "ldlex.h"
|
|
||||||
%}
|
|
||||||
%%
|
%%
|
||||||
|
|
||||||
file:
|
file:
|
||||||
|
Reference in New Issue
Block a user