summaryrefslogtreecommitdiff
path: root/libguile/guile-snarf.in
Commit message (Expand)AuthorAgeFilesLines
* Make snarfing tools more robust to varied C preprocessor behavior....* 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. Mark H Weaver2014-03-061-8/+11
* 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. BT Templeton2011-03-201-1/+14
* 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. BT Templeton2011-03-041-1/+1
* Merge branch 'boehm-demers-weiser-gc' into bdw-gc-static-alloc...Conflicts: acinclude.m4 libguile/strings.c Ludovic Courtès2009-09-021-13/+13
|\
| * Change Guile license to LGPLv3+...(Not quite finished, the following will be done tomorrow. module/srfi/*.scm module/rnrs/*.scm module/scripts/*.scm testsuite/*.scm guile-readline/* ) Neil Jerram2009-06-171-13/+13
* | Allow several `SNARF_INIT ()' per CPP output line....* 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. Ludovic Courtès2009-01-311-2/+2
|/
* 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 unique...temporary directory that we can safely use. Thanks to Stefan Nordhausen! Marius Vollmer2004-01-101-2/+4
* Use mktemp to create a truely unique temporary file name. Thanks to...Stefan Nordhausen! Marius Vollmer2004-01-101-2/+2
* Do not expect the input file to be the first argument after the...optional "-o" option, just pass everything to the pre-processor without extracting the input file name. Marius Vollmer2002-08-241-58/+24
* Do not clean input file. This would write to the $(srcdir) during a...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. Marius Vollmer2002-04-171-15/+2
* Install the trap for removing $cleanfile only when the value of...$cleanfile is actually known. Marius Vollmer2002-04-161-1/+2
* When the output filename is "-", write to stdout. When no "-o" option...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. Marius Vollmer2002-03-241-19/+28
* Typofix.Thien-Thi Nguyen2002-03-151-1/+0
* Remove "--compat=1.4" support....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'. Thien-Thi Nguyen2002-03-151-18/+34
* (modern_snarf): Remove everything following and including "^:^" from...the output. Marius Vollmer2002-03-141-1/+1
* Update copyright....Rewrite to internalize error handling. Add commentary. Thien-Thi Nguyen2002-03-141-15/+94
* * alist.c, arbiters.c, async.h, backtrace.h, boolean.c, chars.c,... 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. Martin Grabmüller2001-07-191-1/+1
* * filter-doc-snarfage.c, guile-snarf.in: try to cope with spaces...inside cookies. thanks to Matthias Köppe! Michael Livshin2001-06-081-1/+1
* * guile-snarf-docs.in, guile-snarf-docs-texi.in,...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). Michael Livshin2001-05-311-2/+2
* Added copyright and licence notice.Marius Vollmer2001-02-211-0/+17
* * Renamed SCM__X tokens to better readable ones that also follow the... SCM_SNARF_ prefix convention. Dirk Herrmann2000-06-211-1/+1
* * guile-snarf.in: Change regexp "^SCM__I" --> "^ *SCM__I"....(The preprocessor might insert spaces before the identifier.) Mikael Djurfeldt2000-06-121-1/+1
* * snarf.h, guile-snarf.awk.in, guile-snarf.in: Replaced snarf...markers with identifiers (SCM__I, SCM__D, SCM__S, SCM__E). (Thanks to Bernard Urban.) Mikael Djurfeldt2000-06-081-1/+1
* * guile-snarf.awk.in, guile-snarf.in: Made to work also for...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.) Mikael Djurfeldt2000-06-081-1/+1
* * snarf.h: Drop SCM_PROC, SCM_PROC1. Added extra output for...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. Greg J. Badros1999-12-121-1/+1
* * guile-snarf.in: Be sure to exit with an error if CPP does....* 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. Jim Blandy1999-09-051-1/+8
* * guile-snarf.in: Never generate an empty file. (Thanks to...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++. Jim Blandy1998-10-241-1/+7
* * guile-snarf.in: Pass args through to gcc in a way that preserves...whitespace boundaries. (Thanks to Greg Badros.) Jim Blandy1997-12-031-1/+1
* 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