- Restored old -d parameter handling so that I can use "acc -d test.acs" to send debugging output to the console again.

- Restored missing lines from ProcessQuoteToken() that prevented proper string parsing with backslashes.

SVN r1320 (trunk)
This commit is contained in:
Randy Heit 2008-12-16 04:17:48 +00:00
parent 96f9dcd051
commit 5fdc889b24
2 changed files with 7 additions and 4 deletions

6
acc.c
View file

@ -196,9 +196,9 @@ static void ProcessArgs(void)
case 'D':
acs_DebugMode = YES;
acs_VerboseMode = YES;
if((i + 1) < ArgCount)
if(*text != 0)
{
OpenDebugFile(ArgVector[++i]);
OpenDebugFile(text);
}
break;
@ -261,7 +261,7 @@ static void DisplayUsage(void)
{
puts("\nUsage: ACC [options] source[.acs] [object[.o]]\n");
puts("-i [path] Add include path to find include files");
puts("-d [file] Output debugging information");
puts("-d[file] Output debugging information");
puts("-h Create pcode compatible with Hexen and old ZDooms");
exit(1);
}

View file

@ -1008,7 +1008,10 @@ static void ProcessQuoteToken(void)
*text++ = Chr;
}
// escape the character after a backslash [JB]
escaped ^= (Chr == ASCII_BACKSLASH);
if(Chr == ASCII_BACKSLASH)
escaped ^= (Chr == ASCII_BACKSLASH);
else
escaped = FALSE;
NextChr();
}
*text = 0;