?????????? ????????? - ??????????????? - /home/agenciai/public_html/cd38d8/m4.zip
???????
PK en�[M��F$ $ TODOnu �[��� TODO file for GNU m4 Tell <bug-m4@gnu.org> if you feel like volunteering for any of these ideas, listed more or less in decreasing order of priority. * Features or problems - Fix format() builtin to handle %c more like printf(1) in the shell http://lists.gnu.org/archive/html/bug-m4/2007-05/msg00047.html Also, gnulib needs help to overcome mingw bugs related to format(). - Update documentation from accumulated mail about it - Study synclines at the very beginning of each diverted sequence - Make eval work on bignums - the 32 bits limit is artificial From Krste Asanovic <krste@icsi.berkeley.edu>, 1993-03-20 * Optimization and clean up - Check for memory leaks and uninitialized reads From Vern Paxson <vern@horse.ee.lbl.gov> on 1993-12-06 - Profile GNU m4 and speed it up From David J. MacKenzie <djm@eng.umd.edu>, 1993-01-20 GNU m4 should be sped up by a factor of three for competing with other versions (I think that the lexer is not agressive enough and too often return single characters; obstacks might be a little abused, too). - Have NULs go really undisturbed through GNU m4 See `dumpdef' and debugging section, which abuses %s From Thorsten Ohl <ohl@chico.harvard.edu>, 1992-12-21 path.c (add_include_directory): Why the '\0' terminator? GNU m4 is lousy regarding NULs in streams (this would require maintaining the string lengths, and avoiding strlen, strcpy, etc.). Local Variables: mode: outline outline-regexp: " *[-+*.] \\|" End: Copyright (C) 2000, 2006-2007, 2009-2014, 2016-2017, 2020-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the ``GNU Free Documentation License'' file as part of this distribution. PK en�[0Ҭ�y �y NEWSnu �[��� GNU M4 NEWS - User visible changes. * Noteworthy changes in release 1.4.19 (2021-05-28) [stable] ** A number of portability improvements inherited from gnulib, including the ability to perform stack overflow detection on more platforms without linking to GNU libsigsegv. * Noteworthy changes in release 1.4.18d (2021-05-11) [beta] ** A number of portability improvements inherited from gnulib. * Noteworthy changes in release 1.4.18b (2021-05-07) [beta] ** The symbol hash table now defaults to 65537 buckets instead of 509, as modern systems have enough memory to benefit from fewer hash collisions by default. ** Introduce the use of gettext, with the immediate benefit of nicer UTF-8 author names. Over time, more translations of program messages will become available. ** A number of portability improvements inherited from gnulib. * Noteworthy changes in release 1.4.18 (2016-12-31) [stable] ** Diagnose --word-regexp as unsupported if it was not configured. ** Preliminary support for OS/2. ** A number of portability improvements inherited from gnulib. * Noteworthy changes in release 1.4.17 (2013-09-22) [stable] ** Fix compilation with newer glibc headers. ** Fix a failure with diverting large amounts of text on mingw (does not affect platforms that can rename an open file). ** A number of portability improvements inherited from gnulib. * Noteworthy changes in release 1.4.16 (2011-03-01) [stable] ** Fix regressions in the `index' builtin. On glibc platforms, this avoids false positives from a strstr bug in glibc 2.9 through 2.12; on many other platforms, it fixes two separate regressions, a false positive introduced in 1.4.11 and a false negative in 1.4.15. ** A number of portability improvements inherited from gnulib. * Noteworthy changes in release 1.4.15 (2010-08-31) [stable] ** Fix regression introduced in 1.4.9b where the `format' builtin could crash on an invalid format string. ** Fix compilation against newer glibc, and on AIX 7.1BETA. ** A number of portability improvements inherited from gnulib. * Noteworthy changes in Version 1.4.14 (2010-02-24) [stable] Released by Eric Blake, based on git version 1.4.13.* ** Fix regression introduced in 1.4.12 where executing with stdout closed could crash m4 on exit on some platforms. ** Fix regressions introduced in 1.4.13 in the `esyscmd' builtin, where closed file descriptors could interfere with child execution, and where a child status of 127 made m4 print a spurious message to stderr. ** Fix a security hole in 'make dist', present since at least M4 1.4, that could affect anybody attempting to redistribute modified sources (see Automake CVE-2009-4029). ** A number of portability improvements inherited from gnulib. * Noteworthy changes in Version 1.4.13 (2009-04-01) [stable] Released by Eric Blake, based on git version 1.4.12.* ** The manual is now distributed under the terms of FDL 1.3. ** The `divert' and `undivert' builtins have been made more efficient when using temporary files for large diversions. ** The `translit' builtin has been made more efficient when the second argument is short. ** The input engine has been optimized for faster processing. ** The command line option `--debugfile', introduced in 1.4.7, now treats its argument as optional, in order to allow setting the debug output back to stderr when used without an argument; and order is now significant with respect to command line files. You must therefore use `m4 --debugfile=trace file', not `m4 file --debugfile trace'. This change does not affect the deprecated `-o'/`--error-output' option. ** The `syscmd' and `esyscmd' builtins can be configured to use an alternate shell, via the new `configure' option `--with-syscmd-shell'. ** A number of portability improvements inherited from gnulib. * Noteworthy changes in Version 1.4.12 (2008-10-10) [stable] Released by Eric Blake, based on git version 1.4.11.* ** Fix regression introduced in 1.4.4b where using `traceon' could delete a macro. This was most noticeable with `traceon(`traceon')', but would also happen in cases such as `foo(traceon(`foo'))'. ** Fix regression introduced in 1.4.7 where `m4 -N9' died with an assertion failure. ** Fix regression introduced in 1.4.11 where `defn' died with an assertion failure on a traced but undefined macro. ** New `-g'/`--gnu' command-line option overrides `-G'/`--traditional'. For now, the environment variable POSIXLY_CORRECT has no effect on M4 behavior; but a future release of M4 will behave as though --traditional is implied if POSIXLY_CORRECT is set (this future change is necessary, because in the current release, there is no way to disable GNU extensions that conflict with POSIX without the use of a non-POSIX command-line argument). Clients of M4 that want to use GNU extensions, even when POSIXLY_CORRECT is set, should start using the -g command-line argument, even though it is currently a no-op if -G did not appear earlier in the command line, so that the client will not break in the face of an upgraded m4 and a POSIXLY_CORRECT execution environment. ** The `-L'/`--nesting-limit' command-line option now defaults to 0 for unlimited on platforms that can detect and deal with stack overflow. On systems that lack alternate stack support, such as Cygwin, and on systems that do not obey the POSIX semantics for distinguishing stack overflow from other exceptions, such as Linux, you can optionally install the libsigsegv library (version 2.6 or newer recommended) to enhance m4's ability to accurately report stack overflow: https://www.gnu.org/software/libsigsegv/ ** A number of portability improvements inherited from gnulib. * Noteworthy changes in Version 1.4.11 (2008-04-02) [stable] Released by Eric Blake, based on git version 1.4.10a ** Security fixes for the -F option, for bugs present since -F was introduced in 1.3: Avoid core dump with 'm4 -F file -t undefined', and avoid arbitrary code execution with certain file names. ** Fix regression introduced in 1.4.9b in the `divert' builtin when more than 512 kibibytes are saved in diversions on platforms like NetBSD or darwin where fopen(name,"a+") seeks to the end of the file. ** The output of the `maketemp' and `mkstemp' builtins is now quoted if a file was created. This is a minor security fix, because it was possible (although rather unlikely) that an unquoted string could match an existing macro name, such that use of the `mkstemp' output would trigger inadvertent macro expansion and operate on the wrong file name. ** Enhance the `defn' builtin to support concatenation of multiple text arguments, as required by POSIX. However, at this time, it is not possible to concatenate a builtin macro with anything else; a warning is now issued if this is attempted, although a future version of M4 may lift this restriction to match other implementations. ** Enhance the `format' builtin to parse all C99 floating point numbers, even on platforms where strtod(3) is buggy, although the replacement function does have the known issue of rounding errors when parsing some decimal floating point values. This fixes testsuite failures introduced in 1.4.9b. ** Enhance the `index' builtin to guarantee linear behavior, in spite of the surprisingly large number of systems with a brain-dead quadratic strstr(3). ** A number of portability improvements inherited from gnulib. * Noteworthy changes in Version 1.4.10 (2007-07-09) [stable] Released by Eric Blake, based on CVS version 1.4.9c ** Upgrade from GPL version 2 to GPL version 3 or later. ** A number of portability improvements inherited from gnulib. ** Avoid undefined behavior introduced in 1.4.9b in the `format' builtin when handling %c. However, this area of code has never been documented, and currently does not match the POSIX behavior of printf(1), so it may have further changes in the next version. * Noteworthy changes in Version 1.4.9b (2007-05-29) [beta] Released by Eric Blake, based on CVS version 1.4.9a ** Fix regression introduced in 1.4.9 in the `eval' builtin when performing division. ** Fix regression introduced in 1.4.8 in the `-F' option that made it impossible to freeze more than 512 kibibytes of diverted text. ** The synclines option `-s' no longer generates sync lines in the middle of multiline comments or quoted strings. ** Work around a number of corner-case POSIX compliance bugs in various broken stdio libraries. In particular, the `syscmd' builtin behaves more predictably when stdin is seekable. ** The `format' builtin now understands formats such as %a, %A, and %'hhd, and works around a number of platform printf bugs. Furthermore, the sequence format(%*.*d,-1,-1,1) no longer outputs random data. However, some non-compliant platforms such as mingw still have known bugs in strtod that may cause testsuite failures. ** The testsuite is improved to also run gnulib portability tests for the features that M4 imports from gnulib. * Noteworthy changes in Version 1.4.9 (2007-03-23) [stable] Released by Eric Blake, based on CVS version 1.4.8c ** Minor documentation and portability cleanups. * Noteworthy changes in Version 1.4.8b (2007-02-24) [beta] Released by Eric Blake, based on CVS version 1.4.8a ** Fix a regression introduced in 1.4.8 that made m4 unable to process files larger than 2GiB on some platforms. ** Fix a regression introduced in 1.4.8 that made m4 dump core when invoked as 'm4 -- file'. ** The `eval' builtin now follows C precedence rules. Additionally, the short-circuit operators correctly short-circuit division by zero. The previously undocumented alias of '=' meaning '==' in eval now triggers a deprecation warning, so that a future version of M4 can implement a form of variable assignment as an extension. ** The `include' builtin now affects exit status on failure, as required by POSIX. Use `sinclude' if you need a successful exit status. ** The `-E'/`--fatal-warnings' command-line option now has two levels. When specified only once, warnings affect exit status, but execution continues, so that you can see all warnings instead of fixing them one at a time. To achieve 1.4.8 behavior, where the first warning immediately exits, specify -E twice on the command line. ** A new `--warn-macro-sequence' command-line option allows detection of sequences in `define' and `pushdef' definitions that match an optional regular expression. The default regular expression is `\$\({[^}]*}\|[0-9][0-9]+\)', corresponding to the sequences that might not behave correctly when upgrading to the eventual M4 2.0. By default, M4 2.0 will follow the POSIX requirement that a macro definition containing `$11' must expand to the first argument concatenated with 1, rather than the eleventh argument; and will take advantage of the POSIX wording that allows implementations to treat `${11}' as the eleventh argument instead of literal text. Be aware that Autoconf 2.61 will not work with this option enabled with the default regular expression; but Autoconf 2.62 will be compatible with this option. ** Improved portability to platforms such as BSD/OS and AIX. * Noteworthy changes in Version 1.4.8 (2006-11-20) [stable] Released by Eric Blake, based on CVS version 1.4.7a ** The `divert' macro and `-H'/`--hashsize' command line option no longer cause a core dump when handed extra large values. Also, `divert' now uses memory proportional to the number of diversions in use, rather than to the maximum diversion number encountered, so that large diversion numbers are less likely to exhaust system memory; and is no longer limited by the maximum number of file descriptors. ** The `--help' and `--version' command line options now consistently override all earlier options. For example, `m4 --debugfile=trace --help' now no longer accidentally creates an empty file `trace'. ** The `-L'/`--nesting-limit' command line option can now be set to 0 to remove the default limit of 1024. However, it is still possible that heavily nested input can cause abrupt program termination due to stack overflow. ** Problems encountered when writing to standard error, such as with the `errprint' macro, now always cause a non-zero exit status. ** Warnings and errors issued during macro expansion are now consistently reported at the line where the macro name was detected, rather than where the close parenthesis resides. Text wrapped by `m4wrap' now remembers the location that was in effect when m4wrap was invoked, rather than changing to line 0 and the empty string for a file. The macros `__line__' and `__file__' now work correctly even as the last token in an included file. ** The `builtin' and `indir' macros now transparently handle builtin tokens generated by `defn'. ** When diversions created by the `divert' macro collect enough text that M4 must use temporary files, the environment variable $TMPDIR is now consulted, and a better effort is made to clean up those files in the event of a fatal signal. ** The `mkstemp' builtin is added with the same GNU semantics as `maketemp', based on the recommendation of POSIX to deprecate the POSIX semantics of `maketemp' as inherently insecure. In GNU mode (no -G supplied on the command line), `maketemp' silently retains the secure GNU semantics, but a future release of M4 will change this to emit a warning. In traditional mode (m4 -G), `maketemp' now uses the POSIX-mandated insecure semantics, and issues a warning that you should convert your script to use `mkstemp' instead. Additionally, `mkstemp' and `maketemp' are now well-defined even if the template argument does not end in six `X' characters. ** The manual has been improved, including a new section on a composite macro `foreach'. ** The `changecom' and `changequote' macros now treat an empty second argument the same as if it were missing, rather than using the empty string and making it impossible to end a comment or quote. ** The `translit' macro now operates in linear instead of quadratic time, and is now eight-bit clean. ** The `-D', `-U', `-s', and `-t' command line options now take effect after any files encountered earlier on the command line, rather than up front, as is done in traditional implementations and required by POSIX. * Noteworthy changes in Version 1.4.7 (2006-09-25) [stable] Released by Eric Blake, based on CVS version 1.4.6a ** Fix regression from 1.4.5 in handling a file that ends in a macro expansion without arguments instead of a newline. ** The define and pushdef macros now warn when the first argument is not a string, rather than silently doing nothing. ** Standard input can now be read more than once, as in 'm4 - file -', and is not closed until all wrapped text is handled. This makes a difference when stdin is not a regular file, and also fixes bugs when using the syscmd or esyscmd macros from wrapped text. ** When standard input is a seekable file, the m4exit, syscmd, and esyscmd macros now restore the current position to the next unread byte rather than discarding an arbitrary amount of buffered data. ** SysV command-line compatibility is no longer a goal of GNU M4; the focus will be instead on POSIX compatibility. This release continues to support previous usage, but adds warnings in areas which will allow a future version of GNU M4 to use its own extensions without being tied to the SysV command line interface. ** The no-op compatibility command line options -B, -N, -S, -T, and --diversions may be withdrawn or assigned new meanings in future releases, so they now issue a warning if used. ** A new command line option -i replaces the compatibility -e as the short spelling of --interactive, for consistency with other GNU tools; a warning is issued if the old spelling is used, and it may be assigned new meaning in future releases. ** A new command line option --debugfile replaces the options -o and --error-output as the preferred spelling. The old options were misleading in their names and inconsistent with other GNU tools; they are still silently accepted, but no longer documented in --help, and may be assigned new meanings in future releases. * Noteworthy changes in Version 1.4.6 (2006-08-25) [stable] Released by Eric Blake, based on CVS version 1.4.5a ** Fix buffer overruns in regexp and patsubst macros when handed a trailing backslash in the replacement text, or when handling \n substitutions beyond the number of \(\) groups. ** Fix memory leak in regexp, patsubst, and changeword macros. ** The format macro now understands %F, %g, and %G. ** When loading frozen files, m4 now exits with status 63 if version mismatch is detected. ** Fix bugs that occurred when invoked with stdout or stderr closed, and detect write failures to stdout or to the target of the debugfile macro. In particular, the syscmd and esyscmd macros can no longer interfere with the debug stream or diversions. ** The m4exit macro now converts values outside the range 0-255 to 1. ** It is now an error if a command-line input file ends in the middle of a comment, matching the behavior of mid-string and mid-argument collection. ** The dnl macro now warns if end of file is encountered instead of a newline. ** The error message when end of file is encountered now uses the file and line where the dangling construct started, rather than `NONE:0:'. ** The debugmode and __file__ macros, and the -s/--synclines option, now show what directory a file was found in when the -I/--include option or M4PATH variable had an effect. ** The changequote and changecom macros now work with 8-bit characters, and quotes and comments that begin with `(' are properly recognized following a word. ** The new macro __program__ is added, which allows the input file to issue an error message that resembles messages from m4. Warning and error messages have been reformatted to comply with GNU Coding Standards. ** The errprint, m4wrap, and shift macros are now recognized only with arguments. ** The index, substr, translit, regexp, and patsubst macros now produce output when given only one argument, but still warn about a missing second argument. ** The patsubst macro now reliably finds zero-length matches at the end of a string. * Noteworthy changes in Version 1.4.5 (2006-07-15) [stable] Released by Eric Blake, based on CVS version 1.4.4c ** Fix sysval on BeOS, OS/2, and other systems that store exit status in the low-order byte. Additionally, on Unix platforms, if syscmd was terminated by a signal, sysval now displays the signal number shifted left by eight bits, to match traditional m4 implementations. ** The maketemp macro is no longer subject to platform limitations (such as 26 or 32 max files from a given template). ** Frozen files now require that the first directive be V (version), to better diagnose version mismatch. Additionally, if the F directive (builtin function) names an unknown builtin that existed in the m4 that froze the file but not in the current m4 (for example, changeword), the warning is deferred until an attempt is made to actually use the builtin. This allows downgrading from beta m4-1.4o to stable m4-1.4.5 without breaking autoconf. ** The format and indir macros are now recognized only with arguments. ** The eval macro no longer crashes on x86 architectures when dividing the minimum integer by -1. ** On systems with ecvt and fcvt, format no longer truncates trailing zeroes on integers printed with %.0f. On systems without these functions, format is no longer subject to a buffer overflow that permitted arbitrary code execution. ** On native Windows builds, the macro __windows__ is provided instead of __unix__. Likewise, on OS/2 builds, the macro __os2__ is provided. This allows input files to determine when syscmd might behave differently. ** Fix bug in 1.4.3 patch to use \n line-endings that did not work for cygwin. ** When given the empty string or 0, undivert is now documented as a no-op rather than closing stdout, warning about a non-existent file, or trying to read a directory as a file. ** Many documentation improvements. Also, the manual is now distributed under FDL 1.2, rather than a stricter verbatim-only license. ** Raise the -L (--nesting-limit) command line option limit from 250 to 1024. ** The decr, incr, divert, m4exit, and substr macros treat an empty number as 0, issue a warning, and expand as normal; rather than issuing an error and expanding to the empty string. ** The eval macro now treats an empty radix argument as 10, handles radix 1, and treats the width argument as number of digits excluding the sign, for compatibility with other m4 implementations. ** The ifdef, divert, m4exit, substr, and translit macros now correctly ignore extra arguments. ** The popdef and undefine macros now correctly accept multiple arguments. ** Although changeword is on its last leg, if enabled, it now reverts to the default (faster) regexp when passed the empty string. ** The regexp and substr macros now warn and ignore a trailing backslash in the replacement, and warn on \n for n larger than the number of sub-expressions in the regexp. * Noteworthy changes in Version 1.4.4b (2006-06-17) [beta] Released by Eric Blake, based on CVS version 1.4.4a ** Fix a recursive push_string crashing bug, which affected changequote of three or more characters on some compilers. ** Use automake to fix build portability issues. ** Fix a recursive m4wrap crashing bug. ** Fix a 1 in 2**32 hash crashing bug. ** Tracing a macro by name is now persistent, even if the macro is subsequently undefined or redefined. The traceon and traceoff macros no longer warn about undefined symbols. This solves a crash when using indir on an undefined macro traced with the -t option, as well as an incorrect result of ifdef. Furthermore, tracing is no longer transferred with builtins, solving the bug of "m4 -tm4_eval" failing to give trace output on the input "define(`m4_eval',defn(`eval'))m4_eval(1)". ** Fix a crash when a macro is undefined while collecting its arguments, by always using the definition that was in effect before argument collection. This behavior matches the C pre-processor, and means that the sequence "define(`f',`1')f(define(`f',`2'))f" is now documented to result in "12", rather than the previously undocumented "22". ** Update the regex engine to fix several bugs. ** Fix a potential crash on machines where char is signed. * Noteworthy changes in Version 1.4.4 (Oct 2005) [stable] Released by Gary V. Vaughan ** ./configure --infodir=/usr/share/info now works correctly. ** When any file named on the command line is missing exit with status 1. * Noteworthy changes in Version 1.4.3 (Mar 2005) [stable] Released by Gary V. Vaughan ** DESTDIR installs now work correctly. ** Don't segfault with uncompilable regexps to changeword(). ** Always use \n line-endings for frozen files (fixes a Windows bug). ** Portability fix for systems lacking mkstemp(3). ** Approximately 20% speed up in the common case of usage with autoconf. ** Supported on QNX 6.3. * Noteworthy changes in Version 1.4.2 (Aug 2004) [stable] Released by Paul Eggert ** No user visible changes; portability bug fixes only. * Noteworthy changes in Version 1.4.1 (Jun 2004) [stable] Released by Paul Eggert ** maketemp now creates an empty file with the given name, instead of merely returning the name of a nonexistent file. This closes a security hole. * Noteworthy changes in Version 1.4 (Oct 1994) [stable] Released by Franc,ois Pinard ** (No user visible changes) Version 1.3 - September 1994, by Franc,ois Pinard * Diversions are created as needed. Option `-N' is still accepted, but otherwise ignored. Users should use only negative diversion numbers, instead of high positive numbers, for diverting to nowhere. * Diversions should also work faster. No temporary files will be needed at all if all diversions taken altogether do not use more than 512K. * Frozen state files may be produced with the `--freeze-state' (-F) option and later brought back through the `--reload-state' (-R) option. Version 1.2 - July 1994, by Franc,ois Pinard * In patsubst(STRING, REGEXP, REPLACEMENT), \& in REPLACEMENT has been changed to represent this part of STRING matched by the whole REGEXP, instead of the whole STRING as before. \0 does the same, but emits a diagnostic saying it will disappear in some subsequent release. * eval(EXPR) emits a diagnostic if EXPR has suffixed crumb. The same for other numeric conversions in incr(), decr(), divert(), etc. * `--fatal-warnings' (-E) stops execution at first warning. * `--nesting-limit=LEVEL' (-L LEVEL) sets a limit to macro nesting. It is initially fixed at 250. * `--word-regexp=REGEXP' (-W REGEXP) modifies macro name syntax, like does the new `changeword(REGEXP)' macro. This feature is experimental, tell me your opinions about it. You do need --enable-changeword at configure time to get these things. Do *not* depend on them yet. * Trace output format is scannable by GNU Emacs' next-error function. * Stack overflow is detected and diagnosed on some capable systems. * Various bugs have been corrected, m4 should be more portable. See the ChangeLog for details. Version 1.1 - November 1993, by Franc,ois Pinard Changes which might affect existing GNU m4 scripts: * Option `-V' has been removed, use `--version' instead. `--version' writes on standard output instead of standard error, and inhibits any script execution. * `--no-gnu-extensions' has been renamed `--traditional'. * In `eval', `^' used to indicate exponentiation, use `**' instead. * The automatic undiversion which takes place at end of all input is forced into the main output stream. Changes which are unlikely to affect existing scripts: * `--help' prints an usage summary on standard output. Script execution is then inhibited. * `--prefix-builtins' (-P) prefixes all builtin macros by `m4_'. * Most builtin macros for which arguments are mandatory, called without any arguments, are no more recognized as builtin macros: they are consequently copied verbatim to the output stream. * `define' and `pushdef' are usable with only one argument, they give this argument an empty definition. * `eval' new operators for binary representation handling: `^' for exclusive-or, `~' for the bitwise negation, `<<' and `>>' for shifts. * `eval' recognizes the notation 0bDIGITS for binary numbers and the notation 0rRADIX:DIGITS for numbers in any radix from 1 to 36. Version 1.0.3 - December 1992, by Franc,ois Pinard Changes for the user: * `dnl' outputs a diagnostic if immediately followed by `('. Usually, `dnl' is followed by newline or whitespace. * `ifelse' accepts without complaining the common idiom of having only one argument. This is useful for introducing long comments. * `eval' always expresses values as signed, whatever the radix. * M4OPTS environment variable is no longer obeyed. * `--no-warnings' option is renamed `--silent'. * Debug lines use a new format more compatible with GNU standards. * Various bugs have been corrected. See the ChangeLog for details. Changes for the installer: * GNU m4 now uses an Autoconf-generated configure script, and should be more easily portable in many ways. (Cray is not supported yet). * `make check' has been made more portable, expect no errors. Changes for the programmer: * Sources have been fully reindented to comply with GNU standards, and cleaned up in many ways. * Sources have been protoized. Non-ANSI compilers are automatically detected, then sources are unprotoized on the fly before compilation. * GNU m4 uses newer versions of obstack, regex, getopt, etc. Version 1.0 - October 1991, by René Seindal * Uses GNU configure, taken from the gdb distribution. * Uses GNU getopt(), with long option names. * The -Q/+quiet option is added, which suppresses warnings about missing or superflous arguments to built-in macros. * Added default options via the M4OPTS environment variable. * Several minor bugs have been fixed. Version 0.99 - July 1991, by René Seindal * The builtins `incr' and `decr' are now implemented without use of `eval'. * The builtin `indir' is added, to allow for indirect macro calls (allows use of "illegal" macro names). * The debugging and tracing facilities has been enhanced considerably. See the manual for details. * The -tMACRO option is added, marks MACRO for tracing as soon as it is defined. * Builtins are traced after renaming iff they were before. * Named files can now be undiverted. * The -Nnum option can be used to increase the number of divertions available. * Calling changecom without arguments now disables all comment handling. * A bug in `dnl' is fixed. * A bug in the multi-character quoting code is fixed. * Several typos in the manual has been corrected. More probably persist. Version 0.75 - November 1990, by René Seindal * Implemented search path for include files (-I option and M4PATH environment variable). * Implemented builtin `format' for printf-like formatting. * Implemented builtin `regexp' for searching for regular expressions. * Implemented builtin `patsubst' for substitution with regular expressions. * Implemented builtin `esyscmd', which expands to a shell commands output. * Implemented `__file__' and `__line__' for use in error messages. * Implemented character ranges in `translit'. * Implemented control over debugging output. * Implemented multi-character quotes. * Implemented multi-character comment delimiters. * Changed predefined macro `gnu' to `__gnu__'. * Changed predefined macro `unix' to `__unix__', when the -G option is not used. With -G, `unix' is still defined. * Added program name to error messages. * Fixed two missing null bytes bugs. Version 0.50 - January 1990, by René Seindal * Initial beta release. ======================================================================== Local Variables: mode: outline fill-column: 75 End: Copyright (C) 1992-1994, 2004-2014, 2016-2017, 2020-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the ``GNU Free Documentation License'' file as part of this distribution. PK en�[I~� � AUTHORSnu �[��� Authors of GNU M4. The following contributors have warranted legal paper exchanges with the Free Software Foundation for their contributions to GNU M4. Also see the files ChangeLog and THANKS. This list results from searching for /\bM4\b/ in the file /gd/gnuorg/copyright.list on the fencepost.gnu.org machine. René Seindal seindal@diku.dk 1990-03-28 James L. Avera jima@netcom.com 1993-10-04 Pete Chown pete.chown@dale.dircon.co.uk 1994-06-28 John Gerard Makecki johnm@vlibs.com 1995-04-24 François Pinard pinard@iro.umontreal.ca 1996-02-01 Thomas Tanner tanner@ffii.org 1999-06-23 Gary V. Vaughan gary@gnu.org 2000-10-02 Yuji Minejima ? 2001-05-09 Akim Demaille akim@freefriends.org 2001-11-01 Andrew James Bettison andrewb@zip.com.au 2001-11-19 Noah Jeffrey Misch noah@cs.caltech.edu 2004-07-05 Michael Elizabeth Chastain mec@shout.net 2001-12-27 William C. Cox bill@qswtools.com 2004-12-04 Alexandre Duret-Lutz adl@gnu.org 2004-12-04 John Gatewood Ham zappaman@buraphalinux.org 2005-11-01 Eric Benjamin Blake ebb9@byu.net 2006-01-18 John Brzustowski jbrzusto@fastmail.fm 2006-03-06 Ralf Wildenhues Ralf.Wildenhues@gmx.de 2006-03-20 Markus Duft markus.duft@salomon.at 2006-08-03 Joel E. Denny jdenny@clemson.edu 2009-08-18 David Warme David.Warme@Group-W-Inc.com 2010-03-10 Raphael Poss m4-patches@raphael.poss.name 2010-10-04 Tim Rice tim@multitalents.net 2011-01-24 ======================================================================== Copyright (C) 2000, 2006-2007, 2009-2014, 2016-2017, 2020-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the ``GNU Free Documentation License'' file as part of this distribution. PK en�[�o�S� � THANKSnu �[��� GNU M4 THANKS file GNU M4 was originally written by René Seindal. Many people further contributed to GNU M4 by reporting problems, suggesting various improvements or submitting actual code. Here is a list of these people. Help me keep it complete and exempt of errors. Akiko Matsushita matusita@sra.co.jp Akim Demaille demaille@inf.enst.fr Alan Magnuson awm@osc.edu Albert Chin m4-discuss@mlists.thewrittenword.com Alexander Lehmann alex@hal.rhein-main.de Amos Shapira amoss@cs.huji.ac.il Andreas Büning andreas.buening@nexgo.de Andreas Gustafsson gson@niksula.hut.fi Andreas Schultz aschultz@warp10.net Andreas Schwab schwab@ls5.informatik.uni-dortmund.de Assar Westerlund assar@nada.kth.se Ben A. Mesander ben@piglet.cr.usgs.gov Bengt Mertensson bengt@mathematik.uni-bremen.de Bernhard Daeubler daeb@physik.uni-ulm.de Bjorn R. Bjornsson brb@falcon.is Bob Badour bob@badour.net Bob Proulx bob@proulx.com Brendan Kehoe brendan@cygnus.com Bruno Haible bruno@clisp.org Carlo Teubner carlo.teubner@gmail.com Cesar Strauss cestrauss@gmail.com Chris McGuire chris@wso.net Chris Penev xpenev@gmail.com Dagobert Michelsen dagobert@familie-michelsen.de Damian Menscher menscher@uiuc.edu Dan Jacobson jidanni@jidanni.org David J. MacKenzie djm@uunet.uu.net David Perlin davep@nanosoft.com Elbert Pol elbert.pol@gmail.com Elias Benali elptr@users.sourceforge.net Erez Zadok ezk@cs.columbia.edu Eric Allman eric@cs.berkeley.edu Eric Backus ericb@lsid.hp.com Eric Blake ebb9@byu.net Fernando Carrijo fcarrijo1980@gmail.com François Pinard pinard@iro.umontreal.ca Frank Schwidom schwidom@impernet.de Gary V. Vaughan gary@gnu.org Geoff Russell grussell@guest.adelaide.edu.au Giovanni Toffetti toffettg@lu.unisi.ch Giuseppe Scrivano gscrivano@gnu.org Greg A. Woods woods@web.apc.org Hal Peterson hrp@pecan.cray.com Hoang Uong hoang@ornews.intel.com Ian Taylor ian@cygnus.com Ilya N. Golubev gin@mo.msk.ru Jason Merrill jason@jarthur.claremont.edu Jay Krell jay.krell@cornell.edu Jean-Charles Longuet jclonguet@free.fr Jens Rehsack rehsack@googlemail.com Jim Avera jima@netcom.com Jim Kingdom kingdon@cygnus.com Jim Meyering meyering@acm.org Joel E. Denny jdenny@ces.clemson.edu Joel Sherrill jsherril@uahcs2.cs.uah.edu John Brzustowski jbrzusto@fastmail.fm John David Anglin dave@hiauly1.hia.nrc.ca John Gatewood Ham zappaman@buraphalinux.org Josef T. Burger bolo@bolo.com Joseph E. Sacco jsacco@ssl.com Karl Berry karl@freefriends.org Karl Nelson nelson85@llnl.gov Karl Vogel vogelke@c-17igp.wpafb.af.mil Kaveh R. Ghazi ghazi@noc.rutgers.edu KO Myung-Hun komh@chollian.net Konrad Schwarz konrad.schwarz@siemens.com Kristine Lund lund@lpnaxp.in2p3.fr Krste Asanovic krste@icsi.berkeley.edu Lawson Chan Lawson.Chan@tdsecurities.com Marion Hakanson hakanson@cse.ogi.edu Mark Seiden mis@seiden.com Martin Koeppe mkoeppe@gmx.de Matt Kraai kraai@debian.org Matthew Woehlke mw_triad@users.sourceforge.net Matthias Rabe rabe@mathematik.uni-bielefeld.de Michael Fetterman mafetter@ichips.intel.com Michael L. Welcome welcome@bigbird.llnl.gov Mike Dupont jamesmikedupont@googlemail.com Mike Frysinger vapier@gentoo.org Mike Lijewski lijewski@theory.tc.cornell.edu Mike R. mroberge@aol.com Mike Stump mikestump@comcast.net Mikhail Teterin Mikhail.Teterin@murex.com Nelson H. F. Beebe beebe@math.utah.edu Nick S. Kanakakorn skanan@otl.scu.edu Nicolas Lichtmaier nick@technisys.com.ar Nicolas Pioch pioch@inf.enst.fr Noah Friedman friedman@gnu.org Noah Misch noah@cs.caltech.edu Paolo Bonzini bonzini@gnu.org Paul Eggert eggert@cs.ucla.edu Pete Chown pete.chown@dale.dircon.co.uk Pierre Gaumond gaumondp@ere.umontreal.ca Pierre Mathieu mathieu@geod.emr.ca Rainer Tammer tammer@tammer.net Ralf Wildenhues Ralf.Wildenhues@gmx.de René Seindal seindal@diku.dk Richard A Nelson cowboy@vnet.ibm.com Richard Stallman rms@gnu.org Robert Bernstein rocky@panix.com Robert Bihlmeyer robbe@orcus.priv.at Roland H. Pesch roland@wrs.com Roland McGrath roland@gnu.org Ronny Peine RonnyPeine@gmx.de Sami Liedes sliedes@cc.hut.fi Santiago Vila sanvila@debian.org Scott Bartram deneb!scottb Scott McCreary scottmc2@gmail.com Sergey Poznyakoff gray@gnu.org.ua Simon Leinen simon@lia.di.epfl.ch Skip Montanaro skip@automatrix.com Stepan Kasal kasal@ucw.cz Stephen Perkins perkins@cps.msu.edu Steve Williamson willy@uinpla.npl.uiuc.edu Steven Augart saugart@yahoo.com Thomas Klausner tk@giga.or.at Thorsten Ohl ohl@physics.harvard.edu Todd Rinaldo toddr@cpanel.net Tom G. Christensen tgc@jupiterrise.com Tom McConnell tmcconne@sedona.intel.com Tom Quinn trq@dionysos.thphys.ox.ac.uk Tom Tromey tromey@cns.caltech.edu Ulrich Drepper drepper@gnu.org Vern Paxson vern@ee.lbl.gov Vincent Lonngren Vincent.lonngren.759@student.lu.se Vitezslav Crhonek vcrhonek@redhat.com Vivek P. Singhal singhal@cs.utexas.edu Walter Wong wcw+@cmu.edu ======================================================================== Local Variables: coding: utf-8 End: Copyright (C) 2000, 2006-2014, 2016-2017, 2020-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the ``GNU Free Documentation License'' file as part of this distribution. PK en�[#u�[; ; READMEnu �[��� GNU `m4' is an implementation of the traditional Unix macro processor. It is mostly SVR4 compatible, although it has some extensions (for example, handling more than 9 positional parameters to macros). `m4' also has built-in functions for including files, running shell commands, doing arithmetic, etc. Autoconf needs GNU `m4' for generating `configure' scripts, but not for running them. GNU `m4' was originally written by René Seindal, from Denmark. This release is considered stable. If GNU `m4' is meant to serve GNU `autoconf', beware that `m4' should be fully installed *prior to* configuring `autoconf' itself. Likewise, if you intend on hacking GNU `m4' from git, the bootstrap process requires that you first install a released copy of GNU `m4'. If you are just trying to build `m4' from a released tarball, you should not normally need to run `./bootstrap' or `autoreconf'; just go ahead and start with `./configure'. If you are trying to build `m4' from git, more information can be found in the version-control-only file HACKING. M4 has an optional dependency on the libsigsegv library: https://www.gnu.org/software/libsigsegv/ If the library has not been installed in the standard location, you can use `./configure --with-libsigsegv-prefix=/path/to/dir', to make the build of `m4' use /path/to/dir/include/sigsegv.h as appropriate. The use of this library is optional; the only difference in having it available is that it increases the number of platforms where `m4' can correctly distinguish stack overflow from an internal bug. It is recommended that you use version 2.9 or newer. In the subdirectory `examples' you will find various m4 files, ranging from trivial test files to rather advanced macros. If you intend to use m4 seriously, you might find useful material down there. See file `BACKLOG' for a summary of pending mail and articles. See file `COPYING' for copying conditions. Note that M4 is distributed under the GNU Public License version 3 or later. Some files in the distribution are copied from the gnulib project, and hence bear the designation version 2 or later because they are unmodified from gnulib; however, if you modify these files using M4 rather than gnulib as the source, you must update the license to be GPLv3 or later. See file `INSTALL' for compilation and installation instructions. See file `NEWS' for a list of major changes in the current release. See file `THANKS' for a list of contributors. By default, the `syscmd' and `esyscmd' macros try to use the first instance of `sh' found by `command -p getconf PATH' at configure time, with a default of `/bin/sh'. If that default is inappropriate, you can use `./configure --with-syscmd-shell=location' to specify the shell to use. By using `./configure --enable-changeword', you get an experimental feature which allows for changing the syntax of what is a "word" in `m4'. This feature will not be present in m4 2.0, but will be replaced by other new features which provide similar capability, so do not count on it. Send bug reports to `bug-m4@gnu.org'. A bug report is an adequate description of the problem: your input, what you expected, what you got, and why this is wrong. Diffs are welcome, but they only describe a solution, from which the problem might be uneasy to infer. For any copyright year range specified as YYYY-ZZZZ in this package note that the range specifies every single year in that closed interval. GNU Project notice ================== GNU M4 is part of the GNU Operating System, developed by the GNU Project. If you are the author of an awesome program and want to join us in writing Free (libre) Software, please consider making it an official GNU program and become a GNU Maintainer. Instructions on how to do this are here: https://www.gnu.org/help/evaluation Don't have a program to contribute? Look at all the other ways to help: https://www.gnu.org/help/help.html And to learn more about Free (libre) Software in general, please read and share this page: https://gnu.org/philosophy/free-sw.html We are looking forward to hacking with you! ======================================================================== Copyright (C) 2000, 2005-2014, 2016-2017, 2020-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the ``GNU Free Documentation License'' file as part of this distribution. PK en�[`��$T $T ChangeLognu �[��� 2021-05-28 Eric Blake <eblake@redhat.com> version 1.4.19 * NEWS: Record release date. 2021-05-28 Eric Blake <eblake@redhat.com> tests: Skip signal detection on Haiku On Haiku, using 'kill -9' fromm /bin/shactually causes a process to die with the non-standard SIGKILLTHR 15, which causes 198.sysval to fail from the unexpected value. * doc/m4.texi (Sysval): Skip test on Haiku. Reported by Bruno Haible, https://lists.gnu.org/archive/html/bug-m4/2021-05/msg00004.html 2021-05-26 Bruno Haible <bruno@clisp.org> Enable more single-thread optimizations in gnulib code On many systems (esp. BSD ones), building a recent m4 snapshot produces these warnings: -------------------------------------------------------------------------------- CC regex.o In file included from ../../lib/regex_internal.h:57:0, from ../../lib/regex.c:70: ../../lib/regcomp.c: In function 'rpl_regfree': ../../lib/glthread/lock.h:640:38: warning: statement with no effect [-Wunused-value] # define glthread_lock_destroy(NAME) 0 ^ ../../lib/regex_internal.h:60:26: note: in expansion of macro 'glthread_lock_destroy' # define lock_fini(lock) glthread_lock_destroy (&(lock)) ^ ... -------------------------------------------------------------------------------- According to the Gnulib documentation section "Optimizations of multithreaded code" several more optimizations can be enabled. This patch - enables these single-threading optimizations, - by doing so, gets rid of the warnings in regex.c, - causes no test failures. * configure.ac (GNULIB_REGEX_SINGLE_THREAD, GNULIB_MBRTOWC_SINGLE_THREAD, GNULIB_WCHAR_SINGLE_LOCALE): Define as C macros. Message-Id: <3311608.oHEOCP8NKg@omega> 2021-05-26 Eric Blake <eblake@redhat.com> maint: Update to newer gnulib Gnulib has improved stack overflow detection (the c-stack module now uses gnulib's stripped-down libsigsegv on more platforms, without having to install GNU libsigsegv); with this update, GNU Linux systems get stack overflow protection without an external library dependency. * gnulib: Update to latest. * NEWS: Mention the impact. 2021-05-12 Eric Blake <eblake@redhat.com> maint: translation string tweak * src/m4.c (usage): Tweak translation of a newline. Reported by Benno Schulenberg, https://lists.gnu.org/archive/html/m4-discuss/2021-05/msg00011.html 2021-05-11 Eric Blake <eblake@redhat.com> maint: post-release administrivia * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update. version 1.4.18d * NEWS: Recored release date. 2021-05-10 Eric Blake <eblake@redhat.com> po: fix syntax-check * po/POTFILES.in: Update list to match previous patch. m4: translate more strings * src/m4.c (usage): Split large paragraphs, and mark for translation. (main): Translate more strings. * src/builtin.c: Likewise. * src/eval.c (evaluate): Likewise. * src/format.c (expand_format): Likewise. * src/freeze.c: Likewise. * src/input.c: Likewise. * src/macro.c: Likewise. * src/output.c: Likewise. Reported by Benno Schulenberg: https://lists.gnu.org/archive/html/m4-discuss/2021-05/msg00005.html 2021-05-10 Eric Blake <eblake@redhat.com> maint: update gnulib Fix several issues reported by Bruno Haible while testing 1.4.18b: https://lists.gnu.org/archive/html/bug-m4/2021-05/msg00002.html https://lists.gnu.org/archive/html/bug-m4/2021-05/msg00003.html * gnulib: Bump to latest, for various fixes. * NEWS: Mention this. 2021-05-10 Eric Blake <eblake@redhat.com> maint: update m4-latest* symlinks during upload Avoid the situation we had for several years where m4-latest.tar.xz pointed to m4-1.4.17.tar.xz in spite of m4-1.4.18.tar.xz existing. https://lists.gnu.org/archive/html/m4-discuss/2021-05/msg00003.html * cfg.mk (GNUPLOADFLAGS): Update *-latest symlinks during gnupload. 2021-05-10 Eric Blake <eblake@redhat.com> maint: mention ci project Bruno Haible has added a continuous integration environment: https://lists.gnu.org/archive/html/bug-m4/2020-03/msg00000.html * HACKING (Continuous Integration): New section. 2021-05-10 Bruno Haible <bruno@clisp.org> eval: avoid undefined behaviour when parsing -2147483648 * src/eval.c (eval_lex): Use an unsigned variable for accumulating the value. https://lists.gnu.org/archive/html/bug-m4/2021-05/msg00001.html 2021-05-07 Eric Blake <eblake@redhat.com> maint: post-release administrivia * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update. version 1.4.18b * NEWS: Record release date. maint: prepare for beta release * all: Prefer https over http in URLs. * doc/m4.texi (History): Update URLs to follow redirects. * NEWS: Prepare for release. * cfg.mk (old_NEWS_hash): Regenerate via 'make update-NEWS-hash' * HACKING: Update URL to gnulib, drop reference to CVS. maint: update gnulib to latest * gnulib: Pick up latest in preparation for release. 2021-05-07 Eric Blake <eblake@redhat.com> maint: update bootstrap, (re-)enable po file generation In commit 4694c4e67, I disabled bootstrap pulling in po files, because I got an error while attempting to get them, and remembered that while the experimental 2.0 has a .pot file, branch-1.4 (and the 1.4.18 release) historically did not. Basically, since the translation project does not have any m4.pot corresponding to a released m4 that needs it, they deleted tp/latest/m4, and with nothing to pull from, rsync fails. I did not, however, realize that commit 610290de had intentionally added translation support, such that m4 1.4.19 WILL have translations; so until I get that directory reinstated by releasing 1.4.18b, I'll just use './bootstrap --skip-po'. Meanwhile, Gary's upstream bootstrap has had some commits (https://github.com/gnulib-modules/bootstrap.git) Regenerate them via: for f in gl/build-aux/*; do cp ~/bootstrap/build-aux/$(basename $f) $f; done gl/build-aux/inline-source gl/build-aux/bootstrap.in > bootstrap * gl/build-aux/*: Sync from upstream. * bootstrap: Regenerate. * bootstrap.conf (m4_bootstrap_options_prep): Re-enable po. * NEWS: Document this as intentional. Fixes: 4694c4e67 2021-05-07 Eric Blake <eblake@redhat.com> maint: fix syntax-check issues * src/Makefile.am (m4_LDADD): Rename... (LDADD): ...to this, and use spelling that satisfies syntax-check. * po/POTFILES.in: Update to satisfy syntax-check. * cfg.mk (old_NEWS_hash): Update with 'make update-NEWS-hash'. maint: bump copyright year * all: Use 'make update-copyright' to add 2021. README: add GNU Project notice * README: Add section to attract more people towards the GNU project. Inspired by a suggestion from Jose E. Marchesi <jemarch@gnu.org> on the gnu-prog-discuss mailing list. 2021-04-22 Eric Blake <eblake@redhat.com> m4: change command-line -H default * src/m4.h (HASHMAX): Bump to ~64k. * doc/m4.texi (Limits control): Document it. * NEWS: Likewise. maint: another gnulib update * gnulib: Update to latest, to fix build on rawhide. 2021-04-21 Eric Blake <eblake@redhat.com> symtab: use less memory in pushdef stacks No need to xstrdup identical names when we can share the same name across the pushdef stack. * src/symtab.c (free_symbol): Don't free shared name. (lookup_symbol): Share name across pushdef stack. 2021-04-21 Eric Blake <eblake@redhat.com> symtab: make symtab private No need for a leaky abstraction of freezing to have to duplicate how our symbol hash table is organized; use the public function hack_all_symbols instead. This will make it easier to refactor the symbol table (such as automatic resizing, or switching to a trie). * src/m4.h (symtab, SYMBOL_NEXT): Make private. * src/freeze.c (produce_frozen_state): Split out... (freeze_symbol): ...new helper, for use by hack_all_symbols. * src/symtab.c (lookup_symbol, symtab_print_list): Update to treat next as internal-only code. 2021-04-21 Eric Blake <eblake@redhat.com> symtab: sort by hash before name It is faster to do an integer compare than a string compare when managing hash table collisions (reserving a string compare for ties). Testing with CFLAGS=-DDEBUG_SYM=1 and 'time M4=src/m4 autoconf -f', the results are noticeable; on my machine, execution speeds up from 2.3s to 2.2s, and the debug trace that used to report: m4: lookup mode 0 called 1243301 times, 7859589 compares, 6734330 misses, 23941043 bytes now reports m4: lookup mode 0 called 1243301 times, 1125259 compares, 0 misses, 12433237 bytes * src/m4.h (struct symbol): Add hash member. * src/symtab.c (lookup_symbol): Sort by hash first, then name. (symtab_print_list): Add hash debug. 2021-04-21 Eric Blake <eblake@redhat.com> maint: switch from git:// to https:// for gnulib submodule https:// is nicer than git:// for a transport for avoiding man-in-the-middle attacks, provided that the server is using a new-enough version of git to make https:// efficient (which savannah does). * .gitmodules: Prefer better URL. 2021-04-21 Paul Eggert <eggert@cs.ucla.edu> maint: port to Solaris 10 Add libraries needed by current Gnulib. * src/Makefile.am (m4_LDADD): Add LIB_CLOCK_GETTIME, LIB_GETRANDOM, LIB_HARD_LOCALE, LIB_POSIX_SPAWN, LIB_SETLOCALE_NULL, LIBUNISTRING, INTL_MACOSX_LIBS. These are all needed by current Gnulib, according to gnulib-tool. LIB_CLOCK_GETTIME is certainly needed for Solaris 10; otherwise the m4 link fails with clock_gettime not found. maint: port to macOS 11.2.3 (arm64) * m4/gnulib-cache.m4: Add fopen-gnu, replacing cloexec and fopen. Avoid getopt-posix-tests, since they are not needed for m4 and currently fail on macOS 11.2.3 (arm64). * src/builtin.c (m4_incr, m4_decr): Avoid undefined behavior on integer overflow that causes tests to fail on macOS. * src/debug.c (debug_set_output): * src/output.c (m4_tmpfile, m4_tmpopen): * src/path.c (m4_fopen): Use GNU fopen with "e" rather than set_cloexec_flag. This is simpler, and works around a Gnulib bug on macOS with fopen being replaced by rpl_fopen sometimes but not other times. * src/freeze.c (produce_frozen_state): Use GNU fopen with "e"; no need to expose the fd to subprocesses. build: update gnulib submodule to latest 2021-04-17 Eric Blake <eblake@redhat.com> symtab: drop redundant symbol flag In writing the previous patch, I noticed that the shadow flag is only ever set when a pushdef stack is present, which makes it redundant now that the pushdef stack is separate from the hash collision stack. * src/m4.h (SYMBOL_SHADOWED): Delete. * src/builtin.c (dump_symbol): Simplify, now that hack_all_symbols no longer visits shadowed macros. * src/symtab.c (lookup_symbol, symtab_print_list): Simplify. 2021-04-17 Eric Blake <eblake@redhat.com> symtab: better handling of macro stacks I ran into a scenario where running a program took 22s with the default -H509, but less than a second with -H517 [1]. The culprit? A collision between 'stack' and 'substr' in the default hash table size caused lookups for substr to get progressively slower as pushdef stack got deeper. This is easy enough to fix, and may also make it easier to dynamically grow the hashtable. [1] https://lists.gnu.org/archive/html/bug-m4/2021-04/msg00000.html * src/m4.h (struct symbol): Add stack member. * src/symtab.c (lookup_symbol): Separate stack from bucket list. (symtab_print_list): Update traversal to match. * src/freeze.c (produce_frozen_state): Likewise. (reverse_symbol_list): Reverse stack, not bucket. 2021-04-17 Eric Blake <eblake@redhat.com> input: optimize macro tail-call memory usage I encountered an m4 program that performed over 20 million iterations of a tail-call recursion paradigm. Without this patch, memory usage grew to over 6 gigabytes, pausing the program for several seconds when the recursion finally ended just to reclaim the memory. But with the patch, m4 never needed more than 3 megabytes of resident memory. * src/input.c (push_string_init): Prune empty string blocks before starting another one. 2021-04-17 Eric Blake <eblake@redhat.com> maint: update gnulib and fix build failures I got failures when trying to bootstrap: bootstrap: getting translations into po/.reference for m4... receiving incremental file list rsync: change_dir "/latest/m4" (in tp) failed: No such file or directory (2) since m4-1.4 has no translation files, and the translation project dropped the stale .po files for the unreleased 1.9 development branch. Once that was fixed, I also got compilation failures, from an incomplete update to the gnulib execute module: builtin.c: In function 'm4_syscmd': builtin.c:968:44: error: passing argument 3 of 'execute' from incompatible pointer type [-Werror=incompatible-pointer-types] 968 | status = execute (ARG (0), SYSCMD_SHELL, prog_args, NULL, false, | ^~~~~~~~~ | | | const char ** Fixes: 4e5c2c0157 * gnulib: Update to latest. * bootstrap.conf (copyright_holder): Silence bootstrap warning. (m4_bootstrap_options_prep): Turn off po update. 2020-12-12 Bruno Haible <bruno@clisp.org> Update after gnulib changed. * src/builtin.c (m4_syscmd): Update 'execute' invocation. (m4_esyscmd): Update 'create_pipe_in' invocation. * po/POTFILES.in: Remove lib/w32spawn.h. Add lib/openat-die.c, lib/os2-spawn.c. 2020-08-23 Paul Eggert <eggert@cs.ucla.edu> * HACKING: Autoconf 2.64 required now. 2020-08-23 Bruno Haible <bruno@clisp.org> build: Fix bootstrap failure with the newest gnulib. * configure.ac: Require Autoconf 2.64 at least. 2020-07-17 Paul Eggert <eggert@cs.ucla.edu> Port recent changes to AIX 7.1 * src/Makefile.am (m4_LDADD): Add LIB_MBRTOWC, LIB_SETLOCALE. AIX 7.1 needs these to get the pthread support linked in. 2020-07-13 Paul Eggert <eggert@cs.ucla.edu> Support gettext and proper names This way, ‘m4 --version’ outputs “Written by René Seindal” instead of “Written by Rene' Seindal” when in a UTF-8 locale. As the Translation project adds translations, NLS should get better. * .gitignore: Add translation-related file names. * AUTHORS, ChangeLog-2014, NEWS, README, acinclude.m4, c-boxes.el: Spell “François” and “René” without ASCIIfying. * HACKING: Add Gettext as a prereq. * Makefile.am (SUBDIRS): Add po. * configure.ac: Do not use -Wvla. Add AM_GNU_GETTEXT and AM_GNU_GETTEXT_VERSION calls. * lib/Makefile.am (MAINTAINERCLEANFILES): Define to empty. * m4/gnulib-cache.m4: Add configmake, gettext-h, propername, and setlocale modules. * po/POTFILES.in: New file. * src/Makefile.am (m4_LDADD): Add $(LIBICONV), $(LIBINTL). * src/m4.c: Include configmake.h, propername.h. (main): Set the locale. * src/m4.h: Include locale.h, gettext.h. (textdomain, bindtextdomain) [!ENABLE_NLS]: Provide defaults. (_): Now an alias for gettext, instead of a no-op. Use c-ctype.h instead of ctype.h This simplifies the code a bit, and prepares for setlocale. * m4/gnulib-cache.m4: Add c-ctype module. * src/builtin.c (numeric_arg, m4_undivert, expand_user_macro): * src/eval.c (eval_lex): * src/format.c (arg_int, arg_long, arg_double, expand_format): * src/freeze.c (GET_NUMBER): m * src/input.c (next_token, peek_token): * src/macro.c (expand_argument): Prefer c-ctype macros to ctype macros. Omit now-unnecessary calls to to_uchar. * src/m4.h: Include c-ctype.h instead of ctype.h. 2020-07-11 Paul Eggert <eggert@cs.ucla.edu> Regenerate bootstrap Convert m4.texi from Latin-1 to UTF-8 * HACKING: Texinfo 4.11 and Autoconf 2.63 are now prereqs. * doc/m4.texi: Convert to UTF-8. 2020-07-05 Paul Eggert <eggert@cs.ucla.edu> Port to recent GCC with --enable-gcc-warnings * m4/gnulib-cache.m4: Add attribute, verify. * src/m4.c (m4_failure, m4_failure_at_line): New functions. These replace all uses of M4ERROR ((EXIT_FAILURE, ...)) and M4ERROR_WITH_LINE ((EXIT_FAILURE, ...), so that the compiler can deduce they do not return. * src/m4.h: Include attribute.h, verify.h. (M4_GNUC_ATTRIBUTE, M4_GNUC_UNUSED, M4_GNUC_PRINTF) (M4_GNUC_NORETURN, M4_GNUC_PURE): Remove. All uses replaced by corresponding attributes from attribute.h. Also, use attribute.h’s FALLTHROUGH macro as needed in all files. * src/macro.c (expand_macro): Cast to uintptr_t instead of to char * to pacify GCC alignment warning. maint: update copyright date Arrived at via: make update-copyright gl/build-aux/inline-source gl/build-aux/bootstrap.in > bootstrap build: adjust to gnulib changes * configure.ac: Require Autoconf 2.63; needed by Gnulib. * m4/gnulib-cache.m4: Regenerate. 2020-07-05 Bruno Haible <bruno@clisp.org> Update after gnulib changed * src/output.c (m4_tmpfile, m4_tmpopen): Update fopen_temp invocations. * gl/lib/clean-temp.c.diff: Remove file, no longer needed. 2020-07-05 Paul Eggert <eggert@cs.ucla.edu> build: update gnulib submodule to latest 2017-01-02 Eric Blake <eblake@redhat.com> maint: bump copyright year Needed to keep 'make syntax-check' passing. * gnulib: Update to latest. * bootstrap: Regenerate. * all files: Use 'make update-copyright' to bump year. 2016-12-31 Eric Blake <eblake@redhat.com> maint: post-release administrivia * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update. version 1.4.18 * NEWS: Record release date. doc: abbreviate and update release history * doc/m4.texi (History): Shorten, and call out today's release. 2016-12-31 Eric Blake <eblake@redhat.com> maint: automate creation of release tag The gnulib makefile was already set up to automate things with 'make release ...', but we were still doing things by hand, and thereby risking missing some steps. * m4/gnulib-cache.m4 (gl_MODULES): Import do-release-commit-and-tag. * gnulib: Update, for latest version of the script. * HACKING: Mention its use. 2016-12-31 Eric Blake <eblake@redhat.com> maint: generate ChangeLog from git commits Follow the practice set in numerous other GNU projects, where the ChangeLog (since 2015) is generated from git commit messages. This avoids duplication or subtle differences between the two, as well as making it easier to merge patches across branches (as good as Bruno Haible's 'git-merge-changelog' helper program is, it still doesn't handle cross-branch cherry-picks very well). * ChangeLog: Move... * ChangeLog-2014: ...to this. * Makefile.am (EXTRA_DIST): Ship renamed file. (gen-ChangeLog): New rule, copied mostly from coreutils. (dist-hook): Generate the ChangeLog. * m4/gnulib-cache.m4 (gl_MODULES): Import gitlog-to-changelog. * .gitignore: Ignore ChangeLog. * .gitattributes: Likewise. * HACKING: Reword to match new procedure, and simplify by referring to an external description of ChangeLog style. 2016-12-31 Eric Blake <eblake@redhat.com> maint: summarize highlights of pending release * NEWS: Add some blurbs. 2016-12-31 Eric Blake <eblake@redhat.com> maint: make silent builds the default The user still has full control over verbosity levels, both setting their per-project defaults at configure time (or even in a config.site file), as well as a per-run override. But these days, most projects are defaulting to silent rules without user intervention. * configure.ac (AM_SILENT_RULES): Add, to match what most projects are doing these days. 2016-12-31 Eric Blake <eblake@redhat.com> maint: release no longer creates a diff file Ever since commit f1cf390 (1.4.14 release), we no longer create diff files as part of the release process. These days, it is assumed that it is easier to download a fresh tarball rather than to try and use a diff file to patch an older tarball. 2016-12-30 Eric Blake <eblake@redhat.com> doc: drop obsolete @setcontentsaftertitlepage texinfo 6.1 complains (during 'make dvi'): /home/eblake/m4-1.4/doc/./m4.texi:9: @setcontentsaftertitlepage has been remove d as a Texinfo command; move your @contents command if you want the contents af ter the title page.. It turns out that eliminating the command has no effect - modern tools correctly emit the contents in-place, right after the title page, so it was leftover cruft from an older time. * doc/m4.texi: Satisfy newer texinfo. 2016-12-29 Eric Blake <eblake@redhat.com> build: update to latest gnulib I hit a weird failure during 'make check', and traced it to a recent gnulib regression in parallel test safety. Pick up the gnulib fix. * gnulib: Update to latest, to fix failure in getopt tests. 2016-12-29 Eric Blake <eblake@redhat.com> maint: regenerate bootstrap Missed during the copyright update. * bootstrap: Regenerate. 2016-12-29 Eric Blake <eblake@redhat.com> maint: bump copyright year Sadly, there's no commit in 2015, which means we don't get to benefit from using a copyright range. Done with 'make update-copyright'. * all files: Version control now has a commit in 2016. 2016-12-29 Eric Blake <eblake@redhat.com> gnulib: Update to latest * gnulib: Update to latest. * m4/gnulib-cache.m4: Regenerate. * src/macro.c (expand_macro): Deal with obstack API change. * src/builtin.c (mkstemp_helper): Likewise. PK en�[M��F$ $ TODOnu �[��� PK en�[0Ҭ�y �y X NEWSnu �[��� PK en�[I~� � L� AUTHORSnu �[��� PK en�[�o�S� � +� THANKSnu �[��� PK en�[#u�[; ; � READMEnu �[��� PK en�[`��$T $T �� ChangeLognu �[��� PK � �
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0 |
proxy
|
phpinfo
|
???????????