444 |
int |
int |
445 |
string () |
string () |
446 |
{ |
{ |
447 |
yylval.string = sieve_palloc (&sieve_machine->memory_pool, yyleng - 1); |
yylval.string = sieve_malloc (sieve_machine, yyleng - 1); |
448 |
memcpy (yylval.string, yytext + 1, yyleng - 2); |
memcpy (yylval.string, yytext + 1, yyleng - 2); |
449 |
yylval.string[yyleng - 2] = 0; |
yylval.string[yyleng - 2] = 0; |
450 |
return STRING; |
return STRING; |
497 |
} |
} |
498 |
|
|
499 |
/* Copy the contents */ |
/* Copy the contents */ |
500 |
yylval.string = sieve_palloc (&sieve_machine->memory_pool, length + 1); |
yylval.string = sieve_malloc (sieve_machine, length + 1); |
501 |
p = yylval.string; |
p = yylval.string; |
502 |
for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr)) |
for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr)) |
503 |
{ |
{ |