From 16b4605d54c90471b5d1aed39a298172d006f52e Mon Sep 17 00:00:00 2001 From: hanwen Date: Wed, 31 Aug 2005 19:22:41 +0000 Subject: [PATCH] (make_stand_in_procs_weak): backport: compat bugfix for GUILE 1.6.4. --- ChangeLog | 5 +++++ lily/ly-module.cc | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0ab62d987b..ece3237013 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-31 Han-Wen Nienhuys + + * lily/ly-module.cc (make_stand_in_procs_weak): backport: compat + bugfix for GUILE 1.6.4. + 2005-08-30 Han-Wen Nienhuys * scripts/lilypond-book.py (get_latex_textwidth): bugfix for splitext(). diff --git a/lily/ly-module.cc b/lily/ly-module.cc index 4821a4e4f1..931789e3e6 100644 --- a/lily/ly-module.cc +++ b/lily/ly-module.cc @@ -228,6 +228,14 @@ redefine_keyval (void *closure, SCM key, SCM val, SCM result) void make_stand_in_procs_weak () { + /* + Ugh, ABI breakage for 1.6.5: scm_stand_in_procs is a hashtab from + 1.6.5 on. + */ + if (scm_is_pair (scm_stand_in_procs)) + { + return; + } SCM old_tab = scm_stand_in_procs; SCM new_tab = scm_make_weak_key_hash_table (scm_from_int (257)); -- 2.39.5