]> git.donarmstrong.com Git - lilypond.git/commitdiff
The last commit was an accident. Revert 3 files that shouldn't have been
authorJoe Neeman <joeneeman@gmail.com>
Mon, 4 Sep 2006 05:51:14 +0000 (05:51 +0000)
committerJoe Neeman <joeneeman@gmail.com>
Mon, 4 Sep 2006 05:51:14 +0000 (05:51 +0000)
committed. (And here's the missing commit log):

* lily/simple-spacer.cc (get_line_forces): Ignore loose columns
unless they are breakable. This fixes discrepancies between the forces
calculated here and the forces calculated in get_line_configuration.

* lily/grob.cc (pure_relative_y_coordinate): fix some
mis-estimation that was happening with piano staves.

* lily/constrained-breaking.cc (resize): don't choke if we get a
measure that won't fit on a line.
(combine_demerits): don't consider uniformity when ragged

* lily/page-spacing.cc (solve): why the f* were there two of these?
(calc_subproblem): properly handle the case where a system is taller
than the page.

* lily/system.cc (get_paper_system): ensure that all the permissions
and penalties are passed to the paper systems.

* lily/page-breaking.cc (create_system_list): support system-count.

* scm/define-grobs.scm (pure-print-callbacks): add
ly:script-interface::print

* lily/page-spacing.cc (min_page_count): fix calculation of min
pages if we are ragged and there are non-zero springs.

* scm/layout-page-layout.scm: if the pure-height estimates are under
the real height, allow space-systems to ignore padding if it is
needed in order to fit the systems on one page

* lily/optimal-page-breaking.cc (try_page_spacing): fix reading
ragged properties
(solve): fix performance problem. Make sure we always get at least
one solution

* lily/page-breaking.cc (make_pages): include write-page-breaks
and page-stencil

* lily/paper-score.cc (calc_breaking): remove Gourlay breaker

* scm/define-grobs.scm: add the new slur-callback
fix pure-relevant to not exclude grobs whose extent is already
calculated

* ly/paper-defaults.ly: make ly:optimal-breaking the new default
page breaker

* lily/slur.cc (pure_height): new callback to estimate the height
of a slur

lily/axis-group-interface.cc
lily/include/lily-guile.hh
lily/lily-guile.cc

index 8700da3e544d181b0acb81bb988721eb19fc3e74..1d509f04d1923b436c0f4866d2767e2b085fea32 100644 (file)
@@ -145,14 +145,7 @@ Axis_group_interface::relative_pure_height (Grob *me,
        {
          Interval dims = elts[i]->pure_height (common, start, end);
          if (!dims.is_empty ())
-           {
-             r.unite (dims);
-             /*
-             message (_f ("axis-group (%d-%d) %s has child %s with height (%.2f,%.2f), my height is now (%.2f,%.2f)",
-                          start, end,
-                          me->name ().c_str (), elts[i]->name ().c_str (), dims[DOWN], dims[UP], r[DOWN], r[UP]));
-             */
-           }
+           r.unite (dims);
        }
     }
   return r;
index a0ac54bda718ac7566fdbac48b7a23424a6562a7..23b3c64785edef95c978f2553d734da4a394f8a3 100644 (file)
@@ -117,7 +117,9 @@ inline SCM ly_append4 (SCM x1, SCM x2, SCM x3, SCM x4)
 /*
   display and print newline.
 */
-void ly_display_scm (void *s);
+extern "C" {
+  void ly_display_scm (SCM s);
+}
 
 void read_lily_scm_file (string);
 void ly_c_init_guile ();
index 064ed54fabe32b27c46e99ef33e56017f0a2c3e0..971063e54ec382c823785f5833e5caa61f99df34 100644 (file)
@@ -114,12 +114,15 @@ gulp_file_to_string (string fn, bool must_exist, int size)
   return result;
 }
 
-void
-ly_display_scm (void *s)
-{
-  scm_display ((SCM)s, scm_current_output_port ());
-  scm_newline (scm_current_output_port ());
-}
+extern "C" {
+  // maybe gdb 5.0 becomes quicker if it doesn't do fancy C++ typing?
+  void
+  ly_display_scm (SCM s)
+  {
+    scm_display (s, scm_current_output_port ());
+    scm_newline (scm_current_output_port ());
+  }
+};
 
 string
 ly_scm2string (SCM str)