]> git.saurik.com Git - bison.git/commitdiff
* data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
authorPaul Hilfinger <Hilfinger@CS.Berkeley.EDU>
Mon, 13 May 2002 00:27:26 +0000 (00:27 +0000)
committerPaul Hilfinger <Hilfinger@CS.Berkeley.EDU>
Mon, 13 May 2002 00:27:26 +0000 (00:27 +0000)
32-bit arithmetic.
* data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.

ChangeLog
data/bison.c++
data/bison.simple

index d9b9e4d2e8c3de969ab54481fb29927197b28250..53c8ccf9e1d2f0a23b8bb782cc5b645c9f6ce215 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-12  Paul Hilfinger  <Hilfinger@CS.Berkeley.EDU>
+
+       * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
+       32-bit arithmetic.
+       * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
+
 2002-05-07  Akim Demaille  <akim@epita.fr>
 
        * tests/synclines.at: Be sure to prototype yylex and yyerror to
index 6d949040b5a456d67b6adcc2006b7bbc76726ef1..eaa97a15f6189ed257c3758b42b7c29862f568b3 100644 (file)
@@ -6,8 +6,7 @@ m4_divert(-1)
 m4_define([b4_sint_type],
 [m4_if(m4_eval([$1 <= 127]),        [1], [signed char],
        m4_eval([$1 <= 32767]),      [1], [signed short],
-       m4_eval([$1 <= 2147483647]), [1], [signed int],
-       [m4_fatal([no signed int type for $1])])])
+       [signed int])])
 
 
 # b4_uint_type(MAX)
@@ -16,8 +15,7 @@ m4_define([b4_sint_type],
 m4_define([b4_uint_type],
 [m4_if(m4_eval([$1 <= 255]),        [1], [unsigned char],
        m4_eval([$1 <= 65535]),      [1], [unsigned short],
-       m4_eval([$1 <= 4294967295]), [1], [unsigned int],
-       [m4_fatal([no unsigned int type for $1])])])
+       [unsigned int])])
 
 
 # b4_lhs_value([TYPE])
index 8920bee31d38101adc543fc7a18a9fa223b49e3b..b5ca5c3ca2a3a61480684efb74f00c07d75cf6c5 100644 (file)
@@ -6,8 +6,7 @@ m4_divert(-1)                                                       -*- C -*-
 m4_define([b4_sint_type],
 [m4_if(m4_eval([$1 <= 127]),        [1], [signed char],
        m4_eval([$1 <= 32767]),      [1], [signed short],
-       m4_eval([$1 <= 2147483647]), [1], [signed int],
-       [m4_fatal([no signed int type for $1])])])
+       [signed int])])
 
 
 # b4_uint_type(MAX)
@@ -16,8 +15,7 @@ m4_define([b4_sint_type],
 m4_define([b4_uint_type],
 [m4_if(m4_eval([$1 <= 255]),        [1], [unsigned char],
        m4_eval([$1 <= 65535]),      [1], [unsigned short],
-       m4_eval([$1 <= 4294967295]), [1], [unsigned int],
-       [m4_fatal([no unsigned int type for $1])])])
+       [unsigned int])])
 
 
 # b4_lhs_value([TYPE])