summaryrefslogtreecommitdiffstats
path: root/debian/htdig/htdig-3.2.0b6/htlib/getopt_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/htlib/getopt_local.h')
-rw-r--r--debian/htdig/htdig-3.2.0b6/htlib/getopt_local.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/htlib/getopt_local.h b/debian/htdig/htdig-3.2.0b6/htlib/getopt_local.h
new file mode 100644
index 00000000..731a21db
--- /dev/null
+++ b/debian/htdig/htdig-3.2.0b6/htlib/getopt_local.h
@@ -0,0 +1,50 @@
+/* getopt_local.h */
+
+/* Public Domain getopt clone */
+
+/* Part of the ht://Dig package <http://www.htdig.org/> */
+/* Copyright (c) 2003 The ht://Dig Group */
+/* For copyright details, see the file COPYING in your distribution */
+/* or the GNU Library General Public License (LGPL) version 2 or later or later */
+/* <http://www.gnu.org/copyleft/lgpl.html> */
+
+/* Added to HtDig code June 2003 by Neal Richter, RightNow Technologies */
+
+/*
+** This getopt behaves pretty much like you would expect.
+** It does handle arguments like '-ab-' a little differently
+** then normal; I think the -- 'stop option processing' should
+** be treated like just another option, so that's what mine does.
+** Other getopts seem to ignore the second '-' in '-ab-'.
+**
+** I hereby place this version of getopt in
+** the public domain. Do with this what you will.
+** I'm sure there is a nicer and faster version out there
+** somewhere but I don't care!
+**
+** Robert Osborne, May 1991.
+*/
+
+
+#ifndef GETOPT_LOCAL_H
+#define GETOPT_LOCAL_H
+
+#define GETOPT_LOCAL
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* header for getopt_local.c */
+
+extern int optind;
+extern int opterr;
+extern char *optarg;
+
+int getopt(int, char *[], char *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* GETOPT_LOCAL_H */