From fcc618005a9494e1521510534cb7aa15672b4432 Mon Sep 17 00:00:00 2001 From: Paul Hilfinger Date: Mon, 13 May 2002 00:27:26 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ data/bison.c++ | 6 ++---- data/bison.simple | 6 ++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index d9b9e4d2..53c8ccf9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-05-12 Paul Hilfinger + + * 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 * tests/synclines.at: Be sure to prototype yylex and yyerror to diff --git a/data/bison.c++ b/data/bison.c++ index 6d949040..eaa97a15 100644 --- a/data/bison.c++ +++ b/data/bison.c++ @@ -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]) diff --git a/data/bison.simple b/data/bison.simple index 8920bee3..b5ca5c3c 100644 --- a/data/bison.simple +++ b/data/bison.simple @@ -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]) -- 2.50.0