Skip to content

Commit

Permalink
escaping chars in macro args
Browse files Browse the repository at this point in the history
  • Loading branch information
jpffitch committed Jan 16, 2017
1 parent 9328274 commit a42d90e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Engine/csound_pre.lex
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ QNAN "qnan"[ \t]*\(
if (c == ')') {
csound->Die(csound, Str("Too few arguments to macro\n"));
}
if (c == '\\') c = input(yyscanner);
if (UNLIKELY(i > 98)) {
csound->Die(csound,
Str("Missing argument terminator\n%.98s"),
Expand Down Expand Up @@ -446,6 +447,7 @@ QNAN "qnan"[ \t]*\(
if (c == ')') {
csound->Die(csound, Str("Too few arguments to macro\n"));
}
if (c == '\\') c = input(yyscanner);
if (UNLIKELY(i > 98)) {
csound->Die(csound,
Str("Missing argument terminator\n%.98s"),
Expand Down
4 changes: 4 additions & 0 deletions Engine/csound_prs.lex
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ NM [nm]
if (c == ')') {
csound->Die(csound, Str("Too few arguments to macro\n"));
}
if (c == '\\') {
c = input(yyscanner);
}
if (UNLIKELY(i > 98)) {
csound->Die(csound,
Str("Missing argument terminator\n%.98s"),
Expand Down Expand Up @@ -388,6 +391,7 @@ NM [nm]
if (c == ')') {
csound->Die(csound, Str("Too few arguments to macro\n"));
}
if (c == '\\') c = input(yyscanner);
if (UNLIKELY(i > 98)) {
csound->Die(csound,
Str("Missing argument terminator\n%.98s"),
Expand Down

0 comments on commit a42d90e

Please sign in to comment.