From 5b073f245567d98cc9678a3c6605c87fb74f08f1 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Fri, 13 Apr 2007 09:48:30 +0200 Subject: [PATCH] commented stolen getopt --- lib/getopt.c | 2 ++ lib/getopt/README | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 lib/getopt/README 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 + -- 2.39.2