FFIExternalStructure subclass: #CXSourceLocation instanceVariableNames: '' classVariableNames: 'OFFSET_INT_DATA OFFSET_PTR_DATA1 OFFSET_PTR_DATA2' poolDictionaries: '' category: 'LibCClang-FFI-Binding'! !CXSourceLocation methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:05'! ptr_data1: anObject "This method was automatically generated" handle pointerAt: OFFSET_PTR_DATA1 put: anObject getHandle.! ! !CXSourceLocation methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:05'! ptr_data2 "This method was automatically generated" ^ExternalData fromHandle: (handle pointerAt: OFFSET_PTR_DATA2) type: ExternalType void asPointerType! ! !CXSourceLocation methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:05'! ptr_data2: anObject "This method was automatically generated" handle pointerAt: OFFSET_PTR_DATA2 put: anObject getHandle.! ! !CXSourceLocation methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:05'! int_data "This method was automatically generated" ^handle unsignedLongAt: OFFSET_INT_DATA! ! !CXSourceLocation methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:05'! ptr_data1 "This method was automatically generated" ^ExternalData fromHandle: (handle pointerAt: OFFSET_PTR_DATA1) type: ExternalType void asPointerType! ! !CXSourceLocation methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:05'! int_data: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_INT_DATA put: anObject! ! "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "! CXSourceLocation class instanceVariableNames: ''! !CXSourceLocation class methodsFor: 'field definition' stamp: 'ToddBlanchard 11/21/2017 22:01'! fieldsDesc ^#( void *ptr_data1; void *ptr_data2; uint32 int_data; )! ! FFIExternalStructure subclass: #CXSourceRange instanceVariableNames: '' classVariableNames: 'OFFSET_BEGIN_INT_DATA OFFSET_END_INT_DATA OFFSET_PTR_DATA1 OFFSET_PTR_DATA2' poolDictionaries: '' category: 'LibCClang-FFI-Binding'! !CXSourceRange methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:06'! ptr_data1: anObject "This method was automatically generated" handle pointerAt: OFFSET_PTR_DATA1 put: anObject getHandle.! ! !CXSourceRange methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:06'! end_int_data "This method was automatically generated" ^handle unsignedLongAt: OFFSET_END_INT_DATA! ! !CXSourceRange methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:06'! end_int_data: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_END_INT_DATA put: anObject! ! !CXSourceRange methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:06'! ptr_data2 "This method was automatically generated" ^ExternalData fromHandle: (handle pointerAt: OFFSET_PTR_DATA2) type: ExternalType void asPointerType! ! !CXSourceRange methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:06'! ptr_data2: anObject "This method was automatically generated" handle pointerAt: OFFSET_PTR_DATA2 put: anObject getHandle.! ! !CXSourceRange methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:06'! ptr_data1 "This method was automatically generated" ^ExternalData fromHandle: (handle pointerAt: OFFSET_PTR_DATA1) type: ExternalType void asPointerType! ! !CXSourceRange methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:06'! begin_int_data "This method was automatically generated" ^handle unsignedLongAt: OFFSET_BEGIN_INT_DATA! ! !CXSourceRange methodsFor: 'accessing structure variables' stamp: 'ToddBlanchard 11/21/2017 22:06'! begin_int_data: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_BEGIN_INT_DATA put: anObject! ! "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "! CXSourceRange class instanceVariableNames: ''! !CXSourceRange class methodsFor: 'field definition' stamp: 'ToddBlanchard 11/21/2017 22:00'! fieldsDesc ^#( void *ptr_data1; void *ptr_data2; uint32 begin_int_data; uint32 end_int_data; )! ! FFILibrary subclass: #LibCClang instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'LibCClang-FFI-Binding'! !LibCClang methodsFor: 'accessing platform' stamp: 'ToddBlanchard 11/21/2017 21:56'! macModuleName ^ '/Users/todd/Projects/Pharo/lab/microclang.dylib' asFileReference fullName ! ! "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "! LibCClang class instanceVariableNames: ''! !LibCClang class methodsFor: 'library path' stamp: 'ToddBlanchard 11/21/2017 22:16'! ffiLibraryName ^ self macModuleName! ! !LibCClang class methodsFor: 'accessing platform' stamp: 'ToddBlanchard 11/21/2017 22:17'! macModuleName ^ '/Users/todd/Projects/Pharo/lab/microclang.dylib' asFileReference fullName ! ! !LibCClang class methodsFor: 'as yet unclassified' stamp: 'ToddBlanchard 11/21/2017 22:10'! endFromRange:range ^self ffiCall: #(CXSourceLocation clang_getRangeEnd(CXSourceRange range))! ! !LibCClang class methodsFor: 'as yet unclassified' stamp: 'ToddBlanchard 11/21/2017 22:09'! startFromRange:range ^self ffiCall: #(CXSourceLocation clang_getRangeStart(CXSourceRange range))! ! !LibCClang class methodsFor: 'as yet unclassified' stamp: 'ToddBlanchard 11/21/2017 22:08'! defaultRange ^self ffiCall: #(CXSourceRange clang_getArbitraryRange())! ! CXSourceLocation compileFields! CXSourceRange compileFields!