This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
literals and guile -> C
- To: guile at sourceware dot cygnus dot com
- Subject: literals and guile -> C
- From: Ragnar Hojland Espinosa <ragnar at macula dot net>
- Date: Fri, 9 Jun 2000 18:00:42 +0200
- Organization: Mediocrity Naysayers Ltd
I've read the docs I've found, and I yet can't figure it out. Say I have
(rh-bind-key 97 '(rh-send-string "you got an a"))
and
SCM bind_key (SCM skey, SCM scode)
{
int key = gh_scm2ulong (skey)
}
How do i get the contents of scode in the C routine so that I can eval it
later? Currently I'm doing
(rh-bind-key 97 "(rh-send-string \"you got an a\")")
gh_scm2newstr ...
but you can see how ugly it is. Any hints, please?
(Please CC as apparently I'm not yet subscribed)
--
____/| Ragnar Højland Freedom - Linux - OpenGL Fingerprint 94C4B
\ o.O| 2F0D27DE025BE2302C
=(_)= "Thou shalt not follow the NULL pointer for 104B78C56 B72F0822
U chaos and madness await thee at its end." hkp://keys.pgp.com
Handle via comment channels only.