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
f962068d
Commit
f962068d
authored
Mar 04, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #950 from monaka/pr-remove-macro-RB_GC_GUARD
Remove RB_GC_GUARD(x) macro.
parents
4433bde8
95c34a90
Changes
2
Show 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 @
f962068d
...
...
@@ -11,10 +11,6 @@
extern
"C"
{
#endif
#ifndef RB_GC_GUARD
#define RB_GC_GUARD(v) v
#endif
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
#define STR_BUF_MIN_SIZE 128
...
...
src/string.c
View file @
f962068d
...
...
@@ -1511,9 +1511,8 @@ mrb_value
mrb_str_intern
(
mrb_state
*
mrb
,
mrb_value
self
)
{
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
);
}
...
...
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