summaryrefslogtreecommitdiff
path: root/libguile/guile-snarf.in
Commit message (Collapse)AuthorAgeFilesLines
* guile-snarf: skip -g* arguments to avoid build failureSergei Trofimovich2017-04-191-2/+14
| | | | | | | | | * libguile/guile-snarf.in: skip -g* arguments to avoid failure on -ggdb3. Bug: https://bugs.gentoo.org/608190 Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25803 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Make snarfing tools more robust to varied C preprocessor behavior.Mark H Weaver2014-03-061-8/+11
| | | | | | | | | | | * libguile/guile-snarf.in (modern_snarf): Rewrite sed script to cope with newlines in the snarfed code segments, or multiple code segments on the same line. * module/scripts/snarf-check-and-output-texi.scm (process-stream): Strip all 'hash' tokens from the stream. (do-command): Remove special cases that handled 'hash' tokens in a few places.
* fix guile-snarfBT Templeton2011-03-201-1/+14
| | | | | | | | | | | | | | * 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.
* guile-snarf: allow multiple init actions on one lineBT Templeton2011-03-041-1/+1
| | | | | | | | | * 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.
* Merge branch 'boehm-demers-weiser-gc' into bdw-gc-static-allocbdw-gc-static-allocLudovic Courtès2009-09-021-13/+13
|\ | | | | | | | | | | Conflicts: acinclude.m4 libguile/strings.c
| * Change Guile license to LGPLv3+Neil Jerram2009-06-171-13/+13
| | | | | | | | | | | | | | | | | | | | (Not quite finished, the following will be done tomorrow. module/srfi/*.scm module/rnrs/*.scm module/scripts/*.scm testsuite/*.scm guile-readline/* )
* | Allow several `SNARF_INIT ()' per CPP output line.Ludovic Courtès2009-01-311-2/+2
|/ | | | | | * libguile/guile-snarf.in (modern_snarf): Allow several `SNARF_INIT ()' per line. This makes it possible to write snarffing macros that contain several `SNARF_INIT ()' invocations.
* guile-snarf: Honor $TMPDIR.Ludovic Courtès2008-02-121-2/+5
|
* merge from 1.8 branchKevin Ryde2006-04-171-1/+1
|
* The FSF has a new address.Marius Vollmer2005-05-231-2/+2
|
* Instead of the non-portable mktemp, use mkdir to create a uniqueMarius Vollmer2004-01-101-2/+4
| | | | | temporary directory that we can safely use. Thanks to Stefan Nordhausen!
* Use mktemp to create a truely unique temporary file name. Thanks toMarius Vollmer2004-01-101-2/+2
| | | | Stefan Nordhausen!
* Do not expect the input file to be the first argument after theMarius Vollmer2002-08-241-58/+24
| | | | | optional "-o" option, just pass everything to the pre-processor without extracting the input file name.
* Do not clean input file. This would write to the $(srcdir) during aMarius Vollmer2002-04-171-15/+2
| | | | | | | VPATH build, which is not allowed. It also isn't needed since it only works when an output filename has been specified and in that case we don't need to clean the input file because the output file will already exist.
* Install the trap for removing $cleanfile only when the value ofMarius Vollmer2002-04-161-1/+2
| | | | $cleanfile is actually known.
* When the output filename is "-", write to stdout. When no "-o" optionMarius Vollmer2002-03-241-19/+28
| | | | | | | is given, use "-" as the output filename (i.e., stdout). Only 'clean' the inputfile or remove the output file on error when the output file name is not "-". Define the preprocessor macro SCM_MAGIC_SNARFER while snarfing.
* Typofix.Thien-Thi Nguyen2002-03-151-1/+0
|
* Remove "--compat=1.4" support.Thien-Thi Nguyen2002-03-151-18/+34
| | | | | | | | | Add "-d" and "-D" support. (deprecated_list): New var. (compat_mode_clean_xxx): Delete. (grep_deprecated): New func. ("main"): If "-d" or "-D", call `grep_deprecated'.
* (modern_snarf): Remove everything following and including "^:^" fromMarius Vollmer2002-03-141-1/+1
| | | | the output.
* Update copyright.Thien-Thi Nguyen2002-03-141-15/+94
| | | | | Rewrite to internalize error handling. Add commentary.
* * alist.c, arbiters.c, async.h, backtrace.h, boolean.c, chars.c,Martin Grabmüller2001-07-191-1/+1
| | | | | | | | | | | | | | chars.h, continuations.h, debug-malloc.h, dynl.c, feature.c, feature.h, filesys.h, fluids.h, fports.h, gc_os_dep.c, gdb_interface.h, gh_eval.c, gh_funcs.c, gh_io.c, gh_list.c, gh_predicates.c, gsubr.c, gsubr.h, guardians.h, guile-func-name-check.in, guile-snarf-docs-texi.in, guile-snarf-docs.in, guile-snarf.awk.in, guile-snarf.in, hashtab.h, iselect.h, keywords.h, lang.c, list.h, load.h, objprop.c, objprop.h, options.c, options.h, random.h, regex-posix.h, root.c, root.h, script.c, snarf.h, stackchk.c, strerror.c, strop.h, strports.h, threads.h, values.c, values.h, version.c, version.h: Updated copyright notice.
* * filter-doc-snarfage.c, guile-snarf.in: try to cope with spacesMichael Livshin2001-06-081-1/+1
| | | | inside cookies. thanks to Matthias Köppe!
* * guile-snarf-docs.in, guile-snarf-docs-texi.in,Michael Livshin2001-05-311-2/+2
| | | | | | | | | | | | | | | filter-doc-snarfage.c: new files. * Makefile.am: add stuff to [build,] use and distribute guile-snarf-docs, guile-snarf-docs-texi, guile_filter_doc_snarfage. * guile-snarf.in: grok the new snarf output. * snarf.h: make the output both texttools- and `read'-friendly. * guile-doc-snarf.in (bindir): reimplement in terms of guile-snarf and guile-snarf-docs. (should also deprecate, I guess. maybe not).
* Added copyright and licence notice.Marius Vollmer2001-02-211-0/+17
|
* * Renamed SCM__X tokens to better readable ones that also follow theDirk Herrmann2000-06-211-1/+1
| | | | SCM_SNARF_ prefix convention.
* * guile-snarf.in: Change regexp "^SCM__I" --> "^ *SCM__I".Mikael Djurfeldt2000-06-121-1/+1
| | | | (The preprocessor might insert spaces before the identifier.)
* * snarf.h, guile-snarf.awk.in, guile-snarf.in: Replaced snarfMikael Djurfeldt2000-06-081-1/+1
| | | | | markers with identifiers (SCM__I, SCM__D, SCM__S, SCM__E). (Thanks to Bernard Urban.)
* * guile-snarf.awk.in, guile-snarf.in: Made to work also forMikael Djurfeldt2000-06-081-1/+1
| | | | | | | | preprocessors which interpret $$$ and other markers as three separate tokens and puts spaces in between. NOTE: We could replace %%% etc with real identifiers. However, before the 1.4 release, we instead make minimal changes to the existing system. (Thanks to Bernard Urban.)
* * snarf.h: Drop SCM_PROC, SCM_PROC1. Added extra output forGreg J. Badros1999-12-121-1/+1
| | | | | | | | | | | | | | | | | | guile-doc-snarf script. * guile-doc-snarf.in, guile-doc-snarf.awk: New, simple doc extraction system. Builds foo.x, foo.doc from foo.{c,cc}. There are dependencies between these files and snarf.h. This replaces guile-snarf. * guile-snarf.in: Drop everything after $$$ for the new snarf.h macros. This is obsoleted by guile-doc-snarf, but kept here for now for good measure. * Makefile.am: Added guile-doc-snarf, guile-doc-snarf.awk to bin_SCRIPTS. Added .doc to SUFFIXES, and give rule for creating .doc files to use guile-doc-snarf. Update the rule for creating .x files to use guile-doc-snarf.
* * guile-snarf.in: Be sure to exit with an error if CPP does.Jim Blandy1999-09-051-1/+8
| | | | | | * Makefile.am (.c.x): Delete the .x file and exit with an error status if guile-snarf exits with an error status. * Makefile.in: Regenerated.
* * guile-snarf.in: Never generate an empty file. (Thanks toJim Blandy1998-10-241-1/+7
| | | | | | | | | | Richard Polton.) Bug reports from Russ McManus: * guile-snarf.in: If the CPP environment variable is set, use that as the C preprocessor, instead of the preprocessor autoconf found. * snarf.h (SCM_PROC): Cast the function pointer passed to scm_make_gsubr, to satisfy C++.
* * guile-snarf.in: Pass args through to gcc in a way that preservesJim Blandy1997-12-031-1/+1
| | | | whitespace boundaries. (Thanks to Greg Badros.)
* Fixed Guile snarfing problem with SunPro suite.Tim Pierce1997-06-201-1/+1
|
* guile-snarf script once again used for creating .x filesTom Tromey1996-12-101-0/+4