mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-21 03:00:19 +02:00
guile-snarf: allow multiple init actions on one line
* libguile/guile-snarf.in (modern_snarf): Allow programs to specify multiple initialization actions on a single line. This makes it possible for C programs to define multiple subrs with a single macro invocation. * test-suite/standalone/test-guile-snarf: Enable more tests.
This commit is contained in:
parent
2dea6a4d33
commit
fd029c35de
2 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ modern_snarf () # writes stdout
|
|||
## empty file.
|
||||
echo "/* cpp arguments: $@ */" ;
|
||||
${cpp} -DSCM_MAGIC_SNARF_INITS -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
|
||||
grep "^ *\^ *\^" ${temp} | sed -e "s/ *\^ *\^//g" -e "s/\^ *: *\^/;/g"
|
||||
sed -ne "s/ *\^ *: *\^/\n/;s/[^\n]*\^ *\^ *\([^\n]*\)/\1;/;tx;d;:x;P;D" ${temp}
|
||||
}
|
||||
|
||||
## main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue