File tree 4 files changed +20
-13
lines changed
4 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 3
3
Interface to C functions on mruby. it's based on [ libffi] ( http://sourceware.org/libffi/ ) .
4
4
5
5
6
+ ## Build status
7
+
8
+ [ ![ Build Status] ( https://secure.travis-ci.org/mobiruby/mruby-cfunc.png )] ( http://travis-ci.org/mobiruby/mruby-cfunc )
9
+
10
+
6
11
## Install
7
12
8
13
It's mrbgems.
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ MRuby::Gem::Specification.new('mruby-cfunc') do |spec|
65
65
file rubyvm1_o => rubyvm1_c
66
66
file rubyvm1_c => rubyvm1_rbx do |t |
67
67
open ( rubyvm1_c , 'w' ) do |f |
68
+ f . puts '#include <stdint.h>'
68
69
build . mrbc . run f , rubyvm1_rbx , 'mruby_data__rubyvm1'
69
70
end
70
71
end
Original file line number Diff line number Diff line change @@ -143,19 +143,6 @@ class Int < SInt32
143
143
end
144
144
end
145
145
146
- module Enumerable
147
- def each_slice ( n , &block )
148
- ary = [ ]
149
- each_with_index do |val , i |
150
- ary << val
151
- if i % n == n - 1
152
- block . call ( ary )
153
- ary = [ ]
154
- end
155
- end
156
- end
157
- end
158
-
159
146
class CFunc ::Struct
160
147
class << self
161
148
attr_accessor :elements , :size , :align
Original file line number Diff line number Diff line change 11
11
12
12
MRuby ::Build . new do |conf |
13
13
toolchain :gcc
14
+ conf . gem "#{ root } /mrbgems/mruby-print"
15
+ conf . gem "#{ root } /mrbgems/mruby-sprintf"
16
+ conf . gem "#{ root } /mrbgems/mruby-math"
17
+ conf . gem "#{ root } /mrbgems/mruby-time"
18
+ conf . gem "#{ root } /mrbgems/mruby-struct"
19
+ conf . gem "#{ root } /mrbgems/mruby-enum-ext"
20
+ conf . gem "#{ root } /mrbgems/mruby-string-ext"
21
+ conf . gem "#{ root } /mrbgems/mruby-numeric-ext"
22
+ conf . gem "#{ root } /mrbgems/mruby-array-ext"
23
+ conf . gem "#{ root } /mrbgems/mruby-hash-ext"
24
+ conf . gem "#{ root } /mrbgems/mruby-random"
25
+
26
+ conf . gem "#{ root } /mrbgems/mruby-eval"
27
+
14
28
conf . gem File . expand_path ( File . dirname ( __FILE__ ) ) do |g |
15
29
# g.use_pkg_config
16
30
g . download_libffi
You can’t perform that action at this time.
0 commit comments