Display release version in usage text.

This commit is contained in:
Moinak Ghosh 2012-07-27 22:07:56 +05:30
parent c7cc7b469c
commit bc71caffc3
2 changed files with 3 additions and 1 deletions

3
main.c
View file

@ -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 <algorithm> [-l <compress level>] [-s <chunk size>] <file>\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

View file

@ -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