Bug #497
closedadd -P flag to m4(1)
0%
Description
Here's a patch that will add the -P option to our m4.  Please let me know
what you think.  This is needed to bring in the latest flex sources.
http://www.theshell.com/~pavalos/wip/m4.patch
Thanks,
Peter
Files
       Updated by dillon almost 19 years ago
      Updated by dillon almost 19 years ago
      
    
    :Here's a patch that will add the -P option to our m4.  Please let me know
:what you think.  This is needed to bring in the latest flex sources.
:
:http://www.theshell.com/~pavalos/wip/m4.patch
:
:Thanks,
:Peter
Hmm.  Running the getopt loop twice is kinda a hack.  If you absolutely
    have to do it at least put getopt's control string in one place so it
    isn't duplicated.-Matt
       Updated by dillon almost 19 years ago
      Updated by dillon almost 19 years ago
      
    
    :We need to know if -P is set before we handle the -D and -U options.
:
:> ...and use optreset please.
:>=20
:
:Ok, how's this one look:
:
:http://www.theshell.com/~pavalos/wip/m4-2.patch
:
:--Peter
That looks much better.  I looked at some of the other OS dists
    and NetBSD does something similar.-Matt
       Updated by pavalos almost 19 years ago
      Updated by pavalos almost 19 years ago
      
    
    We need to know if -P is set before we handle the -D and -U options.
Ok, how's this one look:
http://www.theshell.com/~pavalos/wip/m4-2.patch
--Peter