summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-11-17 13:40:36 +0400
committerIvan Maidanski <ivmai@mail.ru>2013-11-17 20:05:25 +0400
commit4c4054f156d264a2c657b7fee24c85e0142f9091 (patch)
treec2bb7f876da3a554796b2c06068b547228109afa /tools
parent6d09ad11189adb9edf87b02094590ad6b6f0db29 (diff)
downloadbdwgc-4c4054f156d264a2c657b7fee24c85e0142f9091.tar.gz
Bump version to 7.4.0; change policy regarding version numbersgc7_4_0
* ChangeLog: Update. * README.md: Bump version. * configure.ac (AC_INIT): Likewise. * include/gc_version.h (GC_TMP_VERSION_MINOR): Likewise. * alloc.c (GC_version, GC_get_version): Replace GC_TMP_ALPHA_VERSION with GC_VERSION_MICRO. * doc/debugging.html: Remove comment about "alpha" versions. * doc/overview.html: Likewise. * include/gc.h (GC_get_version): Update comment. * include/gc_version.h (GC_NOT_ALPHA): Remove. * include/gc_version.h (GC_TMP_ALPHA_VERSION): Replace with GC_TMP_VERSION_MICRO; add comment about policy. * m4/gc_set_version.m4 (GC_ALPHA_VERSION): Replace with GC_VERSION_MICRO; update comments; adjust version format test. * tests/test.c (GC_ALPHA_VERSION): Remove. * tools/add_gc_prefix.c (GC_ALPHA_VERSION): Likewise. * tools/gcname.c (GC_ALPHA_VERSION): Likewise. * tests/test.c (CHECH_GCLIB_VERSION): Replace GC_ALPHA_VERSION with GC_VERSION_MICRO. * tools/add_gc_prefix.c (main): Replace "gc%d.%d[alpha%d]" print format with "gc-%d.%d.%d" one. * tools/gcname.c (main): Likewise. * windows-untested/gc.ver (_BETA, GC_VERSION_MICRO): Remove.
Diffstat (limited to 'tools')
-rw-r--r--tools/add_gc_prefix.c12
-rw-r--r--tools/gcname.c12
2 files changed, 4 insertions, 20 deletions
diff --git a/tools/add_gc_prefix.c b/tools/add_gc_prefix.c
index 8369d689..60afa5ff 100644
--- a/tools/add_gc_prefix.c
+++ b/tools/add_gc_prefix.c
@@ -1,21 +1,13 @@
# include <stdio.h>
# include <gc.h>
-#ifndef GC_ALPHA_VERSION
-# define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION
-#endif
-
int main(int argc, char ** argv)
{
int i;
for (i = 1; i < argc; 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]);
- }
+ printf("gc-%d.%d.%d/%s ",
+ GC_VERSION_MAJOR, GC_VERSION_MINOR, GC_VERSION_MICRO, argv[i]);
}
return(0);
}
diff --git a/tools/gcname.c b/tools/gcname.c
index 74be553c..b9f33641 100644
--- a/tools/gcname.c
+++ b/tools/gcname.c
@@ -1,17 +1,9 @@
#include <stdio.h>
#include <gc.h>
-#ifndef GC_ALPHA_VERSION
-# define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION
-#endif
-
int main(void)
{
- if (GC_ALPHA_VERSION == GC_NOT_ALPHA) {
- printf("gc%d.%d", GC_VERSION_MAJOR, GC_VERSION_MINOR);
- } else {
- printf("gc%d.%dalpha%d", GC_VERSION_MAJOR,
- GC_VERSION_MINOR, GC_ALPHA_VERSION);
- }
+ printf("gc-%d.%d.%d",
+ GC_VERSION_MAJOR, GC_VERSION_MINOR, GC_VERSION_MICRO);
return 0;
}