This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to create both -option-name-* and -option-name=* options?


Dave Korn wrote:
> On 10 November 2006 20:06, Mark Mitchell wrote:
> 
>> Dave Korn wrote:
>>
>>>   It may seem a bit radical, but is there any reason not to modify the
>>> option-parsing machinery so that either '-' or '=' are treated
>>> interchangeably for /all/ options with joined arguments?  That is,
>>> whichever is specified in the .opt file, the parser accepts either?
>> I like that idea.
> 
> 
>   Would it be a suitable solution to just provide a specialised wrapper around
> the two strncmp invocations in find_opt? 

FWIW, that seems reasonable to me, but I've not looked hard at the code
to be sure that's technically 100% correct.  It certainly seems like the
right idea.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]