diff options
author | Andy Wingo <wingo@pobox.com> | 2011-02-13 22:02:01 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-02-13 22:02:01 +0100 |
commit | e8ab529d57e2c3820e567737bd53c6e05e484c4d (patch) | |
tree | 1abbe3d22607e19d78c10f718513b2d6d43ff392 /libguile/_scm.h | |
parent | 333a81ccbadc7a81abec1aff4b5981b9fad3786b (diff) | |
download | guile-e8ab529d57e2c3820e567737bd53c6e05e484c4d.tar.gz |
bump objcode version to 2.0; introduce minor-version compatibility
* libguile/_scm.h (SCM_OBJCODE_MAJOR_VERSION): Bump to 2.
(SCM_OBJCODE_MINOR_VERSION): Reset to 0.
(SCM_OBJCODE_MACHINE_VERSION_STRING, SCM_OBJCODE_COOKIE): Reorder so
the minor version is the last byte.
* libguile/objcodes.c (make_objcode_by_mmap): Accept objcodes whose
minor version is less than SCM_OBJCODE_MINOR_VERSION, not just equal
to.
Diffstat (limited to 'libguile/_scm.h')
-rw-r--r-- | libguile/_scm.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libguile/_scm.h b/libguile/_scm.h index 5421116e4..284213032 100644 --- a/libguile/_scm.h +++ b/libguile/_scm.h @@ -3,7 +3,7 @@ #ifndef SCM__SCM_H #define SCM__SCM_H -/* Copyright (C) 1995,1996,2000,2001, 2002, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,2000,2001, 2002, 2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -205,8 +205,8 @@ #define SCM_OBJCODE_WORD_SIZE SCM_CPP_STRINGIFY (SIZEOF_VOID_P) /* Major and minor versions must be single characters. */ -#define SCM_OBJCODE_MAJOR_VERSION 0 -#define SCM_OBJCODE_MINOR_VERSION T +#define SCM_OBJCODE_MAJOR_VERSION 2 +#define SCM_OBJCODE_MINOR_VERSION 0 #define SCM_OBJCODE_MAJOR_VERSION_STRING \ SCM_CPP_STRINGIFY(SCM_OBJCODE_MAJOR_VERSION) #define SCM_OBJCODE_MINOR_VERSION_STRING \ @@ -214,11 +214,11 @@ #define SCM_OBJCODE_VERSION_STRING \ SCM_OBJCODE_MAJOR_VERSION_STRING "." SCM_OBJCODE_MINOR_VERSION_STRING #define SCM_OBJCODE_MACHINE_VERSION_STRING \ - SCM_OBJCODE_VERSION_STRING "-" SCM_OBJCODE_ENDIANNESS "-" SCM_OBJCODE_WORD_SIZE + SCM_OBJCODE_ENDIANNESS "-" SCM_OBJCODE_WORD_SIZE "-" SCM_OBJCODE_VERSION_STRING /* The objcode magic header. */ #define SCM_OBJCODE_COOKIE \ - "GOOF-" SCM_OBJCODE_MACHINE_VERSION_STRING "---" + "GOOF----" SCM_OBJCODE_MACHINE_VERSION_STRING #endif /* SCM__SCM_H */ |