aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-26 03:22:26 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-26 03:22:26 +0000
commit6232b6c4c5a609ba7b2ee713ce563cf83e67835c (patch)
tree165a8ddbc9351852c515424f1037e3cee6eb625a /ld/ldgram.y
parent4725fb48f5d3fc844e96e1fdcd05e9d43528f6f9 (diff)
downloadfsf-binutils-gdb-6232b6c4c5a609ba7b2ee713ce563cf83e67835c.zip
fsf-binutils-gdb-6232b6c4c5a609ba7b2ee713ce563cf83e67835c.tar.gz
fsf-binutils-gdb-6232b6c4c5a609ba7b2ee713ce563cf83e67835c.tar.bz2
* 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.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index 9187579..c4b83b3 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -37,6 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "ldmisc.h"
#include "ldmain.h"
#include "mri.h"
+#include "ldlex.h"
#define YYDEBUG 1
@@ -111,10 +112,6 @@ static int error_index;
%token FORMAT PUBLIC DEFSYMEND BASE ALIAS TRUNCATE REL
%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: