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
4b8959da
Commit
4b8959da
authored
Dec 16, 2012
by
Yuichiro MASUI
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into use_ruby_for_building
parents
06d242ae
404ad702
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
7 deletions
+9
-7
include/mruby/proc.h
include/mruby/proc.h
+1
-0
mrbgems/generator.c
mrbgems/generator.c
+2
-2
src/class.c
src/class.c
+1
-0
src/vm.c
src/vm.c
+2
-2
test/Makefile
test/Makefile
+1
-1
tools/mirb/Makefile
tools/mirb/Makefile
+1
-1
tools/mruby/Makefile
tools/mruby/Makefile
+1
-1
No files found.
include/mruby/proc.h
View file @
4b8959da
...
...
@@ -49,6 +49,7 @@ struct RProc {
struct
RProc
*
mrb_proc_new
(
mrb_state
*
,
mrb_irep
*
);
struct
RProc
*
mrb_proc_new_cfunc
(
mrb_state
*
,
mrb_func_t
);
struct
RProc
*
mrb_closure_new
(
mrb_state
*
,
mrb_irep
*
);
struct
RProc
*
mrb_closure_new_cfunc
(
mrb_state
*
mrb
,
mrb_func_t
func
,
int
nlocals
);
void
mrb_proc_copy
(
struct
RProc
*
a
,
struct
RProc
*
b
);
#include "mruby/khash.h"
...
...
mrbgems/generator.c
View file @
4b8959da
...
...
@@ -145,7 +145,7 @@ for_each_gem (char before[1024], char after[1024],
{
/* active GEM check */
FILE
*
active_gem_file
;
char
gem_char
;
int
gem_char
;
char
gem_name
[
1024
]
=
{
0
};
int
char_index
;
char
gem_list
[
1024
][
1024
]
=
{
{
0
},
{
0
}
};
...
...
@@ -166,7 +166,7 @@ for_each_gem (char before[1024], char after[1024],
char_index
=
0
;
gem_index
=
0
;
skip
=
FALSE
;
while
((
gem_char
=
fgetc
(
active_gem_file
))
!=
EOF
)
{
while
((
gem_char
=
fgetc
(
active_gem_file
))
!=
EOF
)
{
if
(
gem_char
==
'\n'
)
{
/* Every line contains one active GEM */
gem_name
[
char_index
++
]
=
'\0'
;
...
...
src/class.c
View file @
4b8959da
...
...
@@ -888,6 +888,7 @@ mrb_singleton_class(mrb_state *mrb, mrb_value v)
case
MRB_TT_TRUE
:
return
mrb_obj_value
(
mrb
->
true_class
);
case
MRB_TT_MAIN
:
case
MRB_TT_VOIDP
:
return
mrb_obj_value
(
mrb
->
object_class
);
case
MRB_TT_SYMBOL
:
case
MRB_TT_FIXNUM
:
...
...
src/vm.c
View file @
4b8959da
...
...
@@ -1390,7 +1390,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
x
=
mrb_fixnum
(
regs
[
a
]);
y
=
mrb_fixnum
(
regs
[
a
+
1
]);
z
=
x
-
y
;
if
(((
x
<
0
)
^
(
y
<
0
))
=
=
0
&&
(
x
<
0
)
!=
(
z
<
0
))
{
if
(((
x
<
0
)
^
(
y
<
0
))
!
=
0
&&
(
x
<
0
)
!=
(
z
<
0
))
{
/* integer overflow */
SET_FLT_VALUE
(
regs
[
a
],
(
mrb_float
)
x
-
(
mrb_float
)
y
);
break
;
...
...
@@ -1532,7 +1532,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
mrb_int
y
=
GETARG_C
(
i
);
mrb_int
z
=
x
-
y
;
if
(((
x
<
0
)
^
(
y
<
0
))
=
=
0
&&
(
x
<
0
)
!=
(
z
<
0
))
{
if
(((
x
<
0
)
^
(
y
<
0
))
!
=
0
&&
(
x
<
0
)
!=
(
z
<
0
))
{
/* integer overflow */
SET_FLT_VALUE
(
regs
[
a
],
(
mrb_float
)
x
-
(
mrb_float
)
y
);
break
;
...
...
test/Makefile
View file @
4b8959da
...
...
@@ -96,7 +96,7 @@ all : $(EXE) $(MRUBY) $(TESTRB) $(TESTMRB)
@
echo
# executable constructed using linker from object files
$(EXE)
:
$(OBJS) $(LIBR)
$(EXE)
:
$(OBJS) $(LIBR)
$(GEM_ARCHIVE_FILES)
$(LL)
-o
$@
$(LDFLAGS)
$(OBJS)
$(LIBR)
$(GEM_ARCHIVE_FILES)
$(LIBS)
-include
$(OBJS:.o=.d)
...
...
tools/mirb/Makefile
View file @
4b8959da
...
...
@@ -66,7 +66,7 @@ endif
all
:
$(LIBR) $(EXE)
# executable constructed using linker from object files
$(EXE)
:
$(LIBR) $(OBJS) $(EXTS)
$(EXE)
:
$(LIBR) $(OBJS) $(
GEM_ARCHIVE_FILES) $(
EXTS)
$(LL)
-o
$@
$(LDFLAGS)
$(OBJS)
$(LIBR)
$(GEM_ARCHIVE_FILES)
$(EXTS)
$(LIBS)
-include
$(OBJS:.o=.d)
...
...
tools/mruby/Makefile
View file @
4b8959da
...
...
@@ -71,7 +71,7 @@ endif
all
:
$(LIBR) $(EXE)
# executable constructed using linker from object files
$(EXE)
:
$(LIBR) $(OBJS) $(EXTS)
$(EXE)
:
$(LIBR) $(OBJS) $(
GEM_ARCHIVE_FILES) $(
EXTS)
$(LL)
-o
$@
$(LDFLAGS)
$(OBJS)
$(LIBR)
$(GEM_ARCHIVE_FILES)
$(EXTS)
$(LIBS)
-include
$(OBJS:.o=.d)
...
...
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