mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use C style comments instead of C++ style comments
This commit is contained in:
+2
-2
@@ -153,11 +153,11 @@ mrb_proc_arity(mrb_state *mrb, mrb_value self)
|
||||
int ma, ra, pa, arity;
|
||||
|
||||
if (MRB_PROC_CFUNC_P(p)) {
|
||||
// TODO cfunc aspec not implemented yet
|
||||
/* TODO cfunc aspec not implemented yet */
|
||||
return mrb_fixnum_value(-1);
|
||||
}
|
||||
|
||||
// arity is depend on OP_ENTER
|
||||
/* arity is depend on OP_ENTER */
|
||||
if (GET_OPCODE(*iseq) != OP_ENTER) {
|
||||
return mrb_fixnum_value(0);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1799,7 +1799,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
|
||||
}
|
||||
}
|
||||
else if (split_type == string) {
|
||||
char *ptr = RSTRING_PTR(str); // s->as.ary
|
||||
char *ptr = RSTRING_PTR(str); /* s->as.ary */
|
||||
char *temp = ptr;
|
||||
char *eptr = RSTRING_END(str);
|
||||
mrb_int slen = RSTRING_LEN(spat);
|
||||
|
||||
Reference in New Issue
Block a user