diff options
author | Akinori Ito <aito@eie.yz.yamagata-u.ac.jp> | 2001-11-09 04:59:17 +0000 |
---|---|---|
committer | Akinori Ito <aito@eie.yz.yamagata-u.ac.jp> | 2001-11-09 04:59:17 +0000 |
commit | 6c63633545c254dc085402e0f927a6826d1dd229 (patch) | |
tree | 0126fb5598304c713ea1276e294da9098b5df3b4 /gc/add_gc_prefix.c | |
parent | Initial revision (diff) | |
download | w3m-6c63633545c254dc085402e0f927a6826d1dd229.tar.gz w3m-6c63633545c254dc085402e0f927a6826d1dd229.zip |
Updates from 0.2.1 into 0.2.1-inu-1.5release-0-2-1-inu-1-5
Diffstat (limited to 'gc/add_gc_prefix.c')
-rw-r--r-- | gc/add_gc_prefix.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gc/add_gc_prefix.c b/gc/add_gc_prefix.c index 0d1ab6d..59515c7 100644 --- a/gc/add_gc_prefix.c +++ b/gc/add_gc_prefix.c @@ -1,4 +1,5 @@ # include <stdio.h> +# include "version.h" int main(argc, argv, envp) int argc; @@ -8,7 +9,12 @@ char ** envp; int i; for (i = 1; i < argc; i++) { - printf("gc/%s ", argv[i]); + if (GC_ALPHA_VERSION == GC_NOT_ALPHA) { + printf("gc%d.%d/%s ", GC_VERSION_MAJOR, GC_VERSION_MINOR, argv[i]); + } else { + printf("gc%d.%dalpha%d/%s ", GC_VERSION_MAJOR, + GC_VERSION_MINOR, GC_ALPHA_VERSION, argv[i]); + } } return(0); } |