2003-12-24 23:54:08 -05:00
|
|
|
#define RUBY_VERSION "1.9.0"
|
2007-12-31 11:04:11 -05:00
|
|
|
#define RUBY_RELEASE_DATE "2008-01-01"
|
2003-12-24 23:54:08 -05:00
|
|
|
#define RUBY_VERSION_CODE 190
|
2007-12-31 11:04:11 -05:00
|
|
|
#define RUBY_RELEASE_CODE 20080101
|
2006-11-26 04:34:32 -05:00
|
|
|
#define RUBY_PATCHLEVEL 0
|
2002-12-24 03:53:56 -05:00
|
|
|
|
|
|
|
#define RUBY_VERSION_MAJOR 1
|
2003-12-24 23:54:08 -05:00
|
|
|
#define RUBY_VERSION_MINOR 9
|
|
|
|
#define RUBY_VERSION_TEENY 0
|
2007-12-31 11:04:11 -05:00
|
|
|
#define RUBY_RELEASE_YEAR 2008
|
|
|
|
#define RUBY_RELEASE_MONTH 1
|
|
|
|
#define RUBY_RELEASE_DAY 1
|
2004-06-23 12:29:16 -04:00
|
|
|
|
2007-05-01 04:45:28 -04:00
|
|
|
#ifdef RUBY_EXTERN
|
2004-06-23 12:29:16 -04:00
|
|
|
RUBY_EXTERN const char ruby_version[];
|
|
|
|
RUBY_EXTERN const char ruby_release_date[];
|
|
|
|
RUBY_EXTERN const char ruby_platform[];
|
2006-11-26 04:34:32 -05:00
|
|
|
RUBY_EXTERN const int ruby_patchlevel;
|
2007-12-22 07:28:22 -05:00
|
|
|
RUBY_EXTERN const char ruby_description[];
|
|
|
|
RUBY_EXTERN const char ruby_copyright[];
|
2007-05-01 04:45:28 -04:00
|
|
|
#endif
|
2007-12-22 07:28:22 -05:00
|
|
|
|
|
|
|
#define RUBY_AUTHOR "Yukihiro Matsumoto"
|
|
|
|
#define RUBY_BIRTH_YEAR 1993
|
|
|
|
#define RUBY_BIRTH_MONTH 2
|
|
|
|
#define RUBY_BIRTH_DAY 24
|
|
|
|
|
|
|
|
#ifndef RUBY_REVISION
|
|
|
|
#include "revision.h"
|
|
|
|
#endif
|
|
|
|
#ifndef RUBY_REVISION
|
|
|
|
#define RUBY_REVISION 0
|
|
|
|
#endif
|
|
|
|
|
2007-12-23 10:56:41 -05:00
|
|
|
#if RUBY_VERSION_TEENY > 0 && RUBY_PATCHLEVEL < 5000 && !RUBY_REVISION
|
2007-12-22 07:28:22 -05:00
|
|
|
#define RUBY_RELEASE_STR "patchlevel"
|
|
|
|
#define RUBY_RELEASE_NUM RUBY_PATCHLEVEL
|
|
|
|
#else
|
|
|
|
#ifdef RUBY_BRANCH_NAME
|
|
|
|
#define RUBY_RELEASE_STR RUBY_BRANCH_NAME
|
|
|
|
#else
|
|
|
|
#define RUBY_RELEASE_STR "revision"
|
|
|
|
#endif
|
|
|
|
#define RUBY_RELEASE_NUM RUBY_REVISION
|
|
|
|
#endif
|
|
|
|
|
|
|
|
# define RUBY_DESCRIPTION \
|
|
|
|
"ruby "RUBY_VERSION \
|
|
|
|
" ("RUBY_RELEASE_DATE" " \
|
|
|
|
RUBY_RELEASE_STR" " \
|
|
|
|
STRINGIZE(RUBY_RELEASE_NUM)") " \
|
|
|
|
"["RUBY_PLATFORM"]"
|
|
|
|
# define RUBY_COPYRIGHT \
|
|
|
|
"ruby - Copyright (C) " \
|
|
|
|
STRINGIZE(RUBY_BIRTH_YEAR)"-" \
|
|
|
|
STRINGIZE(RUBY_RELEASE_YEAR)" " \
|
|
|
|
RUBY_AUTHOR
|