• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

修订版f1160977022ed13017c9604dc91bf7c33960f480 (tree)
时间2014-07-15 01:19:19
作者Yukihiro "Matz" Matsumoto <matz@ruby...>
CommiterYukihiro "Matz" Matsumoto

Log Message

Merge pull request #2471 from take-cheeze/const_defined_at_ret

Use mrb_bool as return type of mrb_const_defined_at.

更改概述

差异

--- a/include/mruby/variable.h
+++ b/include/mruby/variable.h
@@ -48,7 +48,7 @@ void mrb_iv_set(mrb_state *mrb, mrb_value obj, mrb_sym sym, mrb_value v);
4848 mrb_bool mrb_iv_defined(mrb_state*, mrb_value, mrb_sym);
4949 mrb_value mrb_iv_remove(mrb_state *mrb, mrb_value obj, mrb_sym sym);
5050 void mrb_iv_copy(mrb_state *mrb, mrb_value dst, mrb_value src);
51-int mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id);
51+mrb_bool mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id);
5252 mrb_value mrb_mod_constants(mrb_state *mrb, mrb_value mod);
5353 mrb_value mrb_f_global_variables(mrb_state *mrb, mrb_value self);
5454 mrb_value mrb_gv_get(mrb_state *mrb, mrb_sym sym);
--- a/src/variable.c
+++ b/src/variable.c
@@ -1085,7 +1085,7 @@ retry:
10851085 return FALSE;
10861086 }
10871087
1088-int
1088+mrb_bool
10891089 mrb_const_defined_at(mrb_state *mrb, struct RClass *klass, mrb_sym id)
10901090 {
10911091 return mrb_const_defined_0(mrb, klass, id, TRUE, FALSE);