diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-12-12 00:54:14 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-12-12 00:54:14 +0000 |
commit | 9f6294075ee0c6a0414499600eed661ce5aee2a3 (patch) | |
tree | 71dd78ce58ad288f67edbdb0a4035d84f496caac /ld/ldlex.l | |
parent | aa53cd671474758239f42060db745db696dd1f55 (diff) | |
download | gdb-9f6294075ee0c6a0414499600eed661ce5aee2a3.zip gdb-9f6294075ee0c6a0414499600eed661ce5aee2a3.tar.gz gdb-9f6294075ee0c6a0414499600eed661ce5aee2a3.tar.bz2 |
More gcc lint.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -33,13 +33,12 @@ This was written by steve chamberlain #include "ldexp.h" #include "ldlang.h" #include "ldfile.h" +#include "ldlex.h" int ldgram_in_defsym; int hex_mode; -char *buystring(); - unsigned int lineno = 1; int old; @@ -227,23 +226,23 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~] } <MRI,EXPRESSION>([0-9A-Fa-f])+(H|X|B|O|D) { - int base ; + int ibase ; switch (yytext[yyleng-1]) { case 'X': case 'H': - base = 16; + ibase = 16; break; case 'O': - base = 8; + ibase = 8; break; case 'B': - base = 2; + ibase = 2; break; default: - base = 10; + ibase = 10; } yylval.integer = bfd_scan_vma (yytext+1, 0, - base); + ibase); return INT; } <SCRIPT,DEFSYMEXP,MRI,BOTH,EXPRESSION>"$"?"0x"?([0-9A-Fa-f])+(M|K|m|k)? { |