]> git.donarmstrong.com Git - lilypond.git/commitdiff
Rename argument to avoid preprocessor problems
authorJanek Warchoł <lemniskata.bernoullego@gmail.com>
Sun, 29 Jun 2014 20:58:45 +0000 (22:58 +0200)
committerJanek Warchoł <lemniskata.bernoullego@gmail.com>
Wed, 2 Jul 2014 10:50:30 +0000 (12:50 +0200)
Before this change, we were getting the following error with GUB:

/home/gub/gub/target/mingw/src/
lilypond-git.sv.gnu.org--lilypond.git-release-unstable/
lily/include/paper-column.hh:62:
error: expected identifier before ',' token
/home/gub/gub/target/mingw/src/
lilypond-git.sv.gnu.org--lilypond.git-release-unstable/
lily/include/paper-column.hh:62:
error: two or more data types in declaration of 'parameter'

David Kastrup suspects that the library/compiler used for bootstrapping
has a macro or reserved word defined for "interface" - changing the name
makes the problem go away.

lily/include/paper-column.hh
lily/paper-column.cc

index 408f001d637d1e08f2d87c494306163660768260..c0c33b268df023fc549cd93fed1643ceeb322c0a 100644 (file)
@@ -59,7 +59,7 @@ public:
   static bool is_extraneous_column_from_ligature (Grob *);
   static Real minimum_distance (Grob *l, Grob *r);
   static Interval break_align_width (Grob *me, SCM align_sym);
-  static Interval get_interface_extent (Grob *column, SCM interface, Axis a);
+  static Interval get_interface_extent (Grob *column, SCM iface, Axis a);
 };
 
 #endif // PAPER_COLUMN_HH
index 3e6988de0cd5b6fdd7bb8833ae313c7432cf8a11..1cb1452c852dba5eef1ad055387bbab354df5aa4 100644 (file)
@@ -223,13 +223,13 @@ Paper_column::break_align_width (Grob *me, SCM align_sym)
   interface and return their combined extent.
 */
 Interval
-Paper_column::get_interface_extent (Grob *column, SCM interface, Axis a)
+Paper_column::get_interface_extent (Grob *column, SCM iface, Axis a)
 {
   Interval extent = Interval (0, 0);
   extract_grob_set (column, "elements", elts);
 
   for (vsize i = 0; i < elts.size (); i++)
-    if (elts[i]->internal_has_interface (interface))
+    if (elts[i]->internal_has_interface (iface))
       extent.unite (robust_relative_extent (elts[i], elts[i], a));
 
   return extent;