fix dir separator handling

This commit is contained in:
suzuki toshiya 2011-01-07 01:48:32 +09:00
parent 97c96f2995
commit fa0acc4589
1 changed files with 5 additions and 3 deletions

View File

@ -535,10 +535,12 @@
{
/* matched token is 1st or after separator space? */
if ( c != c0 && *(c-1) != ' ' &&
#ifndef macintosh
*(c-1) != '/' && *(c-1) != '\\' )
#else
#ifdef PLATFORM_DIR_SEPARATOR
*(c-1) != PLATFORM_DIR_SEPARATOR[0] )
#elif defined( macintosh )
*(c-1) != ':' )
#else
*(c-1) != '/' && *(c-1) != '\\' )
#endif
goto NextToken;