Sha256: c567769b4c15dcebf487268c2dcaf0eff36aba125999673bf87bfff5318e8672

Contents?: true

Size: 584 Bytes

Versions: 34

Compression:

Stored size: 584 Bytes

Contents

module SassC
  module Native
    module LibC
      extend FFI::Library
      ffi_lib FFI::Library::LIBC

      # memory allocators
      attach_function :malloc, [:size_t], :pointer
      # attach_function :calloc, [:size_t], :pointer
      # attach_function :valloc, [:size_t], :pointer
      # attach_function :realloc, [:pointer, :size_t], :pointer
      # attach_function :free, [:pointer], :void

      # memory movers
      # attach_function :memcpy, [:pointer, :pointer, :size_t], :pointer
      # attach_function :bcopy, [:pointer, :pointer, :size_t], :void
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
sassc-1.12.1 lib/sassc/native/lib_c.rb
sassc-1.12.0 lib/sassc/native/lib_c.rb
sassc-1.11.4 lib/sassc/native/lib_c.rb
sassc-1.11.3 lib/sassc/native/lib_c.rb
sassc-1.11.2 lib/sassc/native/lib_c.rb
sassc-1.11.1 lib/sassc/native/lib_c.rb
sassc-1.11.0 lib/sassc/native/lib_c.rb
sassc-1.10.1 lib/sassc/native/lib_c.rb
sassc-1.10.0 lib/sassc/native/lib_c.rb
sassc-1.9.0 lib/sassc/native/lib_c.rb
sassc-1.8.5 lib/sassc/native/lib_c.rb
sassc-1.8.4 lib/sassc/native/lib_c.rb
sassc-1.8.3 lib/sassc/native/lib_c.rb
sassc-1.8.2 lib/sassc/native/lib_c.rb
sassc-1.8.1 lib/sassc/native/lib_c.rb
sassc-1.8.0 lib/sassc/native/lib_c.rb
sassc-1.8.0.pre2 lib/sassc/native/lib_c.rb
sassc-1.8.0.pre1 lib/sassc/native/lib_c.rb
sassc-1.7.1 lib/sassc/native/lib_c.rb
sassc-1.7.0 lib/sassc/native/lib_c.rb