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

_______________________________________________
Help-gengetopt mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gengetopt

Reply via email to