This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

literals and guile -> C


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]