diff --git a/libguile/ChangeLog b/libguile/ChangeLog index a7e0d1bb5..dee613d68 100644 --- a/libguile/ChangeLog +++ b/libguile/ChangeLog @@ -1,3 +1,8 @@ +2006-05-27 Marius Vollmer + + * srfi-4.c, strings.c: Replace SCM_C_INLINE with + SCM_C_INLINE_KEYWORD. Thanks to Mark Gran! + 2006-05-26 Kevin Ryde * fports.c (fport_input_waiting): For ioctl, check HAVE_IOCTL as well diff --git a/libguile/srfi-4.c b/libguile/srfi-4.c index fc5da1513..db75b4cc4 100644 --- a/libguile/srfi-4.c +++ b/libguile/srfi-4.c @@ -277,7 +277,7 @@ uvec_free (SCM uvec) /* Utility procedures. */ /* ================================================================ */ -static SCM_C_INLINE int +static SCM_C_INLINE_KEYOWRD int is_uvec (int type, SCM obj) { if (SCM_IS_UVEC (obj)) @@ -290,13 +290,13 @@ is_uvec (int type, SCM obj) return 0; } -static SCM_C_INLINE SCM +static SCM_C_INLINE_KEYOWRD SCM uvec_p (int type, SCM obj) { return scm_from_bool (is_uvec (type, obj)); } -static SCM_C_INLINE void +static SCM_C_INLINE_KEYOWRD void uvec_assert (int type, SCM obj) { if (!is_uvec (type, obj)) @@ -334,7 +334,7 @@ alloc_uvec (int type, size_t len) so we use a big 'if' in the next two functions. */ -static SCM_C_INLINE SCM +static SCM_C_INLINE_KEYOWRD SCM uvec_fast_ref (int type, const void *base, size_t c_idx) { if (type == SCM_UVEC_U8) @@ -390,7 +390,7 @@ assert_exact_integer_range (SCM val, SCM min, SCM max) } #endif -static SCM_C_INLINE void +static SCM_C_INLINE_KEYOWRD void uvec_fast_set_x (int type, void *base, size_t c_idx, SCM val) { if (type == SCM_UVEC_U8) @@ -438,7 +438,7 @@ uvec_fast_set_x (int type, void *base, size_t c_idx, SCM val) } } -static SCM_C_INLINE SCM +static SCM_C_INLINE_KEYOWRD SCM make_uvec (int type, SCM len, SCM fill) { size_t c_len = scm_to_size_t (len); @@ -453,7 +453,7 @@ make_uvec (int type, SCM len, SCM fill) return uvec; } -static SCM_C_INLINE void * +static SCM_C_INLINE_KEYOWRD void * uvec_writable_elements (int type, SCM uvec, scm_t_array_handle *handle, size_t *lenp, ssize_t *incp) { @@ -468,7 +468,7 @@ uvec_writable_elements (int type, SCM uvec, scm_t_array_handle *handle, return scm_uniform_vector_writable_elements (uvec, handle, lenp, incp); } -static SCM_C_INLINE const void * +static SCM_C_INLINE_KEYOWRD const void * uvec_elements (int type, SCM uvec, scm_t_array_handle *handle, size_t *lenp, ssize_t *incp) { @@ -503,7 +503,7 @@ uvec_to_list (int type, SCM uvec) return res; } -static SCM_C_INLINE SCM +static SCM_C_INLINE_KEYOWRD SCM uvec_length (int type, SCM uvec) { scm_t_array_handle handle; @@ -514,7 +514,7 @@ uvec_length (int type, SCM uvec) return scm_from_size_t (len); } -static SCM_C_INLINE SCM +static SCM_C_INLINE_KEYOWRD SCM uvec_ref (int type, SCM uvec, SCM idx) { scm_t_array_handle handle; @@ -532,7 +532,7 @@ uvec_ref (int type, SCM uvec, SCM idx) return res; } -static SCM_C_INLINE SCM +static SCM_C_INLINE_KEYOWRD SCM uvec_set_x (int type, SCM uvec, SCM idx, SCM val) { scm_t_array_handle handle; @@ -549,7 +549,7 @@ uvec_set_x (int type, SCM uvec, SCM idx, SCM val) return SCM_UNSPECIFIED; } -static SCM_C_INLINE SCM +static SCM_C_INLINE_KEYOWRD SCM list_to_uvec (int type, SCM list) { SCM uvec; diff --git a/libguile/strings.c b/libguile/strings.c index 1f3094dc6..947bcb498 100644 --- a/libguile/strings.c +++ b/libguile/strings.c @@ -124,7 +124,7 @@ make_stringbuf (size_t len) /* Return a new stringbuf whose underlying storage consists of the LEN+1 octets pointed to by STR (the last octet is zero). */ -SCM_C_INLINE SCM +SCM_C_INLINE_KEYWORD SCM scm_i_take_stringbufn (char *str, size_t len) { scm_gc_register_collectable_memory (str, len + 1, "stringbuf");