On 07/11/2010 07:22 PM, Arno Waschk wrote:
Thanks again, that wokrs at least for some displaying, buit still i need that handy conversion from this type of scheme list into something i can deal with with c.
Please!!!

No, no, the main question is, what are you going to do with that "something"? Ok, the keys are probably Scheme strings, so you can transform them into UTF byte-arrays which you can then feed into functions like "printf". But in Scheme, you frequently work with lists of things (lists themselves, or atoms) -- this is what a "data structure" looks like. So when you say "something i can DEAL with with c", what exactly is this DEALing you want to do? And with which objects? some of them are Scheme wrappers around C structs. For those, there is smob/unsmob. But for true Scheme data structures, you really want to deal with them using Scheme code -- that is, using scm_call_X(), as Carl already suggested.

Boris


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to