ruby-changes:39476
From: normal <ko1@a...>
Date: Thu, 13 Aug 2015 08:43:59 +0900 (JST)
Subject: [ruby-changes:39476] normal:r51557 (trunk): load.c: match comment with variable (`e' => `ext') [ci skip]
normal 2015-08-13 08:43:41 +0900 (Thu, 13 Aug 2015) New Revision: 51557 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51557 Log: load.c: match comment with variable (`e' => `ext') [ci skip] Modified files: trunk/load.c Index: load.c =================================================================== --- load.c (revision 51556) +++ load.c (revision 51557) @@ -215,8 +215,8 @@ features_index_add_single(VALUE short_fe https://github.com/ruby/ruby/blob/trunk/load.c#L215 /* Add to the loaded-features index all the required entries for `feature`, located at `offset` in $LOADED_FEATURES. We add an index entry at each string `short_feature` for which - feature == "#{prefix}#{short_feature}#{e}" - where `e` is empty or matches %r{^\.[^./]*$}, and `prefix` is empty + feature == "#{prefix}#{short_feature}#{ext}" + where `ext` is empty or matches %r{^\.[^./]*$}, and `prefix` is empty or ends in '/'. This maintains the invariant that `rb_feature_p()` relies on for its fast lookup. */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/