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
87d7fc61
Commit
87d7fc61
authored
Mar 26, 2013
by
Yukihiro Matz Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mruby/mruby
parents
a7842b64
2d918035
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
50 deletions
+6
-50
src/array.c
src/array.c
+0
-4
src/class.c
src/class.c
+5
-2
src/error.c
src/error.c
+0
-25
src/error.h
src/error.h
+0
-1
src/parse.y
src/parse.y
+0
-14
src/string.c
src/string.c
+1
-4
No files found.
src/array.c
View file @
87d7fc61
...
...
@@ -952,11 +952,7 @@ static mrb_value
mrb_ary_inspect
(
mrb_state
*
mrb
,
mrb_value
ary
)
{
if
(
RARRAY_LEN
(
ary
)
==
0
)
return
mrb_str_new
(
mrb
,
"[]"
,
2
);
#if 0 /* THREAD */
return mrb_exec_recursive(inspect_ary_r, ary, 0);
#else
return
inspect_ary
(
mrb
,
ary
,
mrb_ary_new
(
mrb
));
#endif
}
static
mrb_value
...
...
src/class.c
View file @
87d7fc61
...
...
@@ -1369,9 +1369,12 @@ mrb_mod_to_s(mrb_state *mrb, mrb_value klass)
mrb_str_cat
(
mrb
,
str
,
">"
,
1
);
}
else
{
struct
RClass
*
c
;
mrb_value
path
;
str
=
mrb_str_buf_new
(
mrb
,
32
);
struct
RClass
*
c
=
mrb_class_ptr
(
klass
);
mrb_value
path
=
mrb_class_path
(
mrb
,
c
);
c
=
mrb_class_ptr
(
klass
);
path
=
mrb_class_path
(
mrb
,
c
);
if
(
mrb_nil_p
(
path
))
{
switch
(
mrb_type
(
klass
))
{
...
...
src/error.c
View file @
87d7fc61
...
...
@@ -291,31 +291,6 @@ mrb_bug(const char *fmt, ...)
exit
(
EXIT_FAILURE
);
}
static
const
char
*
mrb_strerrno
(
int
err
)
{
#define defined_error(name, num) if (err == num) return name;
#define undefined_error(name)
//#include "known_errors.inc"
#undef defined_error
#undef undefined_error
return
NULL
;
}
void
mrb_bug_errno
(
const
char
*
mesg
,
int
errno_arg
)
{
if
(
errno_arg
==
0
)
mrb_bug
(
"%s: errno == 0 (NOERROR)"
,
mesg
);
else
{
const
char
*
errno_str
=
mrb_strerrno
(
errno_arg
);
if
(
errno_str
)
mrb_bug
(
"%s: %s (%s)"
,
mesg
,
strerror
(
errno_arg
),
errno_str
);
else
mrb_bug
(
"%s: %s (%d)"
,
mesg
,
strerror
(
errno_arg
),
errno_arg
);
}
}
int
sysexit_status
(
mrb_state
*
mrb
,
mrb_value
err
)
{
...
...
src/error.h
View file @
87d7fc61
...
...
@@ -8,7 +8,6 @@
#define MRUBY_ERROR_H
void
mrb_sys_fail
(
mrb_state
*
mrb
,
const
char
*
mesg
);
void
mrb_bug_errno
(
const
char
*
,
int
);
int
sysexit_status
(
mrb_state
*
mrb
,
mrb_value
err
);
mrb_value
mrb_exc_new3
(
mrb_state
*
mrb
,
struct
RClass
*
c
,
mrb_value
str
);
mrb_value
make_exception
(
mrb_state
*
mrb
,
int
argc
,
mrb_value
*
argv
,
int
isstr
);
...
...
src/parse.y
View file @
87d7fc61
...
...
@@ -395,15 +395,6 @@ new_fcall(parser_state *p, mrb_sym b, node *c)
return list4((node*)NODE_FCALL, new_self(p), nsym(b), c);
}
#if 0
// (:vcall self mid)
static node*
new_vcall(parser_state *p, mrb_sym b)
{
return list3((node*)NODE_VCALL, new_self(p), (node*)b);
}
#endif
// (:super . c)
static node*
new_super(parser_state *p, node *c)
...
...
@@ -1790,11 +1781,6 @@ arg : lhs '=' arg
| arg tMATCH arg
{
$$ = call_bin_op(p, $1, "=~", $3);
#if 0
if (nd_type($1) == NODE_LIT && TYPE($1->nd_lit) == T_REGEXP) {
$$ = reg_named_capture_assign($1->nd_lit, $$);
}
#endif
}
| arg tNMATCH arg
{
...
...
src/string.c
View file @
87d7fc61
...
...
@@ -2068,9 +2068,6 @@ mrb_str_sub(mrb_state *mrb, mrb_value self)
mrb_value
mrb_cstr_to_inum
(
mrb_state
*
mrb
,
const
char
*
str
,
int
base
,
int
badcheck
)
{
#define BDIGIT unsigned int
#define BDIGIT_DBL unsigned long
char
*
end
;
char
sign
=
1
;
int
c
;
...
...
@@ -2278,7 +2275,7 @@ mrb_cstr_to_dbl(mrb_state *mrb, const char * p, int badcheck)
char
*
end
;
double
d
;
#if !defined(DBL_DIG)
#
define DBL_DIG 16
#
define DBL_DIG 16
#endif
enum
{
max_width
=
20
};
...
...
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