Use new xxStrdup() functions.

Cleanup compiler warnings due to our using 8-bit lexers.
This commit is contained in:
Andrew Johnson
2006-03-29 19:46:05 +00:00
parent cd3806e189
commit daf8f033fa
3 changed files with 15 additions and 25 deletions
+2 -4
View File
@@ -17,14 +17,12 @@ value {notquote}|{escapequote}
"file" { return(DBFILE); }
"=" { return(EQUALS); }
{par}{value}*{par} { yylval.Str=(char*)dbmfMalloc(strlen(yytext)+1);
strcpy(yylval.Str,yytext+1);
{par}{value}*{par} { yylval.Str = dbmfStrdup(yytext);
yylval.Str[strlen(yylval.Str)-1] = '\0';
return(QUOTE);
}
{word}+ { yylval.Str=(char*)dbmfMalloc(strlen(yytext)+1);
strcpy(yylval.Str,yytext);
{word}+ { yylval.Str = dbmfStrdup(yytext);
return(WORD);
}