Re: read-string!/partial on non-file ports
() "Luigi Semenzato" <[EMAIL PROTECTED]> () Mon, 10 Sep 2007 13:35:29 -0700 That's cool for writing, thanks. But what about reading? have you tried passing the socket's file descriptor to read-string!/partial? thi ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user
Re: (fcntl fd F_GETLK ...) from Guile
Mike Gran <[EMAIL PROTECTED]> writes: If it fails again, you should write me directly, as autoconf problems (and my failings as a coder) are off-topic for the list. ;-) I don't have any autoconf problems anymore, thank you. I've just managed to backport your example to Guile 1.6.x. and come up with the following table of correspondence: Guile 1.8.xGuile 1.6.x -- --- scm_is_integer SCM_INUMP scm_is_trueSCM_NFALSEP scm_to_int SCM_INUM scm_to_int32 SCM_INUM scm_from_int SCM_MAKINUM scm_from_int32 SCM_MAKINUM scm_to_short (x) scm_num2short (x, 0, NULL) scm_from_short scm_short2num Not sure whether it is correct, but works for the trivial examples I run for now. I don't know what to do with scm_to_int64 and scm_from_int64, though. -- Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user
guile bindings for libwnck?
I'm new to Guile (but not Scheme), and I'm trying to get this program http://lilypond.org/~janneke/software/keywise.scm to run under Debian. I can't seem to find the wnck module (gnome gw wnck). There are libwnck.defs and libwnck-types.defs files, but no .scm files. Can someone please advise me how to use the .defs files to create the necessary bindings? (Note that the gnome package for Python already has wnck bindings, in case that gets someone's competitive spirit fired up :-) Thanks. -- Eric Cooper e c c @ c m u . e d u ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user
Re: (fcntl fd F_GETLK ...) from Guile
--- Kaloian Doganov <[EMAIL PROTECTED]> wrote: > I've just managed to backport your example to Guile 1.6.x. and come > up > with the following table of correspondence: > > Guile 1.8.xGuile 1.6.x > -- --- > scm_is_integer SCM_INUMP > scm_is_trueSCM_NFALSEP > scm_to_int SCM_INUM > scm_to_int32 SCM_INUM > scm_from_int SCM_MAKINUM > scm_from_int32 SCM_MAKINUM > scm_to_short (x) scm_num2short (x, 0, NULL) > scm_from_short scm_short2num > That appears correct. > Not sure whether it is correct, but works for the trivial examples I > run for now. I don't know what to do with scm_to_int64 and > scm_from_int64, though. For many machines 64bits is long long integers. Try scm_num2long_long and scm_long_long2num. -Mike Gran ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user