Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
824d3450
Commit
824d3450
authored
Apr 11, 2014
by
Takeshi Watanabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qualify argv argument of API `const`.
parent
b20d711c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
include/mruby.h
include/mruby.h
+4
-4
include/mruby/error.h
include/mruby/error.h
+1
-1
mrbgems/mruby-fiber/src/fiber.c
mrbgems/mruby-fiber/src/fiber.c
+1
-1
src/class.c
src/class.c
+1
-1
src/error.c
src/error.c
+2
-2
src/vm.c
src/vm.c
+2
-2
No files found.
include/mruby.h
View file @
824d3450
...
...
@@ -184,7 +184,7 @@ void mrb_define_module_function(mrb_state*, struct RClass*, const char*, mrb_fun
void
mrb_define_const
(
mrb_state
*
,
struct
RClass
*
,
const
char
*
name
,
mrb_value
);
void
mrb_undef_method
(
mrb_state
*
,
struct
RClass
*
,
const
char
*
);
void
mrb_undef_class_method
(
mrb_state
*
,
struct
RClass
*
,
const
char
*
);
mrb_value
mrb_obj_new
(
mrb_state
*
mrb
,
struct
RClass
*
c
,
int
argc
,
mrb_value
*
argv
);
mrb_value
mrb_obj_new
(
mrb_state
*
mrb
,
struct
RClass
*
c
,
int
argc
,
const
mrb_value
*
argv
);
#define mrb_class_new_instance(mrb,argc,argv,c) mrb_obj_new(mrb,c,argc,argv)
mrb_value
mrb_instance_new
(
mrb_state
*
mrb
,
mrb_value
cv
);
struct
RClass
*
mrb_class_new
(
mrb_state
*
mrb
,
struct
RClass
*
super
);
...
...
@@ -243,8 +243,8 @@ int mrb_get_args(mrb_state *mrb, const char *format, ...);
#define mrb_strlen_lit(lit) (sizeof(lit "") - 1)
mrb_value
mrb_funcall
(
mrb_state
*
,
mrb_value
,
const
char
*
,
int
,...);
mrb_value
mrb_funcall_argv
(
mrb_state
*
,
mrb_value
,
mrb_sym
,
int
,
mrb_value
*
);
mrb_value
mrb_funcall_with_block
(
mrb_state
*
,
mrb_value
,
mrb_sym
,
int
,
mrb_value
*
,
mrb_value
);
mrb_value
mrb_funcall_argv
(
mrb_state
*
,
mrb_value
,
mrb_sym
,
int
,
const
mrb_value
*
);
mrb_value
mrb_funcall_with_block
(
mrb_state
*
,
mrb_value
,
mrb_sym
,
int
,
const
mrb_value
*
,
mrb_value
);
mrb_sym
mrb_intern_cstr
(
mrb_state
*
,
const
char
*
);
mrb_sym
mrb_intern
(
mrb_state
*
,
const
char
*
,
size_t
);
mrb_sym
mrb_intern_static
(
mrb_state
*
,
const
char
*
,
size_t
);
...
...
@@ -390,7 +390,7 @@ mrb_bool mrb_respond_to(mrb_state *mrb, mrb_value obj, mrb_sym mid);
mrb_bool
mrb_obj_is_instance_of
(
mrb_state
*
mrb
,
mrb_value
obj
,
struct
RClass
*
c
);
/* fiber functions (you need to link mruby-fiber mrbgem to use) */
mrb_value
mrb_fiber_yield
(
mrb_state
*
mrb
,
int
argc
,
mrb_value
*
argv
);
mrb_value
mrb_fiber_yield
(
mrb_state
*
mrb
,
int
argc
,
const
mrb_value
*
argv
);
#define E_FIBER_ERROR (mrb_class_get(mrb, "FiberError"))
/* memory pool implementation */
...
...
include/mruby/error.h
View file @
824d3450
...
...
@@ -14,7 +14,7 @@ extern "C" {
void
mrb_sys_fail
(
mrb_state
*
mrb
,
const
char
*
mesg
);
mrb_value
mrb_exc_new_str
(
mrb_state
*
mrb
,
struct
RClass
*
c
,
mrb_value
str
);
#define mrb_exc_new_str_lit(mrb, c, lit) mrb_exc_new_str(mrb, c, mrb_str_new_lit(mrb, lit))
mrb_value
mrb_make_exception
(
mrb_state
*
mrb
,
int
argc
,
mrb_value
*
argv
);
mrb_value
mrb_make_exception
(
mrb_state
*
mrb
,
int
argc
,
const
mrb_value
*
argv
);
mrb_value
mrb_format
(
mrb_state
*
mrb
,
const
char
*
format
,
...);
void
mrb_exc_print
(
mrb_state
*
mrb
,
struct
RObject
*
exc
);
void
mrb_print_backtrace
(
mrb_state
*
mrb
);
...
...
mrbgems/mruby-fiber/src/fiber.c
View file @
824d3450
...
...
@@ -259,7 +259,7 @@ fiber_transfer(mrb_state *mrb, mrb_value self)
}
mrb_value
mrb_fiber_yield
(
mrb_state
*
mrb
,
int
len
,
mrb_value
*
a
)
mrb_fiber_yield
(
mrb_state
*
mrb
,
int
len
,
const
mrb_value
*
a
)
{
struct
mrb_context
*
c
=
mrb
->
c
;
mrb_callinfo
*
ci
;
...
...
src/class.c
View file @
824d3450
...
...
@@ -1092,7 +1092,7 @@ mrb_instance_new(mrb_state *mrb, mrb_value cv)
}
mrb_value
mrb_obj_new
(
mrb_state
*
mrb
,
struct
RClass
*
c
,
int
argc
,
mrb_value
*
argv
)
mrb_obj_new
(
mrb_state
*
mrb
,
struct
RClass
*
c
,
int
argc
,
const
mrb_value
*
argv
)
{
mrb_value
obj
;
...
...
src/error.c
View file @
824d3450
...
...
@@ -353,7 +353,7 @@ set_backtrace(mrb_state *mrb, mrb_value info, mrb_value bt)
}
static
mrb_value
make_exception
(
mrb_state
*
mrb
,
int
argc
,
mrb_value
*
argv
,
mrb_bool
isstr
)
make_exception
(
mrb_state
*
mrb
,
int
argc
,
const
mrb_value
*
argv
,
mrb_bool
isstr
)
{
mrb_value
mesg
;
int
n
;
...
...
@@ -406,7 +406,7 @@ exception_call:
}
mrb_value
mrb_make_exception
(
mrb_state
*
mrb
,
int
argc
,
mrb_value
*
argv
)
mrb_make_exception
(
mrb_state
*
mrb
,
int
argc
,
const
mrb_value
*
argv
)
{
return
make_exception
(
mrb
,
argc
,
argv
,
TRUE
);
}
...
...
src/vm.c
View file @
824d3450
...
...
@@ -323,7 +323,7 @@ mrb_funcall(mrb_state *mrb, mrb_value self, const char *name, int argc, ...)
}
mrb_value
mrb_funcall_with_block
(
mrb_state
*
mrb
,
mrb_value
self
,
mrb_sym
mid
,
int
argc
,
mrb_value
*
argv
,
mrb_value
blk
)
mrb_funcall_with_block
(
mrb_state
*
mrb
,
mrb_value
self
,
mrb_sym
mid
,
int
argc
,
const
mrb_value
*
argv
,
mrb_value
blk
)
{
mrb_value
val
;
...
...
@@ -413,7 +413,7 @@ mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mr
}
mrb_value
mrb_funcall_argv
(
mrb_state
*
mrb
,
mrb_value
self
,
mrb_sym
mid
,
int
argc
,
mrb_value
*
argv
)
mrb_funcall_argv
(
mrb_state
*
mrb
,
mrb_value
self
,
mrb_sym
mid
,
int
argc
,
const
mrb_value
*
argv
)
{
return
mrb_funcall_with_block
(
mrb
,
self
,
mid
,
argc
,
argv
,
mrb_nil_value
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment