ghazel-ffi-clang 0.2.0.1 → 0.2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ffi/clang/lib/cursor.rb +8 -2
- data/lib/ffi/clang/lib/type.rb +12 -3
- data/lib/ffi/clang/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 497f21d7f71916982b6f0b2a3c6aeea2582d88d9
|
|
4
|
+
data.tar.gz: 561a927279e9c59c39dfae105b12c6b4b550c2ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6354a635109a3fb1ca615451285dd065eb699f60854566b5f795c23565f3bbb502f8b10696152a257fc975514b4bf12aa3b0f377e90f866b63a81d278c3468d2
|
|
7
|
+
data.tar.gz: 0bcc4fb9f74883d6c1bf15af0930cbed2a65bc20a9371f142dd1865b09a780bd6800c6ed2eec536c15efe1a3b50245f32921e836236ff3284446482d966354cf
|
data/lib/ffi/clang/lib/cursor.rb
CHANGED
|
@@ -331,8 +331,14 @@ module FFI
|
|
|
331
331
|
attach_function :get_cursor_hash, :clang_hashCursor, [CXCursor.by_value], :uint
|
|
332
332
|
|
|
333
333
|
if FFI::Clang::Utils.satisfy_version?('3.3')
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
begin
|
|
335
|
+
attach_function :is_bit_field,:clang_Cursor_isBitField, [CXCursor.by_value], :uint
|
|
336
|
+
rescue FFI::NotFoundError => e
|
|
337
|
+
end
|
|
338
|
+
begin
|
|
339
|
+
attach_function :get_field_decl_bit_width, :clang_getFieldDeclBitWidth, [CXCursor.by_value], :int
|
|
340
|
+
rescue FFI::NotFoundError => e
|
|
341
|
+
end
|
|
336
342
|
end
|
|
337
343
|
|
|
338
344
|
attach_function :get_overloaded_decl, :clang_getOverloadedDecl, [CXCursor.by_value, :uint], CXCursor.by_value
|
data/lib/ffi/clang/lib/type.rb
CHANGED
|
@@ -138,9 +138,18 @@ module FFI
|
|
|
138
138
|
attach_function :get_array_element_type ,:clang_getArrayElementType, [CXType.by_value], CXType.by_value
|
|
139
139
|
|
|
140
140
|
if FFI::Clang::Utils.satisfy_version?('3.3')
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
begin
|
|
142
|
+
attach_function :type_get_align_of, :clang_Type_getAlignOf, [CXType.by_value], :long_long
|
|
143
|
+
rescue FFI::NotFoundError => e
|
|
144
|
+
end
|
|
145
|
+
begin
|
|
146
|
+
attach_function :type_get_size_of, :clang_Type_getSizeOf, [CXType.by_value], :long_long
|
|
147
|
+
rescue FFI::NotFoundError => e
|
|
148
|
+
end
|
|
149
|
+
begin
|
|
150
|
+
attach_function :type_get_offset_of, :clang_Type_getOffsetOf, [CXType.by_value, :string], :long_long
|
|
151
|
+
rescue FFI::NotFoundError => e
|
|
152
|
+
end
|
|
144
153
|
end
|
|
145
154
|
|
|
146
155
|
if FFI::Clang::Utils.satisfy_version?('3.4')
|
data/lib/ffi/clang/version.rb
CHANGED