lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: page breaking (again)


From: Han-Wen Nienhuys
Subject: Re: page breaking (again)
Date: Mon, 07 Aug 2006 12:38:05 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060614)

Joe Neeman wrote:
The new files are attached in a tar archive (I cc to Han-Wen just in
case the list strips it). There are 13 of them, so I thought it would be
easier.
Looks good. Please apply, after fixing the following issues.

for (vsize k = 0; k < lines_per_page[i] && systems != SCM_EOL; k++, systems = scm_cdr(systems))
         lines = scm_cons (scm_car (systems), lines);

this should be a generic Scheme function.

I would have thought so, but I can't find anything in R5RS. I can do it
with list-tail, length and reverse, but I don't know if it's any neater:

int len = scm_length (systems);
lines = scm_reverse (scm_c_list_tail (scm_reverse (systems),
                                      len - lines_per_page[i]));
systems = scm_c_list_tail (systems, lines_per_page[i]);

There's something in srfi-1 , but I'm not sure if you can call it conveniently from C++. If not, please add something to lily-guile.cc.

--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]