зеркало из https://github.com/github/ruby.git
version.h: get rid of duplication
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4704a0dc3b
Коммит
1bfe28e2e8
|
@ -32,8 +32,8 @@ const char ruby_version[] = RUBY_VERSION;
|
|||
const char ruby_release_date[] = RUBY_RELEASE_DATE;
|
||||
const char ruby_platform[] = RUBY_PLATFORM;
|
||||
const int ruby_patchlevel = RUBY_PATCHLEVEL;
|
||||
const char ruby_description[] = RUBY_DESCRIPTION;
|
||||
const char ruby_description_with_jit[] = RUBY_DESCRIPTION_WITH_JIT;
|
||||
const char ruby_description[] = RUBY_DESCRIPTION_WITH("");
|
||||
const char ruby_description_with_jit[] = RUBY_DESCRIPTION_WITH(" +JIT");
|
||||
const char ruby_copyright[] = RUBY_COPYRIGHT;
|
||||
const char ruby_engine[] = "ruby";
|
||||
|
||||
|
|
10
version.h
10
version.h
|
@ -60,17 +60,11 @@
|
|||
# define RUBY_REVISION_STR ""
|
||||
#endif
|
||||
|
||||
# define RUBY_DESCRIPTION \
|
||||
# define RUBY_DESCRIPTION_WITH(opt) \
|
||||
"ruby "RUBY_VERSION \
|
||||
RUBY_PATCHLEVEL_STR \
|
||||
" ("RUBY_RELEASE_DATE \
|
||||
RUBY_REVISION_STR") " \
|
||||
"["RUBY_PLATFORM"]"
|
||||
# define RUBY_DESCRIPTION_WITH_JIT \
|
||||
"ruby "RUBY_VERSION \
|
||||
RUBY_PATCHLEVEL_STR \
|
||||
" ("RUBY_RELEASE_DATE \
|
||||
RUBY_REVISION_STR") +JIT " \
|
||||
RUBY_REVISION_STR")"opt" " \
|
||||
"["RUBY_PLATFORM"]"
|
||||
# define RUBY_COPYRIGHT \
|
||||
"ruby - Copyright (C) " \
|
||||
|
|
Загрузка…
Ссылка в новой задаче