]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/book-scheme.cc
don't use guile -e main execution.
[lilypond.git] / lily / book-scheme.cc
index 03e10af05d73c3d39caafe3105090a36210cc5cb..750917187f65a86612d86fe0d21b2959010be73e 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "book.hh"
@@ -31,7 +31,7 @@ LY_DEFINE (ly_make_book, "ly:make-book",
   book->scores_ = scm_append (scm_list_2 (scores, book->scores_));
 
   SCM x = book->self_scm ();
-  scm_gc_unprotect_object (x);
+  book->unprotect ();
   return x;
 }
 
@@ -58,7 +58,7 @@ LY_DEFINE (ly_parser_print_book, "ly:book-process",
   if (pb)
     {
       pb->output (output);
-      scm_gc_unprotect_object (pb->self_scm ());
+      pb->unprotect ();
     }
 
   return SCM_UNSPECIFIED;