Reduce struct size by 8 bytes on 64-bit

This commit is contained in:
Anatol Belski 2018-02-18 22:58:04 +01:00
parent a6b2223220
commit 65be13a89a
2 changed files with 8 additions and 9 deletions

View file

@ -1,4 +1,4 @@
/* Generated by re2c 0.16 */ /* Generated by re2c 1.0.2 */
#line 1 "ext/pdo/pdo_sql_parser.re" #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.re"
#line 55 "ext/pdo/pdo_sql_parser.c" #line 55 "ext/pdo/pdo_sql_parser.c"
{ {
YYCTYPE yych; YYCTYPE yych;
@ -111,7 +111,7 @@ yy8:
if (yych <= 0x00) goto yy7; if (yych <= 0x00) goto yy7;
goto yy21; goto yy21;
yy9: yy9:
yych = *++YYCURSOR; ++YYCURSOR;
goto yy7; goto yy7;
yy10: yy10:
yych = *++YYCURSOR; yych = *++YYCURSOR;
@ -120,7 +120,7 @@ yy10:
default: goto yy7; default: goto yy7;
} }
yy11: yy11:
yych = *(YYMARKER = ++YYCURSOR); yych = *++YYCURSOR;
switch (yych) { switch (yych) {
case '*': goto yy28; case '*': goto yy28;
default: goto yy7; default: goto yy7;
@ -195,8 +195,8 @@ yy12:
default: goto yy7; default: goto yy7;
} }
yy13: yy13:
++YYCURSOR; yych = *++YYCURSOR;
switch ((yych = *YYCURSOR)) { switch (yych) {
case '?': goto yy36; case '?': goto yy36;
default: goto yy14; default: goto yy14;
} }
@ -374,7 +374,6 @@ yy38:
} }
yy40: yy40:
++YYCURSOR; ++YYCURSOR;
yych = *YYCURSOR;
goto yy27; goto yy27;
} }
#line 66 "ext/pdo/pdo_sql_parser.re" #line 66 "ext/pdo/pdo_sql_parser.re"
@ -384,10 +383,10 @@ yy40:
struct placeholder { struct placeholder {
char *pos; char *pos;
size_t len; size_t len;
int bindno;
size_t qlen; /* quoted length of value */ size_t qlen; /* quoted length of value */
char *quoted; /* quoted value */ char *quoted; /* quoted value */
int freeq; int freeq;
int bindno;
struct placeholder *next; struct placeholder *next;
}; };

View file

@ -69,10 +69,10 @@ static int scan(Scanner *s)
struct placeholder { struct placeholder {
char *pos; char *pos;
size_t len; size_t len;
int bindno;
size_t qlen; /* quoted length of value */ size_t qlen; /* quoted length of value */
char *quoted; /* quoted value */ char *quoted; /* quoted value */
int freeq; int freeq;
int bindno;
struct placeholder *next; struct placeholder *next;
}; };