| History log of /src/usr.bin/m4/gnum4.c |
| Revision | | Date | Author | Comments |
| 1.13 |
| 24-May-2023 |
christos | use strchr
|
| 1.12 |
| 24-May-2023 |
lukem | m4 -g: { and } aren't supported in patsubst() or regexp()
When running in -g (GNU m4) emulation, patsubst() and regexp() use the GNU m4 emacs-like regexes as implemented by gnulib, which don't support {..} intervals. When converting a GNU m4 regex to a POSIX ERE, escape raw { and }.
Autoconf relies on the GNU m4 regex behaviour.
See: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Redefined-M4-Macros.html - https://www.gnu.org/software/gnulib/manual/html_node/emacs-regular-expression-syntax.html
This fixes the tools/compat/configure regen.
PR toolchain/57431
|
| 1.11 |
| 07-Dec-2021 |
rillig | branches: 1.11.2; m4: fix typo in error message
To trigger the error message, compile m4 with -DREAL_FREEZE, then run './m4 -R /dev/null'.
|
| 1.10 |
| 16-Jan-2016 |
christos | - don't eat the rest of the string when no match in patsubst - include the pattern in the error printing of regex - handle 3 argument and empty patterns the gnu way - add support for freezing and thawing state (not working yet)
|
| 1.9 |
| 20-Mar-2012 |
matt | Use C89 function definitions
|
| 1.8 |
| 06-Sep-2011 |
joerg | branches: 1.8.2; Move usage and onintr to make them static. Add __dead as needed.
|
| 1.7 |
| 26-Oct-2009 |
christos | fix the tools build
|
| 1.6 |
| 26-Oct-2009 |
christos | resolve conflicts.
|
| 1.5 |
| 30-Oct-2004 |
dsl | Add (unsigned char) cast to ctype functions
|
| 1.4 |
| 20-Jun-2004 |
jmc | Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
|
| 1.3 |
| 23-Apr-2004 |
simonb | s/the the/the/ (only in sources that aren't regularly imported from elsewhere).
|
| 1.2 |
| 21-Jan-2002 |
tv | branches: 1.2.4; Make compilable from src/tools/m4 on non-NetBSD hosts.
|
| 1.1 |
| 14-Nov-2001 |
tv | branches: 1.1.1; Pull in various changes from OpenBSD, most from Marc Espie, including: * Provide some GNUisms as extensions. * Provide dynamically growable string space. * Make define(defn(foo)) work correctly for builtins. (The current version is supposed to be capable of satisfying autoconf.)
All still relevant NetBSD changes have been preserved in this version, and formatting and style fixes have been applied in various places.
Thanks to Masao Uebayashi <uebayasi@soum.co.jp> for pointing this out.
|
| 1.1.1.1 |
| 26-Oct-2009 |
christos | Import new m4 from OpenBSD.
|
| 1.2.4.1 |
| 22-Jun-2004 |
tron | Pull up revision 1.4 (requested by jmc in ticket #527): Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different') Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc). Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9. Fixes PR's: PR#17762 PR#25944
|
| 1.8.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
| 1.11.2.2 |
| 28-May-2023 |
martin | Pull up following revision(s) (requested by lukem in ticket #181):
usr.bin/m4/gnum4.c: revision 1.13
use strchr
|
| 1.11.2.1 |
| 28-May-2023 |
martin | Pull up following revision(s) (requested by lukem in ticket #180):
usr.bin/m4/gnum4.c: revision 1.12
m4 -g: { and } aren't supported in patsubst() or regexp()
When running in -g (GNU m4) emulation, patsubst() and regexp() use the GNU m4 emacs-like regexes as implemented by gnulib, which don't support {..} intervals.
When converting a GNU m4 regex to a POSIX ERE, escape raw { and }. Autoconf relies on the GNU m4 regex behaviour.
See: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Redefined-M4-Macros.html - https://www.gnu.org/software/gnulib/manual/html_node/emacs-regular-expression-syntax.html
This fixes the tools/compat/configure regen.
PR toolchain/57431
|