The most recent g-wrap code (from
address@hidden/g-wrap--dev--0) wraps ssize_t but appears not to
allow negative values. This breaks some functions in guile-gnome;
for example this call will fail:
(gtk-ui-manager-add-string ui str -1)
but it should succeed since -1 is a valid value for the third argument. A patch such as the following resolves the issue.
+ ;; FIXME I'm not sure if this is the correct value for minimum ssize_t's,
+ ;; but ssize_t must be a signed type.
(wrap-ranged-integer-type! wrapset
#:name 'ssize_t
#:c-type-name "ssize_t"
-
#:max "SSIZE_MAX"
+
#:min "(1 - SSIZE_MAX)" #:max "SSIZE_MAX"
#:ffspec 'ssize_t)
(wrap-type! wrapset 'mchars
--
====================== Gregory Benison Oregon State University (541)-737-1876 address@hidden
======================