00001 /********************************************************************** 00002 00003 ruby/version.h - 00004 00005 $Author: usa $ 00006 created at: Wed May 13 12:56:56 JST 2009 00007 00008 Copyright (C) 1993-2009 Yukihiro Matsumoto 00009 Copyright (C) 2000 Network Applied Communication Laboratory, Inc. 00010 Copyright (C) 2000 Information-technology Promotion Agency, Japan 00011 00012 **********************************************************************/ 00013 00014 /* 00015 * This file contains only 00016 * - never-changeable informations, and 00017 * - interfaces accessible from extension libraries. 00018 * 00019 * Never try to check RUBY_VERSION_CODE etc in extension libraries, 00020 * check the features with mkmf.rb instead. 00021 */ 00022 00023 #ifndef RUBY_VERSION_H 00024 #define RUBY_VERSION_H 1 00025 00026 /* The origin. */ 00027 #define RUBY_AUTHOR "Yukihiro Matsumoto" 00028 #define RUBY_BIRTH_YEAR 1993 00029 #define RUBY_BIRTH_MONTH 2 00030 #define RUBY_BIRTH_DAY 24 00031 00032 /* API version */ 00033 #define RUBY_API_VERSION_MAJOR 2 00034 #define RUBY_API_VERSION_MINOR 1 00035 #define RUBY_API_VERSION_TEENY 0 00036 #define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY) 00037 00038 #ifdef RUBY_EXTERN 00039 #if defined(__cplusplus) 00040 extern "C" { 00041 #if 0 00042 } /* satisfy cc-mode */ 00043 #endif 00044 #endif 00045 00046 RUBY_SYMBOL_EXPORT_BEGIN 00047 00048 /* 00049 * Interfaces from extension libraries. 00050 * 00051 * Before using these infos, think thrice whether they are really 00052 * necessary or not, and if the answer was yes, think twice a week 00053 * later again. 00054 */ 00055 RUBY_EXTERN const int ruby_api_version[3]; 00056 RUBY_EXTERN const char ruby_version[]; 00057 RUBY_EXTERN const char ruby_release_date[]; 00058 RUBY_EXTERN const char ruby_platform[]; 00059 RUBY_EXTERN const int ruby_patchlevel; 00060 RUBY_EXTERN const char ruby_description[]; 00061 RUBY_EXTERN const char ruby_copyright[]; 00062 RUBY_EXTERN const char ruby_engine[]; 00063 00064 RUBY_SYMBOL_EXPORT_END 00065 00066 #if defined(__cplusplus) 00067 #if 0 00068 { /* satisfy cc-mode */ 00069 #endif 00070 } /* extern "C" { */ 00071 #endif 00072 #endif 00073 00074 #endif 00075
1.6.1