On Tue, 2008-09-16 at 13:45 +0200, Lorenzo Bettini wrote: > yes, that'd be a nice implementation! :-)
For that to happen, getopt has to get its own errno and various levels in standard libc... otherwise the callback can only hope to know the string, errno and the line in getopt that issued it. If statically linking, this is no problem. But thats icky. If that's not the case, we squash the errno that the preceding call set. The former works, until the line number changes in getopt :) This is the same case with liblvm2cmd. This is why I suggest an independent library for a modern getopt. Porting the existing implementation would be madness in ANY flavor. I'll work on it if you will :) Cheers, --Tim _______________________________________________ Help-gengetopt mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gengetopt
