Commit 3824cf69 authored by Daniel Salzman's avatar Daniel Salzman

zscanner: fix different results among various operating systems

parent a3d1fb1c
......@@ -2182,7 +2182,7 @@ tr936:
p--; {goto st268;}
}
goto st0;
tr943:
tr942:
{
WARN(ZS_BAD_NUMBER);
p--; {goto st268;}
......@@ -35277,10 +35277,16 @@ st281:
if ( ++p == pe )
goto _test_eof281;
case 281:
if ( 48 <= (*p) && (*p) <= 57 )
goto tr942;
goto tr937;
tr942:
if ( (*p) < 48 ) {
if ( 32 <= (*p) && (*p) <= 47 )
goto tr937;
} else if ( (*p) > 57 ) {
if ( 58 <= (*p) && (*p) <= 126 )
goto tr937;
} else
goto tr943;
goto tr942;
tr943:
{
if (rdata_tail <= rdata_stop) {
// Split long string.
......@@ -35324,7 +35330,7 @@ st282:
case 282:
if ( 48 <= (*p) && (*p) <= 57 )
goto tr944;
goto tr943;
goto tr942;
tr944:
{
if ((*rdata_tail < (UINT8_MAX / 10)) || // Dominant fast check.
......@@ -35346,7 +35352,7 @@ st283:
case 283:
if ( 48 <= (*p) && (*p) <= 57 )
goto tr945;
goto tr943;
goto tr942;
tr945:
{
if ((*rdata_tail < (UINT8_MAX / 10)) || // Dominant fast check.
......@@ -35383,7 +35389,7 @@ case 284:
goto tr948;
} else
goto tr947;
goto tr943;
goto tr942;
tr950:
{
if (rdata_tail <= rdata_stop) {
......@@ -35482,9 +35488,15 @@ st287:
if ( ++p == pe )
goto _test_eof287;
case 287:
if ( 48 <= (*p) && (*p) <= 57 )
if ( (*p) < 48 ) {
if ( 32 <= (*p) && (*p) <= 47 )
goto tr950;
} else if ( (*p) > 57 ) {
if ( 58 <= (*p) && (*p) <= 126 )
goto tr950;
} else
goto tr954;
goto tr950;
goto tr942;
tr954:
{
if (rdata_tail <= rdata_stop) {
......@@ -35529,7 +35541,7 @@ st288:
case 288:
if ( 48 <= (*p) && (*p) <= 57 )
goto tr955;
goto tr943;
goto tr942;
tr955:
{
if ((*rdata_tail < (UINT8_MAX / 10)) || // Dominant fast check.
......@@ -35551,7 +35563,7 @@ st289:
case 289:
if ( 48 <= (*p) && (*p) <= 57 )
goto tr956;
goto tr943;
goto tr942;
tr956:
{
if ((*rdata_tail < (UINT8_MAX / 10)) || // Dominant fast check.
......@@ -35585,7 +35597,7 @@ case 290:
}
if ( 32 <= _widec && _widec <= 126 )
goto tr957;
goto tr943;
goto tr942;
st291:
if ( ++p == pe )
goto _test_eof291;
This diff is collapsed.
......@@ -610,11 +610,11 @@
}
text_char =
( (33..126 - [\\;\"]) $_text_char # One printable char.
| ('\\' . ^digit) @_text_char # One "\x" char.
| ('\\' %_text_dec_init # Initial "\" char.
. digit {3} $_text_dec %_text_dec_exit # "DDD" rest.
$!_text_dec_error
( (33..126 - [\\;\"]) $_text_char # One printable char.
| ('\\' . (32..126 - digit)) @_text_char # One "\x" char.
| ('\\' %_text_dec_init # Initial "\" char.
. digit {3} $_text_dec %_text_dec_exit # "DDD" rest.
$!_text_dec_error
)
) $!_text_char_error;
......
......@@ -11,7 +11,7 @@ $TTL 1
@ TXT "" "test1" "\255" test2 ; Array of text strings
@ TXT "" "" "" ; Array of blank strings
@ TXT first \# "\#" ; Array with special string
@ TXT \0320\ \\\"\.\@\*.tld. ; Special domain as a string
@ TXT \0320\ \\\"\;\.\@\*.tld. ; Special domain as a string
@ TXT " !\"#$%&'()*+,-./0123456789:;<=>?@" ; First part of all printables
@ TXT "ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`" ; Second part of all printables
@ TXT "abcdefghijklmnopqrstuvwxyz{|}~" ; Third part of all printables
......
......@@ -56,7 +56,7 @@ OWNER=00
CLASS=0001
RRTTL=00000001
RTYPE=0010
RDATA=0D2030205C222E402A2E746C642E
RDATA=0E2030205C223B2E402A2E746C642E
------
OWNER=00
CLASS=0001
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment