ruby-changes:53918
From: duerst <ko1@a...>
Date: Mon, 3 Dec 2018 07:05:40 +0900 (JST)
Subject: [ruby-changes:53918] duerst:r66138 (trunk): fix order of declarations and code at start of node_extended_grapheme_cluster()
duerst 2018-12-03 07:05:36 +0900 (Mon, 03 Dec 2018) New Revision: 66138 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66138 Log: fix order of declarations and code at start of node_extended_grapheme_cluster() Modified files: trunk/regparse.c Index: regparse.c =================================================================== --- regparse.c (revision 66137) +++ regparse.c (revision 66138) @@ -5843,12 +5843,11 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L5843 #ifdef USE_UNICODE_PROPERTIES if (ONIGENC_IS_UNICODE(env->enc)) { - Node **seq = node_array; /* seq[5] */ - Node **alts = node_array+5; /* alts[4] */ - /* UTF-8, UTF-16BE/LE, UTF-32BE/LE */ CClassNode* cc; OnigCodePoint sb_out = (ONIGENC_MBC_MINLEN(env->enc) > 1) ? 0x00 : 0x80; + Node **seq = node_array; /* seq[5] */ + Node **alts = node_array+5; /* alts[4] */ for (i=0; i<8; i++) node_array[i] = NULL_NODE; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/