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
afbe211c
Commit
afbe211c
authored
Sep 27, 2016
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mrb_str_strlen() should be MRB_API; ref #3216
parent
6bc4b47c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/mruby/string.h
include/mruby/string.h
+1
-1
src/string.c
src/string.c
+1
-1
No files found.
include/mruby/string.h
View file @
afbe211c
...
...
@@ -76,7 +76,7 @@ struct RString {
#define RSTRING_LEN(s) RSTR_LEN(RSTRING(s))
#define RSTRING_CAPA(s) RSTR_CAPA(RSTRING(s))
#define RSTRING_END(s) (RSTRING_PTR(s) + RSTRING_LEN(s))
mrb_int
mrb_str_strlen
(
mrb_state
*
,
struct
RString
*
);
MRB_API
mrb_int
mrb_str_strlen
(
mrb_state
*
,
struct
RString
*
);
#define MRB_STR_SHARED 1
#define MRB_STR_NOFREE 2
...
...
src/string.c
View file @
afbe211c
...
...
@@ -576,7 +576,7 @@ str_rindex(mrb_state *mrb, mrb_value str, mrb_value sub, mrb_int pos)
}
}
mrb_int
MRB_API
mrb_int
mrb_str_strlen
(
mrb_state
*
mrb
,
struct
RString
*
s
)
{
mrb_int
i
,
max
=
RSTR_LEN
(
s
);
...
...
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