From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: spew@80x24.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id AA8B26EF137 for ; Wed, 12 Aug 2015 23:42:08 +0000 (UTC) From: Eric Wong To: spew@80x24.org Subject: [PATCH] load.c: match comment with variable (`e' => `ext') Date: Wed, 12 Aug 2015 23:42:08 +0000 Message-Id: <1439422928-6499-1-git-send-email-e@80x24.org> List-Id: --- load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/load.c b/load.c index a67fb38..47c3bfe 100644 --- a/load.c +++ b/load.c @@ -215,8 +215,8 @@ features_index_add_single(VALUE short_feature, VALUE offset) /* 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. */ -- EW