49 Commits

Author SHA1 Message Date
Eric Blake
e0835c041b Increase ulimit stack value to be larger than SIGSTKSZ.
* checks/stackovf.test (tmpfile): Use 300K rather than 50K, since
at least OpenBSD's sh died early from an undersized stack limit.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-08-03 14:34:31 -06:00
Eric Blake
b468fbd806 Fix missing copyright notices.
* acinclude.m4: Add copyright license details.
* c-boxes.el: Likewise.
* checks/get-them: Likewise.
* checks/check-them: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-07-17 16:55:18 -06:00
Eric Blake
8b9feabcec Adjust to c-stack changes in gnulib.
* src/Makefile.am (m4_LDADD): Use libsigsegv when available and
necessary, via LIBCSTACK.
* src/m4.c (main) [DEBUG_STACKOVF]: Make it easier to test fault
handlers.
* checks/stackovf.test: New file.
* checks/Makefile.in (CHECKS): Add stackovf.test, and factor...
(DOC_CHECKS): ...generated documentation tests into new macro.
(DISTFILES): Distribute stackovf.test.
* checks/check-them: Special-case stackovf.test.
* NEWS: Enhance the NEWS item for -L improvements.
* README: Mention the optional dependency.
* HACKING: Mention maintenance burden added by libsigsegv.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-07-17 16:17:46 -06:00
Eric Blake
f87a1e3fe9 Fix debugmode regression from 2008-04-14.
* src/input.c (pop_input): Fix -di output on end of input.
* doc/m4.texinfo (Debug Levels): Test this behavior.
(Changeword, Location): Correct examples.
* checks/check-them (examples): Update to account for recommended
location for running tests.
* doc/m4.texinfo (Debug Levels): Test this behavior.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-04-24 16:27:16 -06:00
Eric Blake
c702fdb4cb Allow 'make installcheck' with './configure --program-prefix'.
* checks/Makefile.in (program_transform_name): New macro.
(installcheck): Use it to transform name of m4 before testing.
* checks/check-them (m4): Add -m option, to allow testing m4 by a
different name.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-10 07:16:46 -06:00
Eric Blake
7319157ccd Stage 15: return argv refs back to collect_arguments.
* src/m4.h (enum token_type): Add TOKEN_ARGV.
(struct token_chain): Add skip_last member to argv link.
(next_token): Update prototype.
* src/input.c (CHAR_ARGV): New placeholder input character.
(peek_input): Add parameter, to pass $@ at once.
(next_char_1, append_quote_token): Handle $@ inside quotes.
(init_argv_token): New function.
(push_token, match_input, next_token, peek_token, lex_debug):
Update callers.
* src/macro.c (expand_input, collect_arguments): Likewise.
(expand_argument): Handle incoming $@ token.
(arg_adjust_refcount, arg_token, arg_text, make_argv_ref_token):
Handle nested $@ refs.
* src/symtab.c (symtab_debug): Update caller.
* examples/null.m4: Document more tests that are needed.  Add
tests for NUL with divert, patsubst, and regexp.
* examples/null.out: Update for new tests.
* doc/m4.texinfo (Syntax): Add test for m4exit and NUL.
* checks/get-them (AWK): Give a default value.
* checks/check-them: Allow tests to invoke child processes with
same include path.  Perform message normalization on stderr.

(cherry picked from commit 1fecefc8b990254aa667a01d12c6c7a2d716df06)

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-02-16 06:36:45 -07:00
Ralf Wildenhues
c14be5a390 Fix checks/Makefile.
* checks/Makefile.in: Use @SET_MAKE@, and use @SHELL@ rather
than hard-coding /bin/sh.
* THANKS: Update.
Reported by Lawson Chan.
2008-01-30 17:00:49 -07:00
Eric Blake
e2b843f0ac Stage 9: share rather than copy single-arg refs.
* m4/gnulib-cache.m4: Import quote and memmem modules.
* src/m4.h (arg_scratch): New prototype.
* src/input.c (INPUT_INLINE_THRESHOLD): New define.
(push_token): Use it to inline short text, and save references to
longer text.
(input_init, next_token): Simplify obstack handling.
* src/macro.c (expand_argument): Likewise.
(expand_macro): Track scratch space.
(arg_scratch): New function.
(make_argv_ref): Use it.
(push_args): Likewise, and simplify comma handling, since most
separators are short enough to be inlined.
* src/builtin.c (builtin_init): Avoid cast.
(m4_errprint, m4_index): Transparently support NUL.
(m4_translit): Use scratch space, rather than leaking memory on
expansion stack.
* doc/m4.texinfo (Syntax): Add new test of embedded NUL.
* checks/get-them: Extract test that uses external files.
* checks/check-them: Run the new test.  Use unified diff if
possible, and force text mode when debugging NUL handling.
* examples/null.m4: New file.
* examples/null.out: Likewise.
* examples/null.err: Likewise.
* examples/Makefile.am (EXTRA_FILES): Distribute these files.
* .gitattributes: Treat new files as text, in spite of embedded
NUL.

