From bc71caffc360874d10473d274f57f7c0f689a8b1 Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Fri, 27 Jul 2012 22:07:56 +0530 Subject: [PATCH] Display release version in usage text. --- main.c | 3 ++- pcompress.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 6fa7101..24167eb 100644 --- a/main.c +++ b/main.c @@ -93,6 +93,7 @@ static void usage(void) { fprintf(stderr, + "\nPcompress Version %f\n\n" "Usage:\n" "1) To compress a file:\n" " %s -c [-l ] [-s ] \n" @@ -127,7 +128,7 @@ usage(void) "6) Number of threads can optionally be specified: -t <1 - 256 count>\n" "7) Pass '-M' to display memory allocator statistics\n" "8) Pass '-C' to display compression statistics\n\n", - exec_name, exec_name, exec_name, exec_name, exec_name, exec_name); + UTILITY_VERSION, exec_name, exec_name, exec_name, exec_name, exec_name, exec_name); } void diff --git a/pcompress.h b/pcompress.h index 05cdfc7..a0b3f48 100644 --- a/pcompress.h +++ b/pcompress.h @@ -39,6 +39,7 @@ extern "C" { #define MIN_CHUNK 2048 #define VERSION 2 #define FLAG_DEDUP 1 +#define UTILITY_VERSION 0.5 #define COMPRESSED 1 #define UNCOMPRESSED 0