Commit 8a6c1538 by Richard Stallman

(do_pragma): Use rindex, not strrchr.

From-SVN: r1992
parent c75ac904
......@@ -5897,7 +5897,7 @@ do_pragma (buf, limit)
*p = '\0';
for (ptr = all_include_files; ptr; ptr = ptr->next) {
inc_fname = (U_CHAR *) strrchr (ptr->fname, '/');
inc_fname = (U_CHAR *) rindex (ptr->fname, '/');
inc_fname = inc_fname ? inc_fname + 1 : ptr->fname;
if (inc_fname && !strcmp (inc_fname, fname))
warning ("`#pragma implementation' for `%s' appears after file is included",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment