From 1cd14b40e794721d594553614cf4ece11410a934 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 21 Apr 2020 14:42:17 +0430 Subject: [PATCH] minor, update ragel generated hb-number-parser.hh --- src/hb-number-parser.hh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/hb-number-parser.hh b/src/hb-number-parser.hh index 27d1e063b..02f4f7fd8 100644 --- a/src/hb-number-parser.hh +++ b/src/hb-number-parser.hh @@ -31,7 +31,7 @@ #include "hb.hh" -#line 37 "hb-number-parser.hh" +#line 35 "hb-number-parser.hh" static const unsigned char _double_parser_trans_keys[] = { 0u, 0u, 43u, 57u, 46u, 57u, 48u, 57u, 43u, 57u, 48u, 57u, 48u, 101u, 48u, 57u, 46u, 101u, 0 @@ -91,7 +91,7 @@ static const int double_parser_error = 0; static const int double_parser_en_main = 1; -#line 70 "hb-number-parser.rl" +#line 68 "hb-number-parser.rl" /* Works only for n < 512 */ @@ -136,12 +136,12 @@ strtod_rl (const char *buf, char **end_ptr) int cs; -#line 142 "hb-number-parser.hh" +#line 140 "hb-number-parser.hh" { cs = double_parser_start; } -#line 147 "hb-number-parser.hh" +#line 145 "hb-number-parser.hh" { int _slen; int _trans; @@ -167,21 +167,21 @@ _resume: switch ( _double_parser_trans_actions[_trans] ) { case 1: -#line 39 "hb-number-parser.rl" +#line 37 "hb-number-parser.rl" { neg = true; } break; case 4: -#line 40 "hb-number-parser.rl" +#line 38 "hb-number-parser.rl" { exp_neg = true; } break; case 2: -#line 42 "hb-number-parser.rl" +#line 40 "hb-number-parser.rl" { value = value * 10. + ((*p) - '0'); } break; case 3: -#line 45 "hb-number-parser.rl" +#line 43 "hb-number-parser.rl" { if (likely (frac <= MAX_FRACT / 10)) { @@ -191,7 +191,7 @@ _resume: } break; case 5: -#line 52 "hb-number-parser.rl" +#line 50 "hb-number-parser.rl" { if (likely (exp * 10 + ((*p) - '0') <= MAX_EXP)) exp = exp * 10 + ((*p) - '0'); @@ -199,7 +199,7 @@ _resume: exp_overflow = true; } break; -#line 205 "hb-number-parser.hh" +#line 203 "hb-number-parser.hh" } _again: @@ -211,7 +211,7 @@ _again: _out: {} } -#line 116 "hb-number-parser.rl" +#line 114 "hb-number-parser.rl" *end_ptr = (char *) p;