aboutsummaryrefslogtreecommitdiff
path: root/argp/argp-help.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-10-03 00:44:39 +0000
committerRoland McGrath <roland@gnu.org>2003-10-03 00:44:39 +0000
commitd6e68295b4a0e6484fc52b7267d042bdd2c48906 (patch)
tree171b9b44fc733a0c1cc9f17caff0649a77014e92 /argp/argp-help.c
parentf39941e4127085f2120e40ffefc287f8c4a9548a (diff)
downloadglibc-d6e68295b4a0e6484fc52b7267d042bdd2c48906.tar
glibc-d6e68295b4a0e6484fc52b7267d042bdd2c48906.tar.gz
glibc-d6e68295b4a0e6484fc52b7267d042bdd2c48906.tar.bz2
glibc-d6e68295b4a0e6484fc52b7267d042bdd2c48906.zip
2003-10-02 Roland McGrath <roland@redhat.com>
* argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC]. * argp/argp-namefrob.h [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME] (__argp_short_program_name): Don't declare fn, define it as a macro.
Diffstat (limited to 'argp/argp-help.c')
-rw-r--r--argp/argp-help.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/argp/argp-help.c b/argp/argp-help.c
index f39ce2a74f..1365abcea6 100644
--- a/argp/argp-help.c
+++ b/argp/argp-help.c
@@ -87,7 +87,7 @@ char *strerror (int errnum);
#ifndef SIZE_MAX
# define SIZE_MAX ((size_t) -1)
-#endif
+#endif
/* User-selectable (using an environment variable) formatting parameters.
@@ -1696,25 +1696,25 @@ char *__argp_basename (char *name)
char *short_name = strrchr (name, '/');
return short_name ? short_name + 1 : name;
}
-#endif
char *
__argp_short_program_name (void)
{
-#if defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
+# if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
return program_invocation_short_name;
-#elif HAVE_DECL_PROGRAM_INVOCATION_NAME
+# elif HAVE_DECL_PROGRAM_INVOCATION_NAME
return __argp_basename (program_invocation_name);
-#else
+# else
/* FIXME: What now? Miles suggests that it is better to use NULL,
but currently the value is passed on directly to fputs_unlocked,
so that requires more changes. */
-#if __GNUC__
-# warning No reasonable value to return
-#endif /* __GNUC__ */
+# if __GNUC__
+# warning No reasonable value to return
+# endif /* __GNUC__ */
return "";
-#endif
+# endif
}
+#endif
/* Output, if appropriate, a usage message for STATE to STREAM. FLAGS are
from the set ARGP_HELP_*. */