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
95c34a90
Commit
95c34a90
authored
Mar 05, 2013
by
Masaki Muranaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove RB_GC_GUARD(x) macro. See also mruby/mruby#948.
parent
5a153851
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
include/mruby/string.h
include/mruby/string.h
+0
-4
src/string.c
src/string.c
+1
-2
No files found.
include/mruby/string.h
View file @
95c34a90
...
@@ -11,10 +11,6 @@
...
@@ -11,10 +11,6 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
#ifndef RB_GC_GUARD
#define RB_GC_GUARD(v) v
#endif
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
#define STR_BUF_MIN_SIZE 128
#define STR_BUF_MIN_SIZE 128
...
...
src/string.c
View file @
95c34a90
...
@@ -1511,9 +1511,8 @@ mrb_value
...
@@ -1511,9 +1511,8 @@ mrb_value
mrb_str_intern
(
mrb_state
*
mrb
,
mrb_value
self
)
mrb_str_intern
(
mrb_state
*
mrb
,
mrb_value
self
)
{
{
mrb_sym
id
;
mrb_sym
id
;
mrb_value
str
=
RB_GC_GUARD
(
self
);
id
=
mrb_intern_str
(
mrb
,
s
tr
);
id
=
mrb_intern_str
(
mrb
,
s
elf
);
return
mrb_symbol_value
(
id
);
return
mrb_symbol_value
(
id
);
}
}
...
...
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