From: Pavel Charvat Date: Fri, 13 Apr 2007 07:48:30 +0000 (+0200) Subject: commented stolen getopt X-Git-Tag: holmes-import~506^2~88 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=5b073f245567d98cc9678a3c6605c87fb74f08f1;p=libucw.git commented stolen getopt --- diff --git a/lib/getopt.c b/lib/getopt.c index 1a728c8a..a15c9355 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -9,6 +9,8 @@ reset_getopt(void) } #ifdef TEST +#include + static void parse(int argc, char **argv) { diff --git a/lib/getopt/README b/lib/getopt/README new file mode 100644 index 00000000..fe24015a --- /dev/null +++ b/lib/getopt/README @@ -0,0 +1,12 @@ +This directory contains getopt routines from the GNU libc 2.5. +We need this as a fallback for our reset_getopt(), because there is +no standardized interface for such instruction. + +They are distributed under the GNU LGPL. + +All files are exact copies of the original distribution with very +few exceptions commented with `// SHERLOCK' prefix. +I only provided my own getopt-sh.c, getopt-sh.h and Makefile. + + Pavel Charvat, 2007 +