mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* 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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user