help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gengetopt] gengetopt: initialization of args_info_help[]


From: Andre Noll
Subject: Re: [help-gengetopt] gengetopt: initialization of args_info_help[]
Date: Tue, 16 Dec 2008 13:25:00 +0100
User-agent: Mutt/1.5.9i

On 12:49, Lorenzo Bettini wrote:
> >Yes, that would be easiest, one just has to remove the static
> >keyword in the .c file and add the function prototype to the .h file.
> >
> >Alternativly one could change the cmdline_parser_init function so that
> >it just calls init_help() if called with a NULL pointer. Currently,
> >such a usage would lead to a segfault.
> >
> 
> mh... probably the first alternative has a cleaner semantics

Sure that's cleaner. The advantage of the second alternative is that
the public interface needs no extention. Making functions public
(by putting them into the .h file) means that the interface is fixed
from now on.

I don't have a strong opinion about this, so feel free to implement
what you feel is most appropriate :)

Thanks
Andre
-- 
The only person who always got his work done by Friday was Robinson Crusoe

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]