diff options
author | Anatol Belski <ab@php.net> | 2018-02-18 22:58:04 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-02-19 10:12:46 +0100 |
commit | 65be13a89a4db47f97c85fe0cc4aaa96d1923f88 (patch) | |
tree | a79d68b58263fd38cfc8a5199ea8bede4a24a8d6 /ext/pdo | |
parent | a6b2223220f65d06e43dc176d534cfd3347118f2 (diff) | |
download | php-git-65be13a89a4db47f97c85fe0cc4aaa96d1923f88.tar.gz |
Reduce struct size by 8 bytes on 64-bit
Diffstat (limited to 'ext/pdo')
-rw-r--r-- | ext/pdo/pdo_sql_parser.c | 15 | ||||
-rw-r--r-- | ext/pdo/pdo_sql_parser.re | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/ext/pdo/pdo_sql_parser.c b/ext/pdo/pdo_sql_parser.c index e7eac3c9d8..4d84f35fed 100644 --- a/ext/pdo/pdo_sql_parser.c +++ b/ext/pdo/pdo_sql_parser.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.16 */ +/* Generated by re2c 1.0.2 */ #line 1 "ext/pdo/pdo_sql_parser.re" /* +----------------------------------------------------------------------+ @@ -50,7 +50,7 @@ static int scan(Scanner *s) #line 55 "ext/pdo/pdo_sql_parser.re" - + #line 55 "ext/pdo/pdo_sql_parser.c" { YYCTYPE yych; @@ -111,7 +111,7 @@ yy8: if (yych <= 0x00) goto yy7; goto yy21; yy9: - yych = *++YYCURSOR; + ++YYCURSOR; goto yy7; yy10: yych = *++YYCURSOR; @@ -120,7 +120,7 @@ yy10: default: goto yy7; } yy11: - yych = *(YYMARKER = ++YYCURSOR); + yych = *++YYCURSOR; switch (yych) { case '*': goto yy28; default: goto yy7; @@ -195,8 +195,8 @@ yy12: default: goto yy7; } yy13: - ++YYCURSOR; - switch ((yych = *YYCURSOR)) { + yych = *++YYCURSOR; + switch (yych) { case '?': goto yy36; default: goto yy14; } @@ -374,7 +374,6 @@ yy38: } yy40: ++YYCURSOR; - yych = *YYCURSOR; goto yy27; } #line 66 "ext/pdo/pdo_sql_parser.re" @@ -384,10 +383,10 @@ yy40: struct placeholder { char *pos; size_t len; - int bindno; size_t qlen; /* quoted length of value */ char *quoted; /* quoted value */ int freeq; + int bindno; struct placeholder *next; }; diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re index ea542322b3..60f0519065 100644 --- a/ext/pdo/pdo_sql_parser.re +++ b/ext/pdo/pdo_sql_parser.re @@ -69,10 +69,10 @@ static int scan(Scanner *s) struct placeholder { char *pos; size_t len; - int bindno; size_t qlen; /* quoted length of value */ char *quoted; /* quoted value */ int freeq; + int bindno; struct placeholder *next; }; |