2003-12-25 07:54:08 +03:00
|
|
|
#define RUBY_VERSION "1.9.0"
|
2008-01-18 18:15:40 +03:00
|
|
|
#define RUBY_RELEASE_DATE "2008-01-19"
|
2003-12-25 07:54:08 +03:00
|
|
|
#define RUBY_VERSION_CODE 190
|
2008-01-18 18:15:40 +03:00
|
|
|
#define RUBY_RELEASE_CODE 20080119
|
2006-11-26 12:34:32 +03:00
|
|
|
#define RUBY_PATCHLEVEL 0
|
2002-12-24 11:53:56 +03:00
|
|
|
|
|
|
|
#define RUBY_VERSION_MAJOR 1
|
2003-12-25 07:54:08 +03:00
|
|
|
#define RUBY_VERSION_MINOR 9
|
|
|
|
#define RUBY_VERSION_TEENY 0
|
2007-12-31 19:04:11 +03:00
|
|
|
#define RUBY_RELEASE_YEAR 2008
|
|
|
|
#define RUBY_RELEASE_MONTH 1
|
2008-01-18 18:15:40 +03:00
|
|
|
#define RUBY_RELEASE_DAY 19
|
2004-06-23 20:29:16 +04:00
|
|
|
|
2007-05-01 12:45:28 +04:00
|
|
|
#ifdef RUBY_EXTERN
|
2004-06-23 20: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 12:34:32 +03:00
|
|
|
RUBY_EXTERN const int ruby_patchlevel;
|
2007-12-22 15:28:22 +03:00
|
|
|
RUBY_EXTERN const char ruby_description[];
|
|
|
|
RUBY_EXTERN const char ruby_copyright[];
|
2007-05-01 12:45:28 +04:00
|
|
|
#endif
|
2007-12-22 15:28:22 +03: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 18:56:41 +03:00
|
|
|
#if RUBY_VERSION_TEENY > 0 && RUBY_PATCHLEVEL < 5000 && !RUBY_REVISION
|
2007-12-22 15:28:22 +03: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
|