-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Ralf Wildenhues on 9/29/2007 11:23 AM: >> Enhance previous patch's handling of raw newlines. >> * lib/autoconf/general.m4 (_AC_RAW_NEWLINE_RE): New macro. >> (AC_DEFINE, AC_DEFINE_UNQUOTED): Die on raw newlines in value. > > Won't this slow down `autoconf' by much?
Well, autoconf does use a lot of regex operations already. On autoconf itself, 'autoconf -t m4_bpatsubst -t m4_bregexp -d', followed by 'grep "^AT_m4_b" $TMPDIR/am4t*/traces.m4 |wc' shows more than 10000 regular expression matches. Maybe m4 should be taught to cache the most recent few regular expressions, as the same patterns are used rather frequently. For example, "grep '\[\[`\$\]\])$' trace' shows that there were 311 repeats of the regex [[`$]]. You've given me a good idea - I'll try instrumenting a version of m4 and coming up with a good list of the most popular regex patterns in use by autoconf (autoconf -t has limitations, since regex patterns tend to mess up the quoting of the trace file). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG/qGk84KuGfSFAYARAtJdAJ4gS7VJfpKdsGY3WEQMmlEnzQMviQCfbkts nKWSqy9ycGtQBBzbImc2bpE= =A2+n -----END PGP SIGNATURE----- _______________________________________________ M4-discuss mailing list M4-discuss@gnu.org http://lists.gnu.org/mailman/listinfo/m4-discuss