Sha256: 3ad71341f73fbbbb43971ad4c50bcb0a8f30422cd06c5b012ac6caad65ee2200
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2010, by Jari Bakken. # Copyright, 2012, by Hal Brodigan. # Copyright, 2013-2024, by Samuel Williams. # Copyright, 2013, by Carlos MartÃn Nieto. # Copyright, 2014, by Masahiro Sano. require_relative 'string' require_relative 'translation_unit' module FFI module Clang module Lib class CXUnsavedFile < FFI::Struct layout( :filename, :pointer, :contents, :pointer, :length, :ulong ) end class CXFileUniqueID < FFI::Struct layout( :device, :ulong_long, :inode, :ulong_long, :modification, :ulong_long ) end typedef :pointer, :CXFile attach_function :get_file, :clang_getFile, [:CXTranslationUnit, :string], :CXFile attach_function :get_file_name, :clang_getFileName, [:CXFile], CXString.by_value attach_function :get_file_time, :clang_getFileTime, [:CXFile], :time_t attach_function :is_file_multiple_include_guarded, :clang_isFileMultipleIncludeGuarded, [:CXTranslationUnit, :CXFile], :int attach_function :get_file_unique_id, :clang_getFileUniqueID, [:CXFile, :pointer], :int end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ffi-clang-0.12.0 | lib/ffi/clang/lib/file.rb |
ffi-clang-0.11.0 | lib/ffi/clang/lib/file.rb |
ffi-clang-0.10.0 | lib/ffi/clang/lib/file.rb |
ffi-clang-0.9.0 | lib/ffi/clang/lib/file.rb |