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
28bbd3e7
Commit
28bbd3e7
authored
Sep 14, 2019
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add argument names to C function prototypes.
parent
57d7fe94
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
include/mruby.h
include/mruby.h
+9
-9
include/mruby/hash.h
include/mruby/hash.h
+1
-1
include/mruby/proc.h
include/mruby/proc.h
+2
-2
include/mruby/string.h
include/mruby/string.h
+1
-1
No files found.
include/mruby.h
View file @
28bbd3e7
...
...
@@ -969,11 +969,11 @@ MRB_API mrb_value mrb_funcall(mrb_state *mrb, mrb_value val, const char *name, m
* @return [mrb_value] mrb_value mruby function value.
* @see mrb_funcall
*/
MRB_API
mrb_value
mrb_funcall_argv
(
mrb_state
*
mrb
,
mrb_value
val
,
mrb_sym
name
_sym
,
mrb_int
argc
,
const
mrb_value
*
obj
);
MRB_API
mrb_value
mrb_funcall_argv
(
mrb_state
*
mrb
,
mrb_value
val
,
mrb_sym
name
,
mrb_int
argc
,
const
mrb_value
*
argv
);
/**
* Call existing ruby functions with a block.
*/
MRB_API
mrb_value
mrb_funcall_with_block
(
mrb_state
*
,
mrb_value
,
mrb_sym
,
mrb_int
,
const
mrb_value
*
,
mrb_value
);
MRB_API
mrb_value
mrb_funcall_with_block
(
mrb_state
*
mrb
,
mrb_value
val
,
mrb_sym
name
,
mrb_int
argc
,
const
mrb_value
*
argv
,
mrb_value
block
);
/**
* Create a symbol
*
...
...
@@ -1080,11 +1080,11 @@ MRB_API void mrb_close(mrb_state *mrb);
*/
MRB_API
void
*
mrb_default_allocf
(
mrb_state
*
,
void
*
,
size_t
,
void
*
);
MRB_API
mrb_value
mrb_top_self
(
mrb_state
*
);
MRB_API
mrb_value
mrb_run
(
mrb_state
*
,
struct
RProc
*
,
mrb_value
);
MRB_API
mrb_value
mrb_top_run
(
mrb_state
*
,
struct
RProc
*
,
mrb_value
,
unsigned
int
);
MRB_API
mrb_value
mrb_vm_run
(
mrb_state
*
,
struct
RProc
*
,
mrb_value
,
unsigned
int
);
MRB_API
mrb_value
mrb_vm_exec
(
mrb_state
*
,
struct
RProc
*
,
const
mrb_code
*
);
MRB_API
mrb_value
mrb_top_self
(
mrb_state
*
mrb
);
MRB_API
mrb_value
mrb_run
(
mrb_state
*
mrb
,
struct
RProc
*
proc
,
mrb_value
self
);
MRB_API
mrb_value
mrb_top_run
(
mrb_state
*
mrb
,
struct
RProc
*
proc
,
mrb_value
self
,
unsigned
int
stack_keep
);
MRB_API
mrb_value
mrb_vm_run
(
mrb_state
*
mrb
,
struct
RProc
*
proc
,
mrb_value
self
,
unsigned
int
stack_keep
);
MRB_API
mrb_value
mrb_vm_exec
(
mrb_state
*
mrb
,
struct
RProc
*
proc
,
const
mrb_code
*
iseq
);
/* compatibility macros */
#define mrb_toplevel_run_keep(m,p,k) mrb_top_run((m),(p),mrb_top_self(m),(k))
#define mrb_toplevel_run(m,p) mrb_toplevel_run_keep((m),(p),0)
...
...
@@ -1094,8 +1094,8 @@ MRB_API void mrb_p(mrb_state*, mrb_value);
MRB_API
mrb_int
mrb_obj_id
(
mrb_value
obj
);
MRB_API
mrb_sym
mrb_obj_to_sym
(
mrb_state
*
mrb
,
mrb_value
name
);
MRB_API
mrb_bool
mrb_obj_eq
(
mrb_state
*
,
mrb_value
,
mrb_value
);
MRB_API
mrb_bool
mrb_obj_equal
(
mrb_state
*
,
mrb_value
,
mrb_value
);
MRB_API
mrb_bool
mrb_obj_eq
(
mrb_state
*
mrb
,
mrb_value
a
,
mrb_value
b
);
MRB_API
mrb_bool
mrb_obj_equal
(
mrb_state
*
mrb
,
mrb_value
a
,
mrb_value
b
);
MRB_API
mrb_bool
mrb_equal
(
mrb_state
*
mrb
,
mrb_value
obj1
,
mrb_value
obj2
);
MRB_API
mrb_value
mrb_convert_to_integer
(
mrb_state
*
mrb
,
mrb_value
val
,
mrb_int
base
);
MRB_API
mrb_value
mrb_Integer
(
mrb_state
*
mrb
,
mrb_value
val
);
...
...
include/mruby/hash.h
View file @
28bbd3e7
...
...
@@ -23,7 +23,7 @@ struct RHash {
#define mrb_hash_ptr(v) ((struct RHash*)(mrb_ptr(v)))
#define mrb_hash_value(p) mrb_obj_value((void*)(p))
MRB_API
mrb_value
mrb_hash_new_capa
(
mrb_state
*
,
mrb_int
);
MRB_API
mrb_value
mrb_hash_new_capa
(
mrb_state
*
mrb
,
mrb_int
capa
);
MRB_API
mrb_value
mrb_ensure_hash_type
(
mrb_state
*
mrb
,
mrb_value
hash
);
MRB_API
mrb_value
mrb_check_hash_type
(
mrb_state
*
mrb
,
mrb_value
hash
);
...
...
include/mruby/proc.h
View file @
28bbd3e7
...
...
@@ -92,8 +92,8 @@ mrb_int mrb_proc_arity(const struct RProc *p);
mrb_value
mrb_f_send
(
mrb_state
*
mrb
,
mrb_value
self
);
/* following functions are defined in mruby-proc-ext so please include it when using */
MRB_API
struct
RProc
*
mrb_proc_new_cfunc_with_env
(
mrb_state
*
,
mrb_func_t
,
mrb_int
,
const
mrb_value
*
);
MRB_API
mrb_value
mrb_proc_cfunc_env_get
(
mrb_state
*
,
mrb_int
);
MRB_API
struct
RProc
*
mrb_proc_new_cfunc_with_env
(
mrb_state
*
mrb
,
mrb_func_t
func
,
mrb_int
argc
,
const
mrb_value
*
argv
);
MRB_API
mrb_value
mrb_proc_cfunc_env_get
(
mrb_state
*
mrb
,
mrb_int
idx
);
/* old name */
#define mrb_cfunc_env_get(mrb, idx) mrb_proc_cfunc_env_get(mrb, idx)
...
...
include/mruby/string.h
View file @
28bbd3e7
...
...
@@ -129,7 +129,7 @@ MRB_API void mrb_str_modify_keep_ascii(mrb_state *mrb, struct RString *s);
/**
* Finds the index of a substring in a string
*/
MRB_API
mrb_int
mrb_str_index
(
mrb_state
*
,
mrb_value
,
const
char
*
,
mrb_int
,
mrb_in
t
);
MRB_API
mrb_int
mrb_str_index
(
mrb_state
*
mrb
,
mrb_value
str
,
const
char
*
p
,
mrb_int
len
,
mrb_int
offse
t
);
#define mrb_str_index_lit(mrb, str, lit, off) mrb_str_index(mrb, str, lit, mrb_strlen_lit(lit), off);
/**
...
...
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