ruby-changes:32109
From: a_matsuda <ko1@a...>
Date: Sat, 14 Dec 2013 10:19:14 +0900 (JST)
Subject: [ruby-changes:32109] a_matsuda:r44188 (trunk): * ext/psych/yaml/emitter.c: Fix typo in the variable name
a_matsuda 2013-12-14 10:19:06 +0900 (Sat, 14 Dec 2013) New Revision: 44188 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44188 Log: * ext/psych/yaml/emitter.c: Fix typo in the variable name s/preceeded/preceded/ Modified files: trunk/ext/psych/yaml/emitter.c Index: ext/psych/yaml/emitter.c =================================================================== --- ext/psych/yaml/emitter.c (revision 44187) +++ ext/psych/yaml/emitter.c (revision 44188) @@ -1493,7 +1493,7 @@ yaml_emitter_analyze_scalar(yaml_emitter https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L1493 int break_space = 0; int space_break = 0; - int preceeded_by_whitespace = 0; + int preceded_by_whitespace = 0; int followed_by_whitespace = 0; int previous_space = 0; int previous_break = 0; @@ -1524,7 +1524,7 @@ yaml_emitter_analyze_scalar(yaml_emitter https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L1524 flow_indicators = 1; } - preceeded_by_whitespace = 1; + preceded_by_whitespace = 1; followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string)); while (string.pointer != string.end) @@ -1570,7 +1570,7 @@ yaml_emitter_analyze_scalar(yaml_emitter https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L1570 } } - if (CHECK(string, '#') && preceeded_by_whitespace) { + if (CHECK(string, '#') && preceded_by_whitespace) { flow_indicators = 1; block_indicators = 1; } @@ -1619,7 +1619,7 @@ yaml_emitter_analyze_scalar(yaml_emitter https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/emitter.c#L1619 previous_break = 0; } - preceeded_by_whitespace = IS_BLANKZ(string); + preceded_by_whitespace = IS_BLANKZ(string); MOVE(string); if (string.pointer != string.end) { followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/