🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10087

gdb 3.5 yylex

#10087
From: Jay Norwood
Date: Fri, 27 Jul 1990 14:56
16 lines
1294 bytes
In expread.y parse_number, there is existing code that should accept
'L','l','u', or 'U' at the end of a number; however, the current
yylex does not let these through, so the code is seemingly useless.
The following lines of code can be added in yylex immediately following
the comment:
  /* This is the sign of the exponent, not the end of the
      number.  */
and will allow 'l' or 'L' at the end of integer or hex constants, and will
allow 'u' or 'U' at the end of integer constants. Jay Norwood
--------------------------
else if (!got_dot && !got_e && (*p=='l'||*p=='L')){
   ++p; break;
   }  
else if (!got_dot && !got_e && !hex && (*p=='u'||*p=='U')){
   ++p; break;
   }  
Technical Details
Message-ID: <9007271456.AA15819@ray.sun.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!snorkelwacker!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!oakhill!ray!jay

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,9f0522fe49fd27e5,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-07-27 07:56:25 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!snorkelwacker!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!oakhill!ray!jay
From: oakhill!ray!jay@CS.UTEXAS.EDU (Jay Norwood)
Newsgroups: gnu.gdb.bug
Subject: gdb 3.5 yylex
Message-ID: <9007271456.AA15819@ray.sun.com>
Date: 27 Jul 90 14:56:25 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 16
Posted: Fri Jul 27 15:56:25 1990