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:
@@ -25,7 +25,7 @@
|
||||
extern FILE *db_out;
|
||||
t_lineno currline;
|
||||
t_lineno listline;
|
||||
extern char *strrindex();
|
||||
extern char *strrchr();
|
||||
extern int interrupted;
|
||||
|
||||
#if __STDC__
|
||||
@@ -465,7 +465,7 @@ newfile(id)
|
||||
listfile = add_file(id->id_text);
|
||||
listfile->sy_file->f_scope = FileScope;
|
||||
}
|
||||
find_language(strrindex(id->id_text, '.'));
|
||||
find_language(strrchr(id->id_text, '.'));
|
||||
}
|
||||
|
||||
int in_wheninvoked;
|
||||
|
||||
Reference in New Issue
Block a user