From 1853404bd217f6a3290b3a4a061eb12fe8ff69c0 Mon Sep 17 00:00:00 2001 From: hanwen Date: Fri, 9 Apr 2004 23:19:25 +0000 Subject: [PATCH] (markup): take encoding from lexer. --- lily/parser.yy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5