[sword-devel] osis2mod change

Troy A. Griffitts scribe at crosswire.org
Wed Sep 26 18:21:13 MST 2007


I think I would like to conclude this thread with deciding that we are 
not willing to introduce a dependency to iterate simple program args. 
Thank you all for the suggestion.

	-Troy.



DM Smith wrote:
> How about this implementation, as it is pretty short:
> 
> Header:
> http://www.mirbsd.org/cvs.cgi/src/include/getopt.h?rev=1.1.1.1;content-type=text%2Fplain
> 
> Code:
> http://www.mirbsd.org/cvs.cgi/src/lib/libc/stdlib/getopt_long.c?rev=1.1.1.3;content-type=text%2Fplain
> http://www.mirbsd.org/cvs.cgi/src/lib/libc/stdlib/getsubopt.c?rev=1.3;content-type=text%2Fplain
> 
> It is a BSD license that is compatible with GPL (some BSD are not) and 
> it is self contained in one file.
> 
> -- DM
> 
> 
> 
> On Sep 26, 2007, at 5:15 PM, Chris Little wrote:
> 
>> But Windows lacks it, I believe.
>> I suppose we could absorb some BSD code, assuming it were short, to 
>> achieve the same end, but we can't just #include <unistd.h>.
>>
>> --Chris
>>
>> Sergio QUEIROZ wrote:
>>> getopt without GNU extensions is a part of the Unix Base Specifications
>>> and should be available mostly everywhere.
>>>
>>> http://www.opengroup.org/onlinepubs/009695399/functions/getopt.html
>>>
>>> Yours,
>>>
>>> Sergio
>>>
>>> Le mercredi 26 septembre 2007 à 11:35 -0700, Chris Little a écrit :
>>>> Eeli Kaikkonen wrote:
>>>>> On Tue, 25 Sep 2007, Troy A. Griffitts wrote:
>>>>>> As DM has said previously, it
>>>>>> would be really nice to have normal -options which are not order 
>>>>>> dependent.
>>>>> Using GNU getopt?
>>>>> http://www.gnu.org/software/libc/manual/html_node/Getopt.html
>>>> Using anything from GNU would be a bad idea. Enduring "the chore 
>>>> involved in parsing typical unix command line options" makes our code 
>>>> more portable and avoids the need to license additional libraries.
>>>>
>>>> Writing a simple command line option parser isn't especially difficult 
>>>> or burdensome, anyway.
>>>>
>>>> --Chris
>>>>
>>>> _______________________________________________
>>>> sword-devel mailing list: sword-devel at crosswire.org 
>>>> <mailto:sword-devel at crosswire.org>
>>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>>> Instructions to unsubscribe/change your settings at above page
>>>
>>>
>>> _______________________________________________
>>> sword-devel mailing list: sword-devel at crosswire.org 
>>> <mailto:sword-devel at crosswire.org>
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>> Instructions to unsubscribe/change your settings at above page
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org 
>> <mailto:sword-devel at crosswire.org>
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page




More information about the sword-devel mailing list