summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/argp.h
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-10-24 19:28:16 +0000
committerThomas Bushnell <thomas@gnu.org>1996-10-24 19:28:16 +0000
commit592615ea7df69c2728362bd4238730d050c07312 (patch)
tree1c064c8fd5c45ec621799def8cbcf6d1f11cdafb /libshouldbeinlibc/argp.h
parent46b6fea942cd4840f5510cd06629e8c91fb55c11 (diff)
Mon Oct 21 22:00:44 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* argp.h: Add extern inline protection. * idvec.h: Likewise. * maptime.h: Likewise. * argp.c, idvec-funcs.c, maptime-funcs.c: New files. * Makefile (SRCS): Add argp.c, idvec-funcs.c, and maptime-funcs.c.
Diffstat (limited to 'libshouldbeinlibc/argp.h')
-rw-r--r--libshouldbeinlibc/argp.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/libshouldbeinlibc/argp.h b/libshouldbeinlibc/argp.h
index 75aec1c9..8da5e10b 100644
--- a/libshouldbeinlibc/argp.h
+++ b/libshouldbeinlibc/argp.h
@@ -27,6 +27,11 @@
#include <errno.h>
#include <ctype.h>
#include <getopt.h>
+
+#ifndef ARGP_EI
+#define ARGP_EI extern inline
+#endif
+
/* A description of a particular option. A pointer to an array of
these is passed in the OPTIONS field of an argp structure. Each option
@@ -327,7 +332,7 @@ extern void argp_help (const struct argp *argp, FILE *stream, unsigned flags,
void argp_state_help (struct argp_state *state, FILE *stream, unsigned flags);
/* Possibly output the standard usage message for ARGP to stderr and exit. */
-extern inline void
+ARGP_EI void
argp_usage (struct argp_state *state)
{
argp_state_help (state, stderr, ARGP_HELP_STD_USAGE);
@@ -352,7 +357,7 @@ void argp_failure (struct argp_state *state,
__attribute__ ((format (printf, 4, 5)));
/* Returns true if the option OPT is a valid short option. */
-extern inline int
+ARGP_EI int
_option_is_short (const struct argp_option *opt)
{
int key = opt->key;
@@ -361,7 +366,7 @@ _option_is_short (const struct argp_option *opt)
/* Returns true if the option OPT is in fact the last (unused) entry in an
options array. */
-extern inline int
+ARGP_EI int
_option_is_end (const struct argp_option *opt)
{
return !opt->key && !opt->name && !opt->doc && !opt->group;