Parsing a struct within a struct

2011-03-07 Thread Aidan Gauland
Hello, I'm trying to write a game in Guile Scheme using SDL, and I'm having trouble parsing a C struct within a struct. (The files for my program are in the attached tarball, for those with the time to examine it that closely.) This is how the struct is parsed... (parse-c-struct event-pointer

regex-split for Guile

2011-03-07 Thread William James
Tested under Guile 1.8.7. (define (regex-split regexp str . options) (let ((keep #f) (trim #f)) (if (member 'keep options) (begin (set! options (delete 'keep options)) (set! keep #t))) (if (member 'trim options) (begin (set! options (delete 'trim options))