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
699964a8
Commit
699964a8
authored
Apr 17, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use mrb_regexp_p to check regexp.
parent
d4a510f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mrbgems/mruby-string-utf8/src/string.c
mrbgems/mruby-string-utf8/src/string.c
+1
-1
src/string.c
src/string.c
+1
-1
No files found.
mrbgems/mruby-string-utf8/src/string.c
View file @
699964a8
...
@@ -65,7 +65,7 @@ noregexp(mrb_state *mrb, mrb_value self)
...
@@ -65,7 +65,7 @@ noregexp(mrb_state *mrb, mrb_value self)
static
void
static
void
regexp_check
(
mrb_state
*
mrb
,
mrb_value
obj
)
regexp_check
(
mrb_state
*
mrb
,
mrb_value
obj
)
{
{
if
(
!
memcmp
(
mrb_obj_classname
(
mrb
,
obj
),
REGEXP_CLASS
,
sizeof
(
REGEXP_CLASS
)
-
1
))
{
if
(
mrb_regexp_p
(
mrb
,
obj
))
{
noregexp
(
mrb
,
obj
);
noregexp
(
mrb
,
obj
);
}
}
}
}
...
...
src/string.c
View file @
699964a8
...
@@ -717,7 +717,7 @@ noregexp(mrb_state *mrb, mrb_value self)
...
@@ -717,7 +717,7 @@ noregexp(mrb_state *mrb, mrb_value self)
static
void
static
void
regexp_check
(
mrb_state
*
mrb
,
mrb_value
obj
)
regexp_check
(
mrb_state
*
mrb
,
mrb_value
obj
)
{
{
if
(
!
memcmp
(
mrb_obj_classname
(
mrb
,
obj
),
REGEXP_CLASS
,
sizeof
(
REGEXP_CLASS
)
-
1
))
{
if
(
mrb_regexp_p
(
mrb
,
obj
))
{
noregexp
(
mrb
,
obj
);
noregexp
(
mrb
,
obj
);
}
}
}
}
...
...
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