diff options
| author | David M. Syzdek <david@syzdek.net> | 2009-01-05 06:32:22 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2009-01-05 06:32:22 -0900 |
| commit | ff355ece9c4d5583b1be3ab4cf3dc2575f61b3e4 (patch) | |
| tree | 6f1d8bb9dd85427645b3e200618146387e193011 /src/posixregex.c | |
| parent | 9ba4880c2ef932080a5644d5c11e506bdcec2d3f (diff) | |
| download | dmstools-ff355ece9c4d5583b1be3ab4cf3dc2575f61b3e4.tar.gz dmstools-ff355ece9c4d5583b1be3ab4cf3dc2575f61b3e4.tar.bz2 dmstools-ff355ece9c4d5583b1be3ab4cf3dc2575f61b3e4.tar.xz dmstools-ff355ece9c4d5583b1be3ab4cf3dc2575f61b3e4.zip | |
Updating version output for posixregex.c
Diffstat (limited to 'src/posixregex.c')
| -rw-r--r-- | src/posixregex.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/posixregex.c b/src/posixregex.c index db7deb6..49025a6 100644 --- a/src/posixregex.c +++ b/src/posixregex.c | |||
| @@ -100,6 +100,18 @@ | |||
| 100 | #define PROGRAM_NAME "posixregex" | 100 | #define PROGRAM_NAME "posixregex" |
| 101 | #endif | 101 | #endif |
| 102 | 102 | ||
| 103 | #ifndef PACKAGE_NAME | ||
| 104 | #define PACKAGE_NAME "" | ||
| 105 | #endif | ||
| 106 | |||
| 107 | #ifndef PACKAGE_VERSION | ||
| 108 | #define PACKAGE_VERSION "" | ||
| 109 | #endif | ||
| 110 | |||
| 111 | #ifndef PACKAGE_BUGREPORT | ||
| 112 | #define PACKAGE_BUGREPORT "david@syzdek.net" | ||
| 113 | #endif | ||
| 114 | |||
| 103 | #ifndef PARAMS | 115 | #ifndef PARAMS |
| 104 | #define PARAMS(protos) protos | 116 | #define PARAMS(protos) protos |
| 105 | #endif | 117 | #endif |
| @@ -325,14 +337,14 @@ void my_usage(void) | |||
| 325 | /// displays version | 337 | /// displays version |
| 326 | void my_version(void) | 338 | void my_version(void) |
| 327 | { | 339 | { |
| 328 | #if defined(PACKAGE_NAME) && defined(PACKAGE_VERSION) && defined(PACKAGE_COPYRIGHT) | ||
| 329 | printf("%s (%s) %s\n", PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION); | 340 | printf("%s (%s) %s\n", PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION); |
| 330 | printf("Written by David M. Syzdek.\n"); | 341 | printf("Written by David M. Syzdek.\n"); |
| 331 | printf("\n"); | 342 | printf("\n"); |
| 343 | #ifdef PACKAGE_COPYRIGHT | ||
| 332 | printf("%s\n", PACKAGE_COPYRIGHT); | 344 | printf("%s\n", PACKAGE_COPYRIGHT); |
| 345 | #endif | ||
| 333 | printf("This is free software; see the source for copying conditions. There is NO\n"); | 346 | printf("This is free software; see the source for copying conditions. There is NO\n"); |
| 334 | printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"); | 347 | printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"); |
| 335 | #endif | ||
| 336 | return; | 348 | return; |
| 337 | } | 349 | } |
| 338 | 350 | ||
