lib/ffi/clang/index.rb in ffi-clang-0.3.0 vs lib/ffi/clang/index.rb in ffi-clang-0.5.0
- old
+ new
@@ -18,11 +18,11 @@
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
-require 'ffi/clang/lib/index'
+require_relative 'lib/index'
module FFI
module Clang
class Index < AutoPointer
def initialize(exclude_declarations = true, display_diagnostics = false)
@@ -43,12 +43,12 @@
TranslationUnit.new translation_unit_pointer, self
end
def create_translation_unit(ast_filename)
- tu_pointer = Lib.create_translation_unit(self, ast_filename)
- raise Error, "error parsing #{ast_filename.inspect}" if tu_pointer.null?
- TranslationUnit.new tu_pointer, self
+ translation_unit_pointer = Lib.create_translation_unit(self, ast_filename)
+ raise Error, "error parsing #{ast_filename.inspect}" if translation_unit_pointer.null?
+ TranslationUnit.new translation_unit_pointer, self
end
private
def args_pointer_from(command_line_args)