From: Han-Wen Nienhuys Date: Fri, 30 Aug 2002 23:56:44 +0000 (+0000) Subject: * lily/kpath.cc: X-Git-Tag: release/1.6.1~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=622bab68b7a8af9149bdbc3e583a78c2e97b3a27;p=lilypond.git * lily/kpath.cc: * lily/lily-guile.cc: macosx fixes. --- diff --git a/ChangeLog b/ChangeLog index 6056917844..6154559725 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,13 +1,17 @@ 2002-08-31 Han-Wen Nienhuys + * lily/kpath.cc: + * lily/lily-guile.cc: macosx fixes. + * lily/script-column.cc (before_line_breaking): use stable sorting algorithm to preserve script ordering. (grob_script_priority_less): new function * lily/script-engraver.cc (process_music): - * lily/text-engraver.cc (process_acknowledged_grobs): + * lily/text-engraver.cc (process_acknowledged_grobs): * lily/fingering-engraver.cc (make_script): don't use direction - for script-priority. + for script-priority. This fixes orderings for multiple down + script/fingering. * scripts/ly2dvi.py (run_lilypond): don't exit if LilyPond fails, but try to assemble the files anyway. diff --git a/lily/kpath.cc b/lily/kpath.cc index 9579aae41f..a8a5211437 100644 --- a/lily/kpath.cc +++ b/lily/kpath.cc @@ -9,6 +9,18 @@ #include #include +/* + +The problem, as far as I can tell, is that MacOS X has its getopt +prototype in , while I think other operating systems have it +in other places. is included by kpathsea.h, so you end up +renaming both conflicting prototypes to YAKLUDGE. + +I found a somewhat more elegant patch for this: Just #include + before defining YAKLUDGE. + +*/ +#include #include "config.h" #define popen REALLYUGLYKLUDGE diff --git a/lily/lily-guile.cc b/lily/lily-guile.cc index cf82fa6130..9748f6e6a6 100644 --- a/lily/lily-guile.cc +++ b/lily/lily-guile.cc @@ -23,32 +23,18 @@ #include "interval.hh" #include "pitch.hh" #include "dimensions.hh" + +/* macosx fix: + + source-file.hh includes cmath which undefines isinf and isnan +*/ +inline int (isinf)(Real r) { return isinf(r); } +inline int (isnan)(Real r) { return isnan(r); } + #include "source-file.hh" // #define TEST_GC -#ifdef PARANOID -#include -#undef gh_pair_p -bool -ly_pair_p (SCM x) -{ -#if 0 - assert (!SCM_CONSP (x) || (*(scm_t_bits*) SCM2PTR (SCM_CAR (x))) != scm_tc_free_cell); - assert (!SCM_CONSP (x) || (*(scm_t_bits*) SCM2PTR (SCM_CDR (x))) != scm_tc_free_cell); -#elif GUILE_MINOR_VERSION < 5 - assert (!SCM_CONSP (x) || !SCM_FREEP (SCM_CAR (x))); - assert (!SCM_CONSP (x) || !SCM_FREEP (SCM_CDR (x))); -#else - assert (!SCM_CONSP (x) || !SCM_FREE_CELL_P (SCM_CAR (x))); - assert (!SCM_CONSP (x) || !SCM_FREE_CELL_P (SCM_CDR (x))); -#endif - //return SCM_NFALSEP (scm_pair_p (x)); - return gh_pair_p (x); -} -#define gh_pair_p ly_pair_p -#endif - SCM ly_last (SCM list) { diff --git a/lily/parser.yy b/lily/parser.yy index 357baad39b..eb01922e05 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -23,6 +23,7 @@ this. */ +#include #include #include "translator-def.hh"