aboutsummaryrefslogtreecommitdiff
path: root/contrib/patch/argmatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/patch/argmatch.h')
-rw-r--r--contrib/patch/argmatch.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/patch/argmatch.h b/contrib/patch/argmatch.h
new file mode 100644
index 000000000000..e95ff62e24c0
--- /dev/null
+++ b/contrib/patch/argmatch.h
@@ -0,0 +1,12 @@
+/* argmatch.h -- declarations for matching arguments against option lists */
+
+#if defined __STDC__ || __GNUC__
+# define __ARGMATCH_P(args) args
+#else
+# define __ARGMATCH_P(args) ()
+#endif
+
+int argmatch __ARGMATCH_P ((const char *, const char * const *));
+void invalid_arg __ARGMATCH_P ((const char *, const char *, int));
+
+extern char const program_name[];