Sha256: 435ded0b4ea8e1814721bf4f0b2794a41caf56e6290ea0cc9c33e043f0a1d105

Contents?: true

Size: 234 Bytes

Versions: 16

Compression:

Stored size: 234 Bytes

Contents

require 'ffi'

module GirFFI
  # Library of libc functions.
  module LibC
    extend FFI::Library
    ffi_lib FFI::Library::LIBC

    attach_function :malloc, [:size_t], :pointer
    attach_function :free, [:pointer], :void
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 lib/gir_ffi/lib_c.rb
gir_ffi-0.9.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.9.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.8.6 lib/gir_ffi/lib_c.rb
gir_ffi-0.8.5 lib/gir_ffi/lib_c.rb
gir_ffi-0.8.4 lib/gir_ffi/lib_c.rb
gir_ffi-0.8.3 lib/gir_ffi/lib_c.rb
gir_ffi-0.8.2 lib/gir_ffi/lib_c.rb
gir_ffi-0.8.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.8.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.7.10 lib/gir_ffi/lib_c.rb
gir_ffi-0.7.9 lib/gir_ffi/lib_c.rb
gir_ffi-0.7.8 lib/gir_ffi/lib_c.rb
gir_ffi-0.7.7 lib/gir_ffi/lib_c.rb
gir_ffi-0.7.6 lib/gir_ffi/lib_c.rb
gir_ffi-0.7.5 lib/gir_ffi/lib_c.rb