Re: Question about m4 include/sinclude

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
-----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             [email protected]
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.