1
0
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:
Tom Lane
1999-09-11 22:26:47 +00:00
parent a7fd74edb3
commit b65ab31910
4 changed files with 20 additions and 13 deletions

View File

@@ -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;