(cherry picked from commit a6c94a314afa34958330b719d66c2d4e403a94af)

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-12-20 21:59:17 -07:00
Eric Blake
e3b90fb678 Create .gitignore alongside .cvsignore.
* bootstrap (LC_ALL): Set up front.
(version control) Borrow idea from head, to avoid churn in
m4/.*ignore files modified by gnulib-tool.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-09-24 12:01:18 -06:00
Eric Blake
486fb4ada1 Normalize all GPL license notices.
* GNUmakefile: Update license wording.
* Makefile.am: Likewise.
* Makefile.maint: Likewise.
* bootstrap: Likewise.
* commit: Likewise.
* configure.ac: Likewise.
* checks/Makefile.in: Likewise.
* doc/Makefile.am: Likewise.
* examples/Makefile.am: Likewise.
* src/Makefile.am: Likewise.
* src/builtin.c: Likewise.
* src/debug.c: Likewise.
* src/eval.c: Likewise.
* src/format.c: Likewise.
* src/freeze.c: Likewise.
* src/input.c: Likewise.
* src/m4.c: Likewise.
* src/m4.h: Likewise.
* src/macro.c: Likewise.
* src/output.c: Likewise.
* src/path.c: Likewise.
* src/stackovf.c: Likewise.
* src/symtab.c: Likewise.
2007-09-21 15:51:14 -06:00
Eric Blake
8303375a81 Upgrade to GPL version 3 or later.
* bootstrap: Pick up GPLv3.
* m4/gnulib-cache.m4: Augment with 'gnulib-tool
--local-dir=. --import gpl-3.0'.
* doc/m4.texinfo (Copying This Package): New appendix.
* NEWS: Mention this change.
* README: Mention why some files still claim to be version 2.
* version-etc.c.diff: New file, to make sure --version claims
correct GPL version.  Temporary until gnulib makes move.
* gpl-3.0.texi.diff: New file, to allow inclusion of GPLv3 as
appendix, rather than section, of the manual.
* GNUmakefile: Update to new license.
* Makefile.am: Likewise.
* Makefile.maint: Likewise.
* commit: Likewise.
* configure.ac: Likewise.
* checks/Makefile.in: Likewise.
* doc/Makefile.am: Likewise.
* examples/Makefile.am: Likewise.
* src/Makefile.am: Likewise.
* src/builtin.c: Likewise.
* src/debug.c: Likewise.
* src/eval.c: Likewise.
* src/freeze.c: Likewise.
* src/input.c: Likewise.
* src/m4.c: Likewise.
* src/m4.h: Likewise.
* src/macro.c: Likewise.
* src/output.c:
2007-09-21 15:49:03 -06:00
Eric Blake
045410553c Backport prompts in examples from head.
* src/macro.c (expand_macro): Shorten message.
* doc/m4.texinfo (Manual, Command line files, Comments)
(Inhibiting Invocation, Macro Arguments, Macro expansion, Indir)
(Builtin, Shift, Forloop, Foreach, Dumpdef, Trace, Debug Levels)
(Debug Output, Include, Format, Syscmd, Mkstemp, Location)
(Using frozen files, Improved forloop, Improved foreach): Add
prompts to examples.
* checks/get-them: Ignore prompts in examples.
2007-09-21 15:48:20 -06:00
Eric Blake
3d3c14aa5a Test -s in testsuite.
* doc/m4.texinfo (Preprocessor features): Add a test.
* checks/get-them: Support extra options in testsuite.
* checks/check-them (examples): Use extra options.
* THANKS: Update.
Reported by Sergey Poznyakoff.
2007-09-21 15:48:19 -06:00
Eric Blake
659c6ff094 * src/m4.h (warn_syntax): Declare.
(init_pattern_buffer): Export.
* src/m4.c (warn_syntax, usage, WARN_SYNTAX_OPTIONS)
(long_options, main): Implement new option.
* src/builtin.c (init_pattern_buffer): Allow NULL regs argument.
(define_user_macro): Warn on $11 and ${1} if requested.
* src/input.c (init_pattern_buffer): Delete duplicate method.
* doc/m4.texinfo (Operation modes): Document it.
(Arguments): Document future direction of ${11} vs. $11.
(Incompatibilities): Fix wording on POSIX limitations.
* checks/get-them: Parse @{ and @} correctly.
* NEWS: Document this change.
2007-09-21 15:39:24 -06:00
Eric Blake
f4132de23c * m4/gnulib-cache.m4: Augment with 'gnulib-tool --import stdint'.
* checks/check-them: Record expected exit status.
* checks/get-them: Check exit status.
* src/m4.h (eval_t, unsigned_eval_t): Delete, use POSIX int32_t
instead.
* src/builtin.c: All users changed.
* src/eval.c: Likewise.  Also document where we are triggering
undefined or implementation-defined behavior.
(BADOP, NEGATIVE_EXPONENT, INVALID_OPERATOR, eval_lex, evaluate)
(logical_or_term, logical_and_term, logical_not_term, not_term)
(equality_term, unary_term): Port from head to follow POSIX
semantics.
(exp_term): Reject 0**0 as undefined.
* doc/m4.texinfo (History): Mention 1.4.9.
(Format, Incompatibilities): Update to document POSIX compliance.
* NEWS: Document this change.
2007-09-21 15:39:20 -06:00
Eric Blake
0712f6f8cb * doc/m4.texinfo: Trailing '@comment' doesn't format nicely in
TeX, so recognize '@w{ }' instead.  Likewise, @code{_name} at the
end of a TeX line splits incorrectly.
(Foreach, Improved foreach): Write these sections, borrowing ideas
from CVS head and from m4sugar.
* checks/get-them: Accomodate new way to show trailing space in
examples.
* examples/foreach.m4: Make usable in documentation.
* examples/foreachq.m4: New file.
* examples/foreachq2.m4: New file.
* examples/foreach2.m4: New file.
* NEWS: Document the documentation updates.
2007-09-21 15:27:41 -06:00
Eric Blake
f8713129a7 * checks/check-them: Quote $pwd. 2007-09-21 15:09:05 -06:00
Eric Blake
27924c9ed5 * doc/m4.texinfo (Changeword): Skip test on mingw, where the
native echo is braindead.
* checks/check-them (strip_needed): Ignore r in output.  Now the
testsuite will pass when cross-compiling from cygwin to mingw.
2007-09-21 15:09:04 -06:00
Eric Blake
e01d558de3 * checks/check-them: State why a test is skipped.
* doc/m4.texinfo (Changeword, Sysval, Maketemp): Likewise.
2007-09-21 15:05:59 -06:00
Eric Blake
dab6fefe20 * ChangeLog: Add copyright.
* AUTHORS: Likewise.
* BACKLOG: Likewise.
* README: Likewise.
* THANKS: Likewise.
* TODO: Likewise.
* examples/COPYING: New file, add copyright for all the examples.
* checks/get-them: Put copyright on testsuite files.
2007-09-21 15:05:59 -06:00
Eric Blake
c09a4b7267 * src/m4.h (program_name): Declare.
(suppress_line): New variable.
(M4ERROR_AT_LINE): New macro.
* src/m4.c (reference_error, main): Follow GNU Coding Standards
for error message format.
* src/input.c (skip_line, next_token): Use M4ERROR_AT_LINE.
* src/macro.c (expand_argument): Likewise.
* checks/check-them (examples): Adjust to new message format.
* src/builtin.c (m4___program__): New builtin.
* doc/m4.texinfo (Location): Split from Errprint into new node,
and document __program__.
(Builtin, Ifdef, Ifelse, Dumpdef, Trace, Debug Output, Dnl)
(Include, Regexp, Patsubst, Incr, Eval): Adjust error message
format.
(Extensions): Document __program__.
* NEWS: Document this change.
2007-09-21 15:05:49 -06:00
Eric Blake
1c9ef8b4b4 * doc/m4.texinfo: Whitespace fix.
* checks/get-them: Avoid exceeding 14-char file name limit.
* THANKS: Update.
2007-09-21 15:05:44 -06:00
Eric Blake
7b14699525 * doc/m4.texinfo (Errprint): Add example for last patch.
* checks/check-them): Account for VPATH in latest example.
2007-09-21 15:05:42 -06:00
Eric Blake
97cabea54f * src/builtin.c (m4_format, m4_indir): Warn on too few arguments.
* doc/m4.texinfo (Defn, Builtin, Debug Levels, Debug Output): Add
more examples.
(Dnl): Update example to show side effects.
* checks/get-them: Generate three digit test names.
* checks/Makefile.in (CHECKS): Accomodate 100+ tests.
2007-09-21 15:03:52 -06:00
Eric Blake
5846e27a22 update .cvsignore 2007-09-21 15:03:52 -06:00
Eric Blake
db2e7e2f2a * checks/get-them: Make filtering easier.
* checks/check-them: Filter non-input lines, so line counts are
more realistic in the documentation, and so changeword tests work
even when dnl is disabled.
* doc/m4.texinfo: Adjust example line numbers.  Clean up
front-matter, following autoconf's example.
(Changeword): Enable tests, skipping if changeword not supported.
(Define, Defn, Ifelse): Backport more examples from head.
(Input processing, Answers): New nodes, backported from head.
(Include): Expand test to cover empty filename.
(Undivert): Add test of undivert(0).
2007-09-21 15:02:28 -06:00
Eric Blake
8327f8e7ab * checks/check-them: Use portable = in test.
* src/Makefile.am (AM_CPPFLAGS): Omit space between -I and
directory, as required by Solaris cc.  Include built headers, as
required by Solaris make in VPATH build.
* checks/Makefile.in: Use $(srcdir) where needed.
(CHECKS): Factor $(srcdir) into macro.
(DISTFILES): Likewise.  Automake takes care of distributing
Makefile.in.
(dist): Simplify.
(Makefile): Use modern syntax of config.status.
* doc/m4.texinfo (Loops, Include, Undivert, Incompatibilities):
Avoid overfull and underfull hboxes in dvi.
2007-09-21 15:02:25 -06:00
Eric Blake
2de4dd5879 Fix 'make check' in VPATH build. All files included by testsuite
now live in a single directory.  Use forloop.m4 in testsuite.
* checks/incl.m4, checks/foo, checks/wrapfifo.m4: Move from
here...
* examples/incl.m4, examples/foo, examples/wrapfifo.m4: ...to
here.
* checks/Makefile.in (DISTFILES): Don't distribute moved files.
* examples/Makefile.am (EXTRA_DIST): Distribute new files.
* checks/check-them: Avoid s/// when filename is in pattern.
* examples/forloop.m4: Fix to match documentation.
* doc/m4.texinfo (Include, Undivert, Incompatibilities): Reflect
new locations.
(Loops, Format): Actually use forloop.m4 in tests.
2007-09-21 15:02:24 -06:00
Eric Blake
916577d5f4 * checks/Makefile.in (exec_prefix, prefix): New macros, so that
$(bindir) works in installcheck.
(check, installcheck): No longer change directory, so that
distcheck works with a read-only builddir.
* checks/check-them: Work when pwd is no longer builddir.
2007-09-21 14:58:29 -06:00
Eric Blake
82699ba09b For compatibility with other m4 implementations, sysval returns
signal<<8 rather than 0 if syscmd is terminated by a signal.
* configure.ac (AC_CHECK_HEADERS_ONCE): Check for sys/wait.h.
* src/builtin.c (include): Include sys/wait.h when stdlib.h does
not provide wait macros.
(WTERMSIG, WIFSIGNALED, WIFEXITED): More fallback macros.
(M4SYSVAL_EXITBITS, M4SYSVAL_TERMSIGBITS): New helper macros.
(m4_esyscmd): Set sysval to -1 on failure.
(m4_sysval): Print 127 on failure, and accomodate signals if they
are detectable.
* NEWS: Document this change.
* doc/m4.texinfo (Platform macros, Esyscmd, Sysval): Fix typos in
last commit.
* checks/check-them: Likewise.
* src/debug.c (debug_set_file): Work around mingw fstat bug.
2007-09-21 14:58:27 -06:00
Eric Blake
89e282c7a7 * src/m4.h (UNIX, W32_NATIVE): Improve platform detection macros.
* src/freeze.c (produce_frozen_state): Use new spelling of
platform macro.
* src/builtin.c (predefined_tab): Add __windows__ on non-unix
platforms.
(m4_syscmd, m4_esyscmd): The empty command is successful.
* doc/m4.texinfo (Shell commands): Rename from UNIX commands.
Document platform-dependence of system().
(Syscmd): Add example.
(Esyscmd): Make example more robust, and actually demonstrate
rescanning.
(Sysval): Expand test to cover esyscmd code path, and to check
that empty command is successful.  Add conditional check for
signal behavior.
(Other Incompatibilities): Move platform macros from here...
(Platform macros): ...to this new node.  Add windows macro.
Check that exactly one platform macro is provided.
* checks/check-them: Improve trap cleanup.  Tolerate dirname and
.exe in error messages.  Allow for skipping checks.
* configure.ac (HAVE_EFGCVT): Kill dead configure check.
* NEWS: Document platform mac
2007-09-21 14:58:26 -06:00
Eric Blake
81795b2967 * doc/m4.texinfo: Whitespace cleanup. TABs are evil in texinfo.
(tabchar): New macro, so that 'make check' still works.
(Invoking m4): Document that ignored compatibility options -B, -S,
and -T each consume an argument.
* checks/get-them: Honor @tabchar{}.
2007-09-21 14:58:19 -06:00
Eric Blake
d684c863d7 * checks/Makefile.in (PATH_SEPARATOR): New macro.
(check, installcheck): Use it, for OS/2.
2007-09-21 14:58:15 -06:00
Eric Blake
0399313de1 * Makefile.am (MAINTAINERCLEANFILES): Clean files added by
bootstrap.
* checks/Makefile.in (maintainer-clean): Add missing target.
* COPYING: Remove generated file from CVS.
2007-09-21 14:41:16 -06:00
Eric Blake
1559628c59 * checks/Makefile.in (DISTFILES): Distribute wrapfifo.m4. 2007-09-21 14:41:15 -06:00
Eric Blake
f55c9439a8 * checks/wrapfifo.m4: New file. Use it...
* doc/m4.texinfo (Incompatibilities): here, in a new test case to
demonstrate how to get POSIX behavior of m4wrap prior to m4 2.0.
2007-09-21 14:41:14 -06:00
Eric Blake
65adb311ce * doc/m4.texinfo (Maketemp): Work even when running 'make check'
in read-only dir.
Use automake.
* Makefile.am: New file.
* doc/Makefile.am: Ditto.
* examples/Makefile.am: Ditto.
* lib/Makefile.am: Ditto.
* src/Makefile.am: Ditto.
* acinclude.m4: New file, renamed from aclocal.m4.
* configure.ac (AM_INIT_AUTOMAKE): Invoke new macro.
(AC_ARG_PROGRAM): Now redundant.
(STACKOVF): Turn into automake conditional.
(AC_CONFIG_COMMANDS): stamp-h is a command, not a file.
* checks/Makefile.in: Converting this dir to automake was not
trivial; for now, just add missing targets demanded by top-level.
* INSTALL: Remove files that are now generated from CVS.
* Makefile.in: Ditto.
* aclocal.m4: Ditto.
* install-sh: Ditto.
* mkinstalldirs: Ditto.
* doc/Makefile.in: Ditto.
* doc/texinfo.tex: Ditto.
* examples/Makefile.in: Ditto.
* lib/Makefile.in: Ditto.
* src/Makefile.in: Ditto.
2007-09-21 14:37:41 -06:00
Eric Blake
5a1286619e Remove generated file 2007-09-21 14:28:30 -06:00
Eric Blake
37cb0b7610 .cvsignore: Update to ignore generated files 2007-09-21 14:28:30 -06:00
Eric Blake
6f349eb939 .cvsignore: Update to ignore generated files 2007-09-21 14:28:29 -06:00
Eric Blake
eb43ea9585 Make testsuite less sensitive to doc changes.
* doc/m4.texinfo: Use m4.input instead of filename.
* checks/check-them (xerr): Turn m4.input into filename.
* checks/Makefile.in (dist): Depend on stamp-checks.
2007-09-21 14:28:28 -06:00
Eric Blake
e35e8bf751 * src/m4.c (main): Bump copyright year.
* Makefile.in (datarootdir): Define, for autoconf 2.59c.
* doc/Makefile.in (datarootdir): Likewise.
2007-09-21 14:25:43 -06:00
Gary V. Vaughan
7b9f0c38ab Also, some of the files here were never updated from the previous
'675 Mass Ave, Cambridge, MA 02139', so changed those to the
'51 Franklin Street, Fifth Floor, MA 02110-1301' address too.
2007-09-21 14:21:13 -06:00
Gary V. Vaughan
d80dd34570 * Regenerate checks.
* checks/42.index: Renamed to checks/42.index_macro.
2007-09-21 14:18:32 -06:00
Gary V. Vaughan
eb49d12d48 * doc/m4.texinfo (Patsubst): Re-add trailing space required by
checks/47.patsubst, with a redundant @comment to prevent emacs
from removing it accidentally again.
* checks/get-them: Allow for trailing spaces tucked behind
@comment marks.
2007-09-21 13:42:34 -06:00
Gary V. Vaughan
1e35400cf2 Modernise the configury a little to prevent spurious errors from
Autoconf-2.59's autoreconf:

