[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multi-Line Definitions
From: |
Eric Blake |
Subject: |
Re: Multi-Line Definitions |
Date: |
Sat, 29 Sep 2007 13:04:04 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
-----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 address@hidden
-----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-----
- Re: Multi-Line Definitions, Ralf Wildenhues, 2007/09/18
- RE: Multi-Line Definitions, Eric Lemings, 2007/09/18
- Re: Multi-Line Definitions, Eric Blake, 2007/09/22
- Re: Multi-Line Definitions, Eric Blake-1, 2007/09/27
- Re: Multi-Line Definitions, Ralf Wildenhues, 2007/09/29
- Re: Multi-Line Definitions,
Eric Blake <=
- Re: Multi-Line Definitions, Eric Blake, 2007/09/29
- m4 regex usage [was: Multi-Line Definitions], Eric Blake, 2007/09/29
- m4sugar speedups [was: Multi-Line Definitions], Eric Blake, 2007/09/29
- Re: m4sugar speedups [was: Multi-Line Definitions], Benoit SIGOURE, 2007/09/30
- Re: m4sugar speedups [was: Multi-Line Definitions], Eric Blake, 2007/09/30