Re: gengetopt: initialization of args_info_help[]
Andre Noll <[email protected]> Tue, 16 Dec 2008 13:25:00 +0100
| Newsgroups | gmane.comp.gnu.gengetopt.general |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Help-gengetopt mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gengetopt
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFJR54cWto1QDEAkw8RAnrHAJ9rQvZ8+whligjj0n0kKc09AuTWnQCeIX7U mermSrfWfzJw/msm5JwxN6M= =euq+ -----END PGP SIGNATURE-----