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
a93d9d85
Unverified
Commit
a93d9d85
authored
May 06, 2021
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
symbol.c: rename `sym_name` to `sym_cstr`.
parent
1c9260db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/symbol.c
src/symbol.c
+3
-3
No files found.
src/symbol.c
View file @
a93d9d85
...
...
@@ -587,7 +587,7 @@ mrb_sym_str(mrb_state *mrb, mrb_sym sym)
}
static
const
char
*
sym_
name
(
mrb_state
*
mrb
,
mrb_sym
sym
,
mrb_bool
dump
)
sym_
cstr
(
mrb_state
*
mrb
,
mrb_sym
sym
,
mrb_bool
dump
)
{
mrb_int
len
;
const
char
*
name
=
mrb_sym_name_len
(
mrb
,
sym
,
&
len
);
...
...
@@ -606,13 +606,13 @@ sym_name(mrb_state *mrb, mrb_sym sym, mrb_bool dump)
MRB_API
const
char
*
mrb_sym_name
(
mrb_state
*
mrb
,
mrb_sym
sym
)
{
return
sym_
name
(
mrb
,
sym
,
FALSE
);
return
sym_
cstr
(
mrb
,
sym
,
FALSE
);
}
MRB_API
const
char
*
mrb_sym_dump
(
mrb_state
*
mrb
,
mrb_sym
sym
)
{
return
sym_
name
(
mrb
,
sym
,
TRUE
);
return
sym_
cstr
(
mrb
,
sym
,
TRUE
);
}
#define lesser(a,b) (((a)>(b))?(b):(a))
...
...
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