From: Han-Wen Nienhuys Date: Fri, 9 Apr 2004 23:19:25 +0000 (+0000) Subject: (markup): take encoding from lexer. X-Git-Tag: release/2.3.0~38 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cb31caf1d1d85fba886d1be321885953d5dcea16;p=lilypond.git (markup): take encoding from lexer. --- diff --git a/lily/parser.yy b/lily/parser.yy index 4b116f28e7..96746e4e62 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -118,7 +118,7 @@ make_simple_markup (SCM encoding, SCM a) bool -is_is_duration (int t) +is_duration (int t) { return t && t == 1 << intlog2 (t); } @@ -1829,7 +1829,7 @@ optional_notemode_duration: steno_duration: bare_unsigned dots { int len = 0; - if (!is_is_duration ($1)) + if (!is_duration ($1)) THIS->parser_error (_f ("not a duration: %d", $1)); else len = intlog2 ($1); @@ -1883,7 +1883,7 @@ tremolo_type: $$ = 0; } | ':' bare_unsigned { - if (!is_is_duration ($2)) + if (!is_duration ($2)) THIS->parser_error (_f ("not a duration: %d", $2)); $$ = $2; }