# before negative integers.
+2005-05-24 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/parser.yy (bare_int): remove rule. From now on, we require
+ # before negative integers.
+
2005-05-23 Graham Percival <gperlist@shaw.ca>
* ly/property.ly: Update tieDotted to have the same form as slurDotted.
* lily/general-scheme.cc (ly:stderr-redirect): Rename from
ly:port-move. Needs to be stderr-specific on mingw.
- Run fixcc.
+ Run fixcc.
2005-05-20 Jan Nieuwenhuizen <janneke@gnu.org>
%type <book> book_block
%type <book> book_body
-%type <i> bare_int
%type <i> bare_unsigned
%type <i> bass_mod
%type <i> dots
| LYRICS_STRING {
$$ = $1;
}
- | bare_int {
- $$ = scm_int2num ($1);
+ | bare_number {
+ $$ = $1;
+/* if (scm_integer_p ($1) == SCM_BOOL_T)
+ {
+ int k = scm_to_int (scm_inexact_to_exact ($1));
+ $$ = k;
+ } else
+ {
+ THIS->parser_error (@1, _ ("need integer number arg"));
+ $$ = 0;
+ }*/
}
| embedded_scm {
$$ = $1;
}
;
-bare_int:
- bare_number {
- if (scm_integer_p ($1) == SCM_BOOL_T)
- {
- int k = scm_to_int ($1);
- $$ = k;
- } else
- {
- THIS->parser_error (@1, _ ("need integer number arg"));
- $$ = 0;
- }
- }
- | '-' bare_int {
- $$ = -$2;
- }
- ;
-
exclamations:
{ $$ = 0; }
| exclamations '!' { $$ ++; }
(or (not (running-from-gui?))
(ly:get-option 'safe)
(define lilypond-main gui-main))
- (define lilypond-main gui-main)
+; (define lilypond-main gui-main)