ruby-changes:50440
From: nobu <ko1@a...>
Date: Sat, 24 Feb 2018 11:55:07 +0900 (JST)
Subject: [ruby-changes:50440] nobu:r62558 (trunk): version.h: get rid of duplication
nobu 2018-02-24 11:55:03 +0900 (Sat, 24 Feb 2018) New Revision: 62558 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62558 Log: version.h: get rid of duplication Modified files: trunk/version.c trunk/version.h Index: version.c =================================================================== --- version.c (revision 62557) +++ version.c (revision 62558) @@ -32,8 +32,8 @@ const char ruby_version[] = RUBY_VERSION https://github.com/ruby/ruby/blob/trunk/version.c#L32 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"; Index: version.h =================================================================== --- version.h (revision 62557) +++ version.h (revision 62558) @@ -60,17 +60,11 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L60 # 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) " \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/