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
59a6d1b5
Commit
59a6d1b5
authored
Feb 18, 2013
by
Yukihiro Matz Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove TT_REGEX and TT_MATCH
parent
eb14c15e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
25 deletions
+12
-25
include/mruby/class.h
include/mruby/class.h
+0
-6
include/mruby/value.h
include/mruby/value.h
+12
-16
src/etc.c
src/etc.c
+0
-1
src/object.c
src/object.c
+0
-2
No files found.
include/mruby/class.h
View file @
59a6d1b5
...
...
@@ -41,12 +41,6 @@ mrb_class(mrb_state *mrb, mrb_value v)
return
mrb
->
float_class
;
case
MRB_TT_MAIN
:
return
mrb
->
object_class
;
case
MRB_TT_REGEX
:
case
MRB_TT_MATCH
:
mrb_raisef
(
mrb
,
E_TYPE_ERROR
,
"type mismatch: %s given"
,
mrb_obj_classname
(
mrb
,
v
));
return
mrb
->
nil_class
;
/* not reach */
default:
return
mrb_object
(
v
)
->
c
;
}
...
...
include/mruby/value.h
View file @
59a6d1b5
...
...
@@ -29,14 +29,12 @@ enum mrb_vtype {
MRB_TT_HASH
,
/* 16 */
MRB_TT_STRING
,
/* 17 */
MRB_TT_RANGE
,
/* 18 */
MRB_TT_REGEX
,
/* 19 */
MRB_TT_STRUCT
,
/* 20 */
MRB_TT_EXCEPTION
,
/* 21 */
MRB_TT_MATCH
,
/* 22 */
MRB_TT_FILE
,
/* 23 */
MRB_TT_ENV
,
/* 24 */
MRB_TT_DATA
,
/* 25 */
MRB_TT_MAXDEFINE
/* 26 */
MRB_TT_STRUCT
,
/* 19 */
MRB_TT_EXCEPTION
,
/* 20 */
MRB_TT_FILE
,
/* 21 */
MRB_TT_ENV
,
/* 22 */
MRB_TT_DATA
,
/* 23 */
MRB_TT_MAXDEFINE
/* 24 */
};
typedef
struct
mrb_value
{
...
...
@@ -91,14 +89,12 @@ enum mrb_vtype {
MRB_TT_HASH
,
/* 17 */
MRB_TT_STRING
,
/* 18 */
MRB_TT_RANGE
,
/* 19 */
MRB_TT_REGEX
,
/* 20 */
MRB_TT_STRUCT
,
/* 21 */
MRB_TT_EXCEPTION
,
/* 22 */
MRB_TT_MATCH
,
/* 23 */
MRB_TT_FILE
,
/* 24 */
MRB_TT_ENV
,
/* 25 */
MRB_TT_DATA
,
/* 26 */
MRB_TT_MAXDEFINE
/* 27 */
MRB_TT_STRUCT
,
/* 20 */
MRB_TT_EXCEPTION
,
/* 21 */
MRB_TT_FILE
,
/* 22 */
MRB_TT_ENV
,
/* 23 */
MRB_TT_DATA
,
/* 24 */
MRB_TT_MAXDEFINE
/* 25 */
};
#ifdef MRB_ENDIAN_BIG
...
...
src/etc.c
View file @
59a6d1b5
...
...
@@ -173,7 +173,6 @@ mrb_obj_id(mrb_value obj)
case
MRB_TT_RANGE
:
case
MRB_TT_STRUCT
:
case
MRB_TT_EXCEPTION
:
case
MRB_TT_MATCH
:
case
MRB_TT_FILE
:
case
MRB_TT_DATA
:
default:
...
...
src/object.c
View file @
59a6d1b5
...
...
@@ -379,12 +379,10 @@ static const struct types {
{
MRB_TT_HASH
,
"Hash"
},
{
MRB_TT_STRING
,
"String"
},
{
MRB_TT_RANGE
,
"Range"
},
{
MRB_TT_REGEX
,
"Regexp"
},
{
MRB_TT_STRUCT
,
"Struct"
},
// {MRB_TT_BIGNUM, "Bignum"},
{
MRB_TT_FILE
,
"File"
},
{
MRB_TT_DATA
,
"Data"
},
/* internal use: wrapped C pointers */
{
MRB_TT_MATCH
,
"MatchData"
},
/* data of $~ */
// {MRB_TT_VARMAP, "Varmap"}, /* internal use: dynamic variables */
// {MRB_TT_NODE, "Node"}, /* internal use: syntax tree node */
// {MRB_TT_UNDEF, "undef"}, /* internal use: #undef; should not happen */
...
...
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