summaryrefslogtreecommitdiff
path: root/lib/argmatch.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-05-27 09:39:25 +0000
committerJim Meyering <jim@meyering.net>1997-05-27 09:39:25 +0000
commit168eb7758eaf5d60f777c459cc97aa25c3a844c5 (patch)
tree04b2c3a8e4e7813229f51b11e6a09c66a655419c /lib/argmatch.h
parent96c4c010193fee5c0e6cc3b2c692e168c69383b6 (diff)
downloadcoreutils-168eb7758eaf5d60f777c459cc97aa25c3a844c5.tar.xz
Update from FSF via patch-2.2.93.
Diffstat (limited to 'lib/argmatch.h')
-rw-r--r--lib/argmatch.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/lib/argmatch.h b/lib/argmatch.h
index cbd6ce155..e95ff62e2 100644
--- a/lib/argmatch.h
+++ b/lib/argmatch.h
@@ -1,18 +1,12 @@
-#ifndef ARGMATCH_H
-#define ARGMATCH_H 1
+/* argmatch.h -- declarations for matching arguments against option lists */
-#ifndef __P
-# if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
-# define __P(args) args
-# else
-# define __P(args) ()
-# endif /* GCC. */
-#endif /* Not __P. */
+#if defined __STDC__ || __GNUC__
+# define __ARGMATCH_P(args) args
+#else
+# define __ARGMATCH_P(args) ()
+#endif
-int
- argmatch __P ((const char *arg, const char *const *optlist));
+int argmatch __ARGMATCH_P ((const char *, const char * const *));
+void invalid_arg __ARGMATCH_P ((const char *, const char *, int));
-void
- invalid_arg __P ((const char *kind, const char *value, int problem));
-
-#endif /* ARGMATCH_H */
+extern char const program_name[];