Skip to content

Commit

Permalink
attempt to improve rough r s or e
Browse files Browse the repository at this point in the history
  • Loading branch information
jpffitch committed Dec 18, 2017
1 parent 598cc34 commit dd1559c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Engine/csound_prs.lex
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ EXIT #exit
CONT \\[ \t]*(;.*)?(\n|\r\n?)
SEND ^[ \t]*[es]
ROP ^[ \t]*r

NM [nm]

%X incl
Expand Down Expand Up @@ -698,8 +699,10 @@ NM [nm]
c = input(yyscanner);
}
if (UNLIKELY(PARM->repeat_sect_cnt <= 0
|| !isspace(c)))
csound->Die(csound, Str("r: invalid repeat count"));
|| !isspace(c))) {
csound->Message(csound, Str("r: invalid repeat count"));
csound->LongJmp(csound, 1);
}
if (UNLIKELY(csound->oparms->odebug))
csound->Message(csound, Str("r LOOP=%d\n"), PARM->repeat_sect_cnt);
while (isblank(c)) {
Expand Down

0 comments on commit dd1559c

Please sign in to comment.