ruby-changes:53894
From: duerst <ko1@a...>
Date: Sat, 1 Dec 2018 15:07:59 +0900 (JST)
Subject: [ruby-changes:53894] duerst:r66113 (trunk): eliminate a list with only one element
duerst 2018-12-01 15:07:53 +0900 (Sat, 01 Dec 2018) New Revision: 66113 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66113 Log: eliminate a list with only one element Modified files: trunk/regparse.c Index: regparse.c =================================================================== --- regparse.c (revision 66112) +++ regparse.c (revision 66113) @@ -6129,15 +6129,10 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L6129 /* RI-Sequence := Regional_Indicator{2} */ R_ERR(quantify_property_node(&np1, env, "Regional_Indicator", '2')); - tmp = node_new_list(np1, list2); /* here, list2 should be guaranteed to be NULL */ - if (IS_NULL(tmp)) goto err; - list2 = tmp; - np1 = NULL; - - tmp = onig_node_new_alt(list2, alt); + tmp = onig_node_new_alt(np1, alt); if (IS_NULL(tmp)) goto err; alt = tmp; - list2 = NULL; + np1 = NULL; tmp = node_new_list(alt, list); if (IS_NULL(tmp)) goto err; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/