mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Cosmetic changes (removing spaces before * in return types).
This commit is contained in:
+9
-9
@@ -105,7 +105,7 @@ prepare_singleton_class(mrb_state *mrb, struct RBasic *o)
|
||||
mrb_obj_iv_set(mrb, (struct RObject*)sc, mrb_intern_lit(mrb, "__attached__"), mrb_obj_value(o));
|
||||
}
|
||||
|
||||
static struct RClass *
|
||||
static struct RClass*
|
||||
class_from_sym(mrb_state *mrb, struct RClass *klass, mrb_sym id)
|
||||
{
|
||||
mrb_value c = mrb_const_get(mrb, mrb_obj_value(klass), id);
|
||||
@@ -114,7 +114,7 @@ class_from_sym(mrb_state *mrb, struct RClass *klass, mrb_sym id)
|
||||
return mrb_class_ptr(c);
|
||||
}
|
||||
|
||||
static struct RClass *
|
||||
static struct RClass*
|
||||
module_from_sym(mrb_state *mrb, struct RClass *klass, mrb_sym id)
|
||||
{
|
||||
mrb_value c = mrb_const_get(mrb, mrb_obj_value(klass), id);
|
||||
@@ -336,19 +336,19 @@ mrb_class_defined_under(mrb_state *mrb, struct RClass *outer, const char *name)
|
||||
return mrb_const_defined_at(mrb, mrb_obj_value(outer), mrb_symbol(sym));
|
||||
}
|
||||
|
||||
MRB_API struct RClass *
|
||||
MRB_API struct RClass*
|
||||
mrb_class_get_under(mrb_state *mrb, struct RClass *outer, const char *name)
|
||||
{
|
||||
return class_from_sym(mrb, outer, mrb_intern_cstr(mrb, name));
|
||||
}
|
||||
|
||||
MRB_API struct RClass *
|
||||
MRB_API struct RClass*
|
||||
mrb_class_get(mrb_state *mrb, const char *name)
|
||||
{
|
||||
return mrb_class_get_under(mrb, mrb->object_class, name);
|
||||
}
|
||||
|
||||
MRB_API struct RClass *
|
||||
MRB_API struct RClass*
|
||||
mrb_exc_get(mrb_state *mrb, const char *name)
|
||||
{
|
||||
struct RClass *exc, *e;
|
||||
@@ -368,13 +368,13 @@ mrb_exc_get(mrb_state *mrb, const char *name)
|
||||
return mrb->eException_class;
|
||||
}
|
||||
|
||||
MRB_API struct RClass *
|
||||
MRB_API struct RClass*
|
||||
mrb_module_get_under(mrb_state *mrb, struct RClass *outer, const char *name)
|
||||
{
|
||||
return module_from_sym(mrb, outer, mrb_intern_cstr(mrb, name));
|
||||
}
|
||||
|
||||
MRB_API struct RClass *
|
||||
MRB_API struct RClass*
|
||||
mrb_module_get(mrb_state *mrb, const char *name)
|
||||
{
|
||||
return mrb_module_get_under(mrb, mrb->object_class, name);
|
||||
@@ -396,7 +396,7 @@ mrb_module_get(mrb_state *mrb, const char *name)
|
||||
* \note if a class named \a name is already defined and its superclass is
|
||||
* \a super, the function just returns the defined class.
|
||||
*/
|
||||
MRB_API struct RClass *
|
||||
MRB_API struct RClass*
|
||||
mrb_define_class_under(mrb_state *mrb, struct RClass *outer, const char *name, struct RClass *super)
|
||||
{
|
||||
mrb_sym id = mrb_intern_cstr(mrb, name);
|
||||
@@ -1639,7 +1639,7 @@ mrb_class_path(mrb_state *mrb, struct RClass *c)
|
||||
return mrb_str_dup(mrb, path);
|
||||
}
|
||||
|
||||
MRB_API struct RClass *
|
||||
MRB_API struct RClass*
|
||||
mrb_class_real(struct RClass* cl)
|
||||
{
|
||||
if (cl == 0)
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
#include <mruby/irep.h>
|
||||
#include <mruby/debug.h>
|
||||
|
||||
static mrb_irep_debug_info_file *
|
||||
static mrb_irep_debug_info_file*
|
||||
get_file(mrb_irep_debug_info *info, uint32_t pc)
|
||||
{
|
||||
mrb_irep_debug_info_file **ret;
|
||||
@@ -108,7 +108,7 @@ mrb_debug_get_line(mrb_irep *irep, uint32_t pc)
|
||||
return -1;
|
||||
}
|
||||
|
||||
MRB_API mrb_irep_debug_info *
|
||||
MRB_API mrb_irep_debug_info*
|
||||
mrb_debug_info_alloc(mrb_state *mrb, mrb_irep *irep)
|
||||
{
|
||||
static const mrb_irep_debug_info initial = { 0, 0, NULL };
|
||||
@@ -121,7 +121,7 @@ mrb_debug_info_alloc(mrb_state *mrb, mrb_irep *irep)
|
||||
return ret;
|
||||
}
|
||||
|
||||
MRB_API mrb_irep_debug_info_file *
|
||||
MRB_API mrb_irep_debug_info_file*
|
||||
mrb_debug_info_append_file(mrb_state *mrb, mrb_irep *irep,
|
||||
uint32_t start_pos, uint32_t end_pos)
|
||||
{
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@ static mrb_code call_iseq[] = {
|
||||
MKOP_A(OP_CALL, 0),
|
||||
};
|
||||
|
||||
struct RProc *
|
||||
struct RProc*
|
||||
mrb_proc_new(mrb_state *mrb, mrb_irep *irep)
|
||||
{
|
||||
struct RProc *p;
|
||||
@@ -64,7 +64,7 @@ closure_setup(mrb_state *mrb, struct RProc *p, int nlocals)
|
||||
mrb_field_write_barrier(mrb, (struct RBasic *)p, (struct RBasic *)p->env);
|
||||
}
|
||||
|
||||
struct RProc *
|
||||
struct RProc*
|
||||
mrb_closure_new(mrb_state *mrb, mrb_irep *irep)
|
||||
{
|
||||
struct RProc *p = mrb_proc_new(mrb, irep);
|
||||
@@ -73,7 +73,7 @@ mrb_closure_new(mrb_state *mrb, mrb_irep *irep)
|
||||
return p;
|
||||
}
|
||||
|
||||
MRB_API struct RProc *
|
||||
MRB_API struct RProc*
|
||||
mrb_proc_new_cfunc(mrb_state *mrb, mrb_func_t func)
|
||||
{
|
||||
struct RProc *p;
|
||||
@@ -86,7 +86,7 @@ mrb_proc_new_cfunc(mrb_state *mrb, mrb_func_t func)
|
||||
return p;
|
||||
}
|
||||
|
||||
MRB_API struct RProc *
|
||||
MRB_API struct RProc*
|
||||
mrb_proc_new_cfunc_with_env(mrb_state *mrb, mrb_func_t func, mrb_int argc, const mrb_value *argv)
|
||||
{
|
||||
struct RProc *p = mrb_proc_new_cfunc(mrb, func);
|
||||
@@ -110,7 +110,7 @@ mrb_proc_new_cfunc_with_env(mrb_state *mrb, mrb_func_t func, mrb_int argc, const
|
||||
return p;
|
||||
}
|
||||
|
||||
MRB_API struct RProc *
|
||||
MRB_API struct RProc*
|
||||
mrb_closure_new_cfunc(mrb_state *mrb, mrb_func_t func, int nlocals)
|
||||
{
|
||||
return mrb_proc_new_cfunc_with_env(mrb, func, nlocals, NULL);
|
||||
|
||||
Reference in New Issue
Block a user