Replaced calls to the custom strindex() and strrindex() functions with the
exactly equivalent and standard strchr() and strrchr() functions instead.
This commit is contained in:
@@ -235,7 +235,7 @@ File *stream;
|
||||
}
|
||||
}
|
||||
|
||||
extern char *strindex();
|
||||
extern char *strchr();
|
||||
|
||||
getline()
|
||||
{
|
||||
@@ -244,7 +244,7 @@ getline()
|
||||
if ( our_fgets(inputline,MAXLINELENGTH,yyin) == 0)
|
||||
return(FALSE);
|
||||
yylineno ++;
|
||||
if ( strindex(inputline,'\n') == 0)
|
||||
if ( strchr(inputline,'\n') == 0)
|
||||
error("source line too long");
|
||||
inputline[MAXLINELENGTH-1]=0;
|
||||
if ( listing)
|
||||
|
||||
Reference in New Issue
Block a user