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
b147970b
Commit
b147970b
authored
Jan 07, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1649 from cremno/include-cleanup
remove superfluous includes
parents
cff4ac6b
aa655b9e
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
29 additions
and
54 deletions
+29
-54
mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+5
-9
mrbgems/mruby-bin-mruby/tools/mruby/mruby.c
mrbgems/mruby-bin-mruby/tools/mruby/mruby.c
+3
-5
mrbgems/mruby-hash-ext/src/hash-ext.c
mrbgems/mruby-hash-ext/src/hash-ext.c
+0
-3
mrbgems/mruby-numeric-ext/src/numeric_ext.c
mrbgems/mruby-numeric-ext/src/numeric_ext.c
+0
-1
mrbgems/mruby-random/src/mt19937ar.c
mrbgems/mruby-random/src/mt19937ar.c
+0
-1
mrbgems/mruby-string-ext/src/string.c
mrbgems/mruby-string-ext/src/string.c
+2
-2
mrbgems/mruby-struct/src/struct.c
mrbgems/mruby-struct/src/struct.c
+0
-1
mrblib/init_mrblib.c
mrblib/init_mrblib.c
+0
-3
src/array.c
src/array.c
+0
-1
src/backtrace.c
src/backtrace.c
+1
-1
src/class.c
src/class.c
+2
-2
src/dump.c
src/dump.c
+1
-2
src/error.c
src/error.c
+0
-2
src/etc.c
src/etc.c
+0
-2
src/gc.c
src/gc.c
+0
-1
src/object.c
src/object.c
+0
-2
src/state.c
src/state.c
+0
-1
src/symbol.c
src/symbol.c
+0
-1
src/variable.c
src/variable.c
+1
-3
src/vm.c
src/vm.c
+0
-2
tasks/mrbgem_spec.rake
tasks/mrbgem_spec.rake
+13
-5
tasks/mrbgems_test.rake
tasks/mrbgems_test.rake
+1
-1
test/init_mrbtest.c
test/init_mrbtest.c
+0
-3
No files found.
mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
View file @
b147970b
...
...
@@ -8,21 +8,17 @@
#include <stdlib.h>
#include <string.h>
#include <mruby.h>
#include "mruby.h"
#include "mruby/array.h"
#include <mruby/proc.h>
#include <mruby/data.h>
#include <mruby/compile.h>
#include "mruby/proc.h"
#include "mruby/compile.h"
#include "mruby/string.h"
#ifdef ENABLE_READLINE
#include <limits.h>
#include <readline/readline.h>
#include <readline/history.h>
#endif
#include <mruby/string.h>
#ifdef ENABLE_READLINE
static
const
char
*
history_file_name
=
".mirb_history"
;
char
history_path
[
PATH_MAX
];
#endif
...
...
mrbgems/mruby-bin-mruby/tools/mruby/mruby.c
View file @
b147970b
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mruby.h"
#include "mruby/proc.h"
#include "mruby/array.h"
#include "mruby/string.h"
#include "mruby/compile.h"
#include "mruby/dump.h"
#include "mruby/variable.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef ENABLE_STDIO
static
void
...
...
mrbgems/mruby-hash-ext/src/hash-ext.c
View file @
b147970b
...
...
@@ -6,11 +6,8 @@
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/hash.h"
#include "mruby/khash.h"
#include "mruby/string.h"
#include "mruby/variable.h"
/*
* call-seq:
...
...
mrbgems/mruby-numeric-ext/src/numeric_ext.c
View file @
b147970b
#include <limits.h>
#include "mruby.h"
#include "mruby/numeric.h"
static
mrb_value
mrb_int_chr
(
mrb_state
*
mrb
,
mrb_value
x
)
...
...
mrbgems/mruby-random/src/mt19937ar.c
View file @
b147970b
...
...
@@ -4,7 +4,6 @@
** See Copyright Notice in mruby.h
*/
#include <stdio.h>
#include "mt19937ar.h"
/* Period parameters */
...
...
mrbgems/mruby-string-ext/src/string.c
View file @
b147970b
#include "mruby.h"
#include "mruby/string.h"
#include <ctype.h>
#include <string.h>
#include "mruby.h"
#include "mruby/string.h"
static
mrb_value
mrb_str_getbyte
(
mrb_state
*
mrb
,
mrb_value
str
)
...
...
mrbgems/mruby-struct/src/struct.c
View file @
b147970b
...
...
@@ -10,7 +10,6 @@
#include "mruby/array.h"
#include "mruby/string.h"
#include "mruby/class.h"
#include "mruby/data.h"
#include "mruby/variable.h"
#define RSTRUCT_ARY(st) mrb_ary_ptr(st)
...
...
mrblib/init_mrblib.c
View file @
b147970b
#include "mruby.h"
#include "mruby/irep.h"
#include "mruby/dump.h"
#include "mruby/string.h"
#include "mruby/proc.h"
extern
const
uint8_t
mrblib_irep
[];
...
...
src/array.c
View file @
b147970b
...
...
@@ -4,7 +4,6 @@
** See Copyright Notice in mruby.h
*/
#include <limits.h>
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
...
...
src/backtrace.c
View file @
b147970b
...
...
@@ -4,6 +4,7 @@
** See Copyright Notice in mruby.h
*/
#include <stdarg.h>
#include "mruby.h"
#include "mruby/variable.h"
#include "mruby/proc.h"
...
...
@@ -11,7 +12,6 @@
#include "mruby/string.h"
#include "mruby/class.h"
#include "mruby/debug.h"
#include <stdarg.h>
typedef
void
(
*
output_stream_func
)(
mrb_state
*
,
void
*
,
int
,
const
char
*
,
...);
...
...
src/class.c
View file @
b147970b
...
...
@@ -4,9 +4,9 @@
** See Copyright Notice in mruby.h
*/
#include "mruby.h"
#include <stdarg.h>
#include <ctype.h>
#include <stdarg.h>
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/numeric.h"
...
...
src/dump.c
View file @
b147970b
...
...
@@ -4,10 +4,9 @@
** See Copyright Notice in mruby.h
*/
#include <ctype.h>
#include <string.h>
#include "mruby/dump.h"
#include <ctype.h>
#include "mruby/string.h"
#include "mruby/irep.h"
#include "mruby/numeric.h"
...
...
src/error.c
View file @
b147970b
...
...
@@ -7,10 +7,8 @@
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/irep.h"
#include "mruby/proc.h"
#include "mruby/string.h"
...
...
src/etc.c
View file @
b147970b
...
...
@@ -6,8 +6,6 @@
#include "mruby.h"
#include "mruby/string.h"
#include "error.h"
#include "mruby/numeric.h"
#include "mruby/data.h"
#include "mruby/class.h"
...
...
src/gc.c
View file @
b147970b
...
...
@@ -4,7 +4,6 @@
** See Copyright Notice in mruby.h
*/
#include <limits.h>
#include <string.h>
#include <stdlib.h>
#include "mruby.h"
...
...
src/object.c
View file @
b147970b
...
...
@@ -5,11 +5,9 @@
*/
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/numeric.h"
#include "mruby/string.h"
#include "error.h"
mrb_bool
mrb_obj_eq
(
mrb_state
*
mrb
,
mrb_value
v1
,
mrb_value
v2
)
...
...
src/state.c
View file @
b147970b
...
...
@@ -7,7 +7,6 @@
#include <stdlib.h>
#include <string.h>
#include "mruby.h"
#include "mruby/class.h"
#include "mruby/irep.h"
#include "mruby/variable.h"
#include "mruby/debug.h"
...
...
src/symbol.c
View file @
b147970b
...
...
@@ -5,7 +5,6 @@
*/
#include <ctype.h>
#include <limits.h>
#include <string.h>
#include "mruby.h"
#include "mruby/khash.h"
...
...
src/variable.c
View file @
b147970b
...
...
@@ -4,14 +4,12 @@
** See Copyright Notice in mruby.h
*/
#include <ctype.h>
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/proc.h"
#include "mruby/string.h"
#include "mruby/variable.h"
#include "error.h"
#include <ctype.h>
typedef
int
(
iv_foreach_func
)(
mrb_state
*
,
mrb_sym
,
mrb_value
,
void
*
);
...
...
src/vm.c
View file @
b147970b
...
...
@@ -4,7 +4,6 @@
** See Copyright Notice in mruby.h
*/
#include <string.h>
#include <setjmp.h>
#include <stddef.h>
#include <stdarg.h>
...
...
@@ -13,7 +12,6 @@
#include "mruby/class.h"
#include "mruby/hash.h"
#include "mruby/irep.h"
#include "mruby/numeric.h"
#include "mruby/proc.h"
#include "mruby/range.h"
#include "mruby/string.h"
...
...
tasks/mrbgem_spec.rake
View file @
b147970b
...
...
@@ -149,7 +149,7 @@ module MRuby
end
end
# generate_gem_init
def
print_gem_
init_header
(
f
)
def
print_gem_
comment
(
f
)
f
.
puts
%Q[/*]
f
.
puts
%Q[ * This file is loading the irep]
f
.
puts
%Q[ * Ruby GEM code.]
...
...
@@ -158,15 +158,23 @@ module MRuby
f
.
puts
%Q[ * This file was generated!]
f
.
puts
%Q[ * All manual changes will get lost.]
f
.
puts
%Q[ */]
end
def
print_gem_init_header
(
f
)
print_gem_comment
(
f
)
f
.
puts
%Q[#include <stdlib.h>]
unless
rbfiles
.
empty?
f
.
puts
%Q[#include "mruby.h"]
f
.
puts
%Q[#include "mruby/irep.h"]
unless
rbfiles
.
empty?
end
def
print_gem_test_header
(
f
)
print_gem_comment
(
f
)
f
.
puts
%Q[#include <stdlib.h>]
f
.
puts
%Q[#include "mruby.h"]
f
.
puts
%Q[#include "mruby/array.h"]
f
.
puts
%Q[#include "mruby/irep.h"]
f
.
puts
%Q[#include "mruby/dump.h"]
f
.
puts
%Q[#include "mruby/string.h"]
f
.
puts
%Q[#include "mruby/proc.h"]
f
.
puts
%Q[#include "mruby/variable.h"]
f
.
puts
%Q[#include "mruby/array.h"]
f
.
puts
%Q[#include "mruby/hash.h"]
end
def
version_ok?
(
req_versions
)
...
...
tasks/mrbgems_test.rake
View file @
b147970b
...
...
@@ -5,7 +5,7 @@ MRuby.each_target do
file
test_rbobj
=>
g
.
test_rbireps
file
g
.
test_rbireps
=>
[
g
.
test_rbfiles
].
flatten
+
[
g
.
build
.
mrbcfile
]
do
|
t
|
open
(
t
.
name
,
'w'
)
do
|
f
|
g
.
print_gem_
ini
t_header
(
f
)
g
.
print_gem_
tes
t_header
(
f
)
test_preload
=
[
g
.
dir
,
MRUBY_ROOT
].
map
{
|
dir
|
File
.
expand_path
(
g
.
test_preload
,
dir
)
}.
find
{
|
file
|
File
.
exist?
(
file
)
}
...
...
test/init_mrbtest.c
View file @
b147970b
#include <stdlib.h>
#include "mruby.h"
#include "mruby/irep.h"
#include "mruby/dump.h"
#include "mruby/string.h"
#include "mruby/proc.h"
extern
const
uint8_t
mrbtest_irep
[];
...
...
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