file magic

2011-11-01 Thread dsmich
Greetings Guilers, The other day I happened to run the file command on some .go files, and they show up as the rather unhelpful "data". So I added some bits to my /etc/magic file: 0 string GOOF Guile Object >8 string LE little endian >8 string BE big endian >11

Accessing multiple values from C

2011-11-01 Thread Julian Graham
Hey all, I was playing around with some C code that uses the new R6RS bytevector ports, and I noticed that there doesn't seem to be an easy way (a la `let-values' or `receive') to access multiple return values from C. I've resorted to doing: scm_struct_ref (foo, SCM_INUM0); ...which is almost

Re: file magic

2011-11-01 Thread Ludovic Courtès
Hi Dale! skribis: > The other day I happened to run the file command on some .go files, and they > show up as the rather unhelpful "data". So I added some bits to my > /etc/magic file: > > 0 string GOOF Guile Object >>8 string LE little endian >>8 string BE big

Re: Accessing multiple values from C

2011-11-01 Thread Ludovic Courtès
Hi, Julian Graham skribis: > I was playing around with some C code that uses the new R6RS > bytevector ports, and I noticed that there doesn't seem to be an easy > way (a la `let-values' or `receive') to access multiple return values > from C. I've resorted to doing: > > scm_struct_ref (foo,