Re: How to process stdin with Guile

2006-03-07 Thread Kevin Ryde
Torsten Bronger <[EMAIL PROTECTED]> writes: > > 1) Will the result from scm_from_locale_string() garbage-collected >cleanly? Yep. >My concern is that the program should be able to read from stdin, >too, and I question the protability of the file name >"/dev/stdin". scm_current_in

How to process stdin with Guile

2006-03-05 Thread Torsten Bronger
Hallöchen! I have a more or less finished program which reads its instructions from a script file with its own rather awkward syntax. The plan is to switch that script file format to Guile. I started with the following snippet: static void* inner_main (void *closure) { #include "scripttest.x"