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
a33f9d7b
Unverified
Commit
a33f9d7b
authored
Nov 26, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small refactoring regarding symbols for clarity.
parent
50b57f6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/mrbconf.h
include/mrbconf.h
+1
-1
src/symbol.c
src/symbol.c
+1
-1
No files found.
include/mrbconf.h
View file @
a33f9d7b
...
...
@@ -150,7 +150,7 @@
/* -DMRB_USE_XXXX to enable following features */
//#define MRB_USE_DEBUG_HOOK /* hooks for debugger */
//#define MRB_USE_ALL_SYMBOLS /* Symbol
s
.all_symbols */
//#define MRB_USE_ALL_SYMBOLS /* Symbol.all_symbols */
/* obsolete configurations */
#if defined(DISABLE_STDIO) || defined(MRB_DISABLE_STDIO)
...
...
src/symbol.c
View file @
a33f9d7b
...
...
@@ -73,7 +73,7 @@ typedef struct symbol_name {
static
void
sym_validate_len
(
mrb_state
*
mrb
,
size_t
len
)
{
if
(
len
>=
RITE_LV_NULL_MARK
)
{
if
(
len
>=
UINT16_MAX
)
{
mrb_raise
(
mrb
,
E_ARGUMENT_ERROR
,
"symbol length too long"
);
}
}
...
...
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