]> granicus.if.org Git - php/commitdiff
Reduce struct size by 8 bytes on 64-bit
authorAnatol Belski <ab@php.net>
Sun, 18 Feb 2018 21:58:04 +0000 (22:58 +0100)
committerAnatol Belski <ab@php.net>
Mon, 19 Feb 2018 09:12:46 +0000 (10:12 +0100)
ext/pdo/pdo_sql_parser.c
ext/pdo/pdo_sql_parser.re

index e7eac3c9d8b035567a7198e812478e05f54d3773..4d84f35fed6932761eb9f11fb3db36206ed3d4a2 100644 (file)
@@ -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;
 };
 
index ea542322b3ee4dfe264318453463992942ad9a40..60f05190650c369d495050d6903f430f91f3dd63 100644 (file)
@@ -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;
 };