/[public]/getopt/trunk/util-linux-compat.h
ViewVC logotype

Contents of /getopt/trunk/util-linux-compat.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 363 - (show annotations)
Thu Nov 20 12:05:38 2014 UTC (10 years ago) by frodo
File MIME type: text/plain
File size: 612 byte(s)
(Frodo) Use util-linux macro's when printing help or version numbers

A new file util-linux-compat.h has been introduced; it more or less contains
what c.h contains in util-linux.

This implements the following util-linux git commits:
  db433bf737a5fd4e1c7cca5e3603934743eebd1c
  a587cc55209c1bed49f6573aa00f652fcd276bbb
  e421313dc253856af67cc267d2b33f856f18b0e3

1 /*
2 * Fundamental C definitions.
3 */
4
5 #ifndef UTIL_LINUX_C_H
6 #define UTIL_LINUX_C_H
7
8 /*
9 * Constant strings for usage() functions.
10 */
11 #define USAGE_HEADER _("\nUsage:\n")
12 #define USAGE_OPTIONS _("\nOptions:\n")
13 #define USAGE_SEPARATOR _("\n")
14 #define USAGE_HELP _(" -h, --help display this help and exit\n")
15 #define USAGE_VERSION _(" -V, --version output version information and exit\n")
16 #define USAGE_MAN_TAIL(_man) _("\nFor more details see %s.\n"), _man
17
18 #define UTIL_LINUX_VERSION _("%s (enhanced) %s\n"), program_invocation_short_name, program_version
19
20 #endif /* UTIL_LINUX_C_H */

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26