mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-22 20:11:36 +00:00
- 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:
parent
96f9dcd051
commit
5fdc889b24
2 changed files with 7 additions and 4 deletions
6
acc.c
6
acc.c
|
@ -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);
|
||||
}
|
||||
|
|
5
token.c
5
token.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue