Andy Wingo writes: > On Tue 22 Feb 2011 20:14, BT Templeton writes: > >> Guile-SDL contains some cpp macros that define multiple subrs. To allow >> that, this patch modifies guile-snarf to recognize more than one >> initialization action per line, which is necessary because GNU's C >> preprocessor removes newlines from macro expansions. > > Thanks for the patch. I don't understand the sed; can some sedi master > check this one to make sure it's compatible with guile-snarf as it is? There is one significant difference: currently guile-snarf outputs any lines containing "^^" markers but with "^^"/"^:^" deleted, whereas my version outputs only text *between* "^^" … "^:^". This shouldn't affect programs using the snarfing macros as intended, but a line like "a;SCM_SNARF_INIT(b);" would result in the output "a;b;" with the current version and "b;" with this patch applied. > Ideally some tests would be nice, as well... How's the attached patch look?