[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about m4 include/sinclude
From: |
Eric Blake |
Subject: |
Re: Question about m4 include/sinclude |
Date: |
Wed, 01 Oct 2008 05:58:37 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Roger Southwick on 10/1/2008 1:04 AM:
> I'd like to suggest that the ability to ignore duplicate included files
> be built into the m4 program itself,
> rather than pushdef/ifdef example. Maybe enabled with a
> --ignore-duplicate-include option.
I'm reluctant to add a command-line option for something that can be so
easily coded in native m4. On the other hand, m4 2.0 will allow loadable
modules thanks to libtool, so you could write a C module that redefines
include to have your desired semantics, and load that on top of the normal
modules to change include at the C level rather than the m4 level.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjjZe0ACgkQ84KuGfSFAYBGYACdFqGSSTaptQ92YYhP0iVmwlNK
XdQAn0KUjuWd1aMNbXNFvMMoySbcYcxs
=KUhN
-----END PGP SIGNATURE-----