* config.h.in: Renamed to...
* config-h.in: ...this to better support DOS 8.3 file systems.
* acconfig.h: Removed.
* configure.in: Renamed to...
* configure.ac: ...this, and AC_DEFINE used to declare config.h
entry comments.  Slight reorganisation and reformatting.
* aclocal.m4: Use third argument to AC_DEFINE to declare config.h
entry comments.
(AC_INIT): Use a modern 3 argument call.
* Makefile.in, checks/Makefile.in, doc/Makefile.in,
examples/Makefile.in, lib/Makefile.in, src/Makefile.in:
s/PRODUCT/PACKAGE/g.
* Makefile.in (DISTFILES): Removed acconfig.h, configure.in,
config.h.in.  Added configure.ac, config-h.in.
(stamp-h.in): Removed acconfig.h from dependencies.
(configure): Depends on configure.ac, not configure.in.
* doc/Makefile.in (stamp-vti): Ditto.
* src/freeze.c (produce_frozen_state), src/m4.c (main): Adjust for
difference between PRODUCT="m4" and PACKAGE="GNU M4".
* configure: Regenerated.
2007-09-21 13:27:21 -06:00
Gary V. Vaughan
93ad4c046f * Release 1.4.1.
* configure.in (VERSION): Bump to 1.4.1.
* NEWS: Describe 1.4.1's changes.

