File tree Expand file tree Collapse file tree 4 files changed +20
-13
lines changed
Expand file tree Collapse file tree 4 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 33Interface to C functions on mruby. it's based on [ libffi] ( http://sourceware.org/libffi/ ) .
44
55
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+
611## Install
712
813It's mrbgems.
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ MRuby::Gem::Specification.new('mruby-cfunc') do |spec|
6565 file rubyvm1_o => rubyvm1_c
6666 file rubyvm1_c => rubyvm1_rbx do |t |
6767 open ( rubyvm1_c , 'w' ) do |f |
68+ f . puts '#include <stdint.h>'
6869 build . mrbc . run f , rubyvm1_rbx , 'mruby_data__rubyvm1'
6970 end
7071 end
Original file line number Diff line number Diff line change @@ -143,19 +143,6 @@ class Int < SInt32
143143 end
144144end
145145
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-
159146class CFunc ::Struct
160147 class << self
161148 attr_accessor :elements , :size , :align
Original file line number Diff line number Diff line change 1111
1212MRuby ::Build . new do |conf |
1313 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+
1428 conf . gem File . expand_path ( File . dirname ( __FILE__ ) ) do |g |
1529 # g.use_pkg_config
1630 g . download_libffi
You can’t perform that action at this time.
0 commit comments