Re: dumpdef output destination

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
Eric Blake <ebb9 <at> byu.net> writes:

> So which option should I use?
> 
> Option 1 - make 1.6 dumpdef always go to stderr
> 
> Option 2 - make 2.0 dumpdef always go to debugfile
> 

I just thought of a new option:

Option 3 - add a flag to both 1.6 and 2.0 debugmode that controls where dumpdef 
output goes

Would allow the client to choose (autoconf would choose stderr, but the default 
would be debugfile)
Friendly to autoconf, which is already using another debugmode flag added in m4 
1.6 to control whether popdef(undefined) triggers an error

> My personal preference is option 1, unless someone can speak up with a 
counter-
> argument soon.
> 

At this point, option 3 is the most flexible (it allows both behaviors, thus 
preserving backwards compatibility).  What letter should I consume as the 
mnemonic for the ability to redirect dumpdef to stderr, remembering that 
acdefilmpqstxv are already claimed?  Maybe 'o' for 'Output dumpdef to stderr'?

-- 
Eric Blake
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.