mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Eliminate token length assumption in scanstr().
This commit is contained in:
@@ -239,7 +239,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
|
||||
}
|
||||
<xq>{xqstop} {
|
||||
BEGIN(SQL);
|
||||
/* yylval.str = mm_strdup(scanstr(literal));*/
|
||||
/* yylval.str = scanstr(literal); */
|
||||
yylval.str = mm_strdup(literal);
|
||||
return SCONST;
|
||||
}
|
||||
@@ -601,7 +601,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
|
||||
if (strcmp(old, ptr->old) == 0)
|
||||
{
|
||||
free(ptr->new);
|
||||
/* ptr->new = mm_strdup(scanstr(literal));*/
|
||||
/* ptr->new = scanstr(literal); */
|
||||
ptr->new = mm_strdup(literal);
|
||||
}
|
||||
}
|
||||
@@ -611,7 +611,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
|
||||
|
||||
/* initial definition */
|
||||
this->old = old;
|
||||
/* this->new = mm_strdup(scanstr(literal));*/
|
||||
/* this->new = scanstr(literal); */
|
||||
this->new = mm_strdup(literal);
|
||||
this->next = defines;
|
||||
defines = this;
|
||||
|
||||
Reference in New Issue
Block a user