]> git.donarmstrong.com Git - lilypond.git/commitdiff
(process): return #f iso. #<undefined>. This
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 17 Apr 2005 22:41:23 +0000 (22:41 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 17 Apr 2005 22:41:23 +0000 (22:41 +0000)
prevents #<undefined> leaking into GUILE-userspace.

ChangeLog
lily/global-context-scheme.cc
lily/include/music-output.hh
lily/include/performance.hh
lily/music-output.cc [new file with mode: 0644]
lily/performance.cc

index 571e9e936e2277cc3d33305be87eb340152e1a35..68f8a806dd4a5eff76d8b81089063cde2cb0d88d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-18  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/performance.cc (process): return #f iso. #<undefined>. This
+       prevents #<undefined> leaking into GUILE-userspace.
+
 2005-04-17  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * config.hh.in: remove HAVE_PANGO_FC_FONT_MAP_ADD_DECODER_FIND_FUNC
@@ -57,7 +62,7 @@
        * framework-eps.scm: code added so that a macro \betweenLilyPondSystem
        with one parameter can be defined in a LaTeX file when processed
        by lilypond-book this will be evaluated between the systems of
-       a muti-system score. The parameter is the number of systems processed.
+       a multi-system score. The parameter is the number of systems processed.
 
 2005-04-16  Jan Nieuwenhuizen  <janneke@gnu.org>
 
index 6f83fc2fc4fa86457ad6446031416256fa07ad91..4f717561533cbc1fd28a84aa20a2b1bc20ab7194 100644 (file)
@@ -27,6 +27,7 @@ LY_DEFINE (ly_format_output, "ly:format-output",
 
   Music_output *output = g->get_output ();
   progress_indication ("\n");
+
   /* ugh, midi still wants outname  */
   return output->process (ly_scm2string (outname));
 }
index 05915e794baad41a1e6edbd98f2a17b1929d7cfe..cb75cc706114a018f84075613ceaa27245ad648b 100644 (file)
 class Music_output
 {
 public:
-  virtual SCM process (String)
-  {
-    return SCM_EOL;
-  }
-  virtual ~Music_output () {}
+  virtual SCM process (String); 
+  virtual ~Music_output ();
 };
 
 #endif /* MUSIC_OUTPUT_HH */
index 596e8777751ed9dfc6883c0f355995a3e6b3f63e..1d46cd8f66fe128837419d1457b5ddb5da761c9d 100644 (file)
@@ -27,7 +27,7 @@ public:
   SCM process (String);
 
   Link_array<Audio_staff> audio_staffs_;
-  Cons<Audio_element> *audio_elem_p_list_;
+  Cons<Audio_element> *audio_element_list_;
   Output_def *midi_;
 };
 
diff --git a/lily/music-output.cc b/lily/music-output.cc
new file mode 100644 (file)
index 0000000..67b9530
--- /dev/null
@@ -0,0 +1,25 @@
+/* 
+  music-output.cc --  implement Music_output
+  
+  source file of the GNU LilyPond music typesetter
+  
+  (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  
+*/
+
+#include "music-output.hh" 
+
+/*
+  Just stubs.
+ */
+SCM
+Music_output::process ()
+{
+  return SCM_EOL;
+}
+
+Music_output::~Music_output ()
+{
+  
+}
+  
index 83a9b910480ab8616d7520943fa6d528176531c8..f030631acc5643d518982bcde220f5389123a895 100644 (file)
 Performance::Performance ()
 {
   midi_ = 0;
-  audio_elem_p_list_ = 0;
+  audio_element_list_ = 0;
 }
 
 Performance::~Performance ()
 {
-  delete audio_elem_p_list_;
+  delete audio_element_list_;
 }
 
 void
@@ -146,7 +146,7 @@ Performance::add_element (Audio_element *p)
     {
       audio_staffs_.push (s);
     }
-  audio_elem_p_list_ = new Killing_cons<Audio_element> (p, audio_elem_p_list_);
+  audio_element_list_ = new Killing_cons<Audio_element> (p, audio_element_list_);
 }
 
 SCM
@@ -165,5 +165,5 @@ Performance::process (String out)
 
   output (midi_stream);
   progress_indication ("\n");
-  return SCM_UNDEFINED;
+  return SCM_BOOL_F;
 }