* aclocal.m4 (fp_PROG_CC_STDC): Use AC_DEFUN, not define, to
pacify Autoconf 2.59.

* doc/m4.texinfo: Insert commas after @xref's that lack them,
to pacify Texinfo 4.7.
* doc/Makefile.in (info): Remove info-1, info-2, info-3.

* src/m4.h, src/debug.c: Use #ifdef __STDC__, not #if __STDC__, to
pacify Sun C compilers.

* src/symtab.c (lookup_symbol): Fix an uninitialized-variable
botch.

* examples/stackovf.sh: Use tempfile if available.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92629
* src/output.c (m4_insert_file): Do not mix buffered and
unbuffered I/O, as this breaks on the Hurd.  (trivial change)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84451
* src/m4.c (main): Fix format vulnerabilities.  (trivial change)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84416
* doc/m4.texinfo (Maketemp): Change maketemp to refer to a new,
empty file rather than to a nonexistent file.  This closes a common
security hole.
* src/builtin.c (m4_maketemp): Implement the above, by using
mkstemp rather than mktemp.  (trivial change)

* src/builtin.c (expand_ranges): Added break after trailing dash.
This caused misbehaviors on some systems.
2007-09-21 08:21:45 -06:00
Jeff Bailey
f82834e365 Import of m4-1.4 2007-09-21 07:04:48 -06:00
Jeff Bailey
bd11691d65 Initial revision 2000-02-17 03:03:19 +00:00