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 - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

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



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to