Skip to content

Commit

Permalink
Removed .tap generating structs.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed May 2, 2016
1 parent ca6e2cd commit b8dc05d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rakelib/platform.rake
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ file 'runtime/platform.conf' => deps do |task|
s.field :d_name, :char_array
end.write_config(f)

Rubinius::FFI::Generators::Structures.new 'timeval' do |s|
struct = Rubinius::FFI::Generators::Structures.new 'timeval' do |s|
s.include "sys/time.h"
s.name 'struct timeval'
s.field :tv_sec, :time_t
s.field :tv_usec, :suseconds_t
end.tap { |struct| struct.write_config(f); struct.write_class(f) }
end

struct.write_config(f)
struct.write_class(f)

Rubinius::FFI::Generators::Structures.new 'sockaddr_in' do |s|
if BUILD_CONFIG[:windows]
Expand Down

0 comments on commit b8dc05d

Please sign in to comment.