X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fguile-compatibility.hh;h=a0db2d3ff886bbf8482470721800dcb95502b2a4;hb=f0968255554403de5d86b7e6efff5e644cba7f7a;hp=581124d62a2f77d8ae8ea67135b355755fdd0472;hpb=f40c15110e524f6ee076e2de3dc987468f889abc;p=lilypond.git diff --git a/lily/include/guile-compatibility.hh b/lily/include/guile-compatibility.hh index 581124d62a..a0db2d3ff8 100644 --- a/lily/include/guile-compatibility.hh +++ b/lily/include/guile-compatibility.hh @@ -35,12 +35,15 @@ inline SCM scm_caadr (SCM x) { return SCM_CAADR (x); } inline SCM scm_cadar (SCM x) { return SCM_CADAR (x); } #define scm_gc_unregister_collectable_memory(a, b, c) scm_done_free (b) #define scm_gc_register_collectable_memory(a, b, c) scm_done_malloc (b) +#define SCM_HASHTABLE_P(x) (SCM_VECTORP (x)) #define SCM_VECTOR_REF(v, i) (SCM_VELTS ((v))[(i)]) #define scm_from_bool(x) (x ? SCM_BOOL_T : SCM_BOOL_F) #define scm_from_int(x) SCM_MAKINUM (x) +#define scm_from_unsigned_integer(x) scm_uint2num (x) #define scm_is_integer(x) SCM_INUMP (x) #define scm_is_string(x) SCM_STRINGP (x) #define scm_hash_table_p scm_vector_p +#define scm_from_locale_stringn(s, n) scm_mem2string (s, n) #define scm_i_string_chars(x) SCM_STRING_CHARS (x) #define scm_i_string_length(x) SCM_STRING_LENGTH (x) inline bool ly_c_number_p (SCM x) { return SCM_NUMBERP (x); }