]> git.donarmstrong.com Git - lilypond.git/commitdiff
release commit release/2.3.20
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 2 Oct 2004 11:33:32 +0000 (11:33 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 2 Oct 2004 11:33:32 +0000 (11:33 +0000)
lily/include/lily-guile.hh
lily/include/ly-smobs.icc

index 055b81a167d15c2c951157db18d1e9877bf81956..69b002b2f319dcbb76fb1eaae6b9b394e1dc15c7 100644 (file)
@@ -45,6 +45,7 @@ inline double ly_scm2double (SCM x) { return scm_num2dbl (x, "ly_scm2double"); }
 #define scm_from_double(x) (scm_make_real(x))
 
 
+
 #endif /* SCM_MINOR_VERSION < 7 */
 
 #ifndef SMOB_FREE_RETURN_VAL
index 8fd9ff7aaeaad2b891652ee6aa0666a9424553cf..80412db155fb2a9c24c3548bb148cfb9b2612549 100644 (file)
@@ -24,13 +24,6 @@ void init_type_ ## CL () \
 } \
 ADD_SCM_INIT_FUNC (init_type_ ## CL, init_type_ ## CL)
 
-#ifndef SCM_CELL_TYPE
-#define SCM_CELL_TYPE(X) SCM_CAR (X)
-#endif
-
-#ifndef SCM_CELL_WORD_1
-#define SCM_CELL_WORD_1(X) SCM_CDR (X)
-#endif
 
 #define IMPLEMENT_BASE_SMOBS(CL) \
 scm_t_bits CL::smob_tag_; \
@@ -57,7 +50,7 @@ CL::init_smobs () \
 size_t \
 CL::free_smob (SCM ses) \
 { \
-  CL *s = (CL*) SCM_CDR (ses); \
+  CL *s = (CL*) SCM_CELL_WORD_1 (ses); \
   delete s; \
   scm_gc_unregister_collectable_memory (s, sizeof (CL), #CL " smob"); \
   return SMOB_FREE_RETURN_VAL(CL); \