fix guile-snarf
authorBT Templeton <bpt@hcoop.net>
Sun, 20 Mar 2011 03:21:06 +0000 (23:21 -0400)
committerAndy Wingo <wingo@pobox.com>
Sun, 20 Mar 2011 09:22:44 +0000 (10:22 +0100)
commit95c1cfb550e2e753324c5cc57ef5df90034f072a
treee5f005e8b17f1f955a29e87c7533e588a113c008
parent13f1461c2417cc80f050beb4c11a94deb60defae
fix guile-snarf

* libguile/snarf.h: New macro `SCM_SNARF_INIT_PREFIX'. (SCM_SNARF_INIT)
  Use `SCM_SNARF_INIT_PREFIX' instead of including a literal marker. If
  the preprocessor echoes #define directives to its output, this will
  prevent `guile-snarf' from snarfing the `SCM_SNARF_INIT' definition
  itself. Reported by Mike Gran <spk121@yahoo.com>.
* libguile/guile-snarf.in (modern_snarf): Don't output anything for
  lines in which only one of the magic snarfing markers is present.
  Modify the `sed' program for compatibility with POSIX `sed'. The new
  `sed' program is based on a version by Wolfgang Jenkner
  <wjenkner@inode.at>.
* test-suite/standalone/test-guile-snarf: New tests.
libguile/guile-snarf.in
libguile/snarf.h
test-suite/standalone/test-guile-snarf