summaryrefslogtreecommitdiffstats
path: root/lib/system.h
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-02-16 12:32:02 +0100
committerMark Wielaard <[email protected]>2017-02-17 10:55:28 +0100
commite22cc80923f94e54c9384421904461958899db5b (patch)
tree944b0153b16386401f56572375440e15199bc2fc /lib/system.h
parentb3248e684cedf66239710a5f16a6b45294f183bc (diff)
Move print_version into printversion.{h|c}
Rename version.c so that the implementation is called after the header and the header doesn't clash with the toplevel version.h. print_version depends on argp and is only used in the tools. Signed-off-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'lib/system.h')
-rw-r--r--lib/system.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/system.h b/lib/system.h
index 429b0c33..2d057025 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -33,7 +33,6 @@
# include <config.h>
#endif
-#include <argp.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
@@ -145,21 +144,6 @@ pread_retry (int fd, void *buf, size_t len, off_t off)
return recvd;
}
-
-/* We need define two variables, argp_program_version_hook and
- argp_program_bug_address, in all programs. argp.h declares these
- variables as non-const (which is correct in general). But we can
- do better, it is not going to change. So we want to move them into
- the .rodata section. Define macros to do the trick. */
-#define ARGP_PROGRAM_VERSION_HOOK_DEF \
- void (*const apvh) (FILE *, struct argp_state *) \
- __asm ("argp_program_version_hook")
-#define ARGP_PROGRAM_BUG_ADDRESS_DEF \
- const char *const apba__ __asm ("argp_program_bug_address")
-
-/* Defined in version.c. Common ARGP_PROGRAM_VERSION_HOOK_DEF. */
-void print_version (FILE *stream, struct argp_state *state);
-
/* The demangler from libstdc++. */
extern char *__cxa_demangle (const char *mangled_name, char *output_buffer,
size_t *length, int *status);