Last change
on this file since 331 was 331, checked in by coas-nagasima, 6 years ago |
prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc
|
File size:
479 bytes
|
Rev | Line | |
---|
[331] | 1 | #include "mruby.h"
|
---|
| 2 | #include "mruby/class.h"
|
---|
| 3 | #include "mruby/string.h"
|
---|
| 4 |
|
---|
| 5 | static mrb_value
|
---|
| 6 | mrb_mod_name(mrb_state *mrb, mrb_value self)
|
---|
| 7 | {
|
---|
| 8 | mrb_value name = mrb_class_path(mrb, mrb_class_ptr(self));
|
---|
| 9 | return mrb_nil_p(name)? name : mrb_str_dup(mrb, name);
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | void
|
---|
| 13 | mrb_mruby_class_ext_gem_init(mrb_state *mrb)
|
---|
| 14 | {
|
---|
| 15 | struct RClass *mod = mrb->module_class;
|
---|
| 16 |
|
---|
| 17 | mrb_define_method(mrb, mod, "name", mrb_mod_name, MRB_ARGS_NONE());
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | void
|
---|
| 21 | mrb_mruby_class_ext_gem_final(mrb_state *mrb)
|
---|
| 22 | {
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.