🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51449

binary constant patch available

#51449
From: Doug Moore
Date: Tue, 18 May 1993 02:55
40 lines
1936 bytes
Following this message is an update of a patch (by an author whose
name I have lost - sorry) to add binary constants of the form 0b11010
to C and C++.  The update is really just a line number adjustment,
reflecting changes in gcc 2.4.0.

Doug Moore
(dougm@cs.rice.edu)

P.S. - For a limited time only (1 week or so), I'm putting
gcc-2.4.0.tar.z out for anonymous ftp on zamenhof.cs.rice.edu, in
~ftp/pub.  Give prep.ai.mit.edu a break.  It's gone in a week, though.

*** c-lex.c.orig	Tue May  4 11:45:19 1993
--- c-lex.c	Mon May 17 20:48:07 1993
***************
*** 1306,1315 ****
--- 1306,1328 ----
  	if (c == '0')
  	  {
  	    *p++ = (c = getc (finput));
+ 	    /* hexadecimal (base 16) representation */
  	    if ((c == 'x') || (c == 'X'))
  	      {
  		base = 16;
  		*p++ = (c = getc (finput));
+ 	      }
+ 	    /* binary (base 2) representation */
+ 	    else if ((c == 'b') || (c == 'B'))
+ 	      {
+ 		base = 2;
+ 		*p++ = (c = getc (finput));
+ 	      }
+ 	    /* octal rep. (base 8),  "traditional" form is defined below */
+ 	    else if ((c == 'o') || (c == 'O'))
+ 	      {
+ 		base = 8;
+ 		*p++ = (c = getc (finput));
  	      }
  	    /* Leading 0 forces octal unless the 0 is the only digit.  */
  	    else if (c >= '0' && c <= '9')
Technical Details
Message-ID: <9305180249.AA17378@cs.rice.edu>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.dfn.de!xlink.net!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cs.rice.edu!dougm

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,3b1e2a88e90661eb,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-17 20:04:30 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.dfn.de!xlink.net!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cs.rice.edu!dougm
From: dougm@cs.rice.edu (Doug Moore)
Newsgroups: gnu.gcc.help
Subject: binary constant patch available
Date: 17 May 1993 22:55:00 -0400
Organization: GNUs Not Usenet
Lines: 40
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9305180249.AA17378@cs.rice.edu>