widl: Support Windows paths in dup_basename and make_token.

This commit is contained in:
Colin Finck 2008-02-07 17:41:00 +01:00 committed by Alexandre Julliard
parent d03f5f22e9
commit 0fae921727
2 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,9 @@ char *dup_basename(const char *name, const char *ext)
name = "widl.tab";
slash = strrchr(name, '/');
if (!slash)
slash = strrchr(name, '\\');
if (slash)
name = slash + 1;

View File

@ -166,6 +166,9 @@ static char *make_token(const char *name)
int i;
slash = strrchr(name, '/');
if(!slash)
slash = strrchr(name, '\\');
if (slash) name = slash + 1;
token = xstrdup(name);