From ebe7b20f8756f239fb61b5a3e3faabeebe708ad1 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Thu, 19 Mar 2015 12:32:23 +0100 Subject: [PATCH] Fix SWIG generation for maps still, we can't do anything with the resulting iterators untill the %template stuff works --- CMakeLists.txt | 3 +++ src/bindings/guile/frida.i | 12 +++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36cf17e..49f09e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,9 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/src) ##################### SET(CMAKE_SWIG_FLAGS -Linkage passive) +if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_FLAGS} -DSWIGWORDSIZE64) +endif() #FIND_PACKAGE(PythonLibs) #INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH}) SET_SOURCE_FILES_PROPERTIES(src/bindings/guile/frida.i PROPERTIES CPLUSPLUS ON) diff --git a/src/bindings/guile/frida.i b/src/bindings/guile/frida.i index c8b80b6..bc3bff4 100644 --- a/src/bindings/guile/frida.i +++ b/src/bindings/guile/frida.i @@ -8,12 +8,6 @@ %include %include - // noone knows how to get these working -%ignore beginFunctions(); -%ignore endFunctions(); -%ignore beginBasicBlocks(); -%ignore endBasicBlocks(); - %{ #include "core/Function.hxx" #include "core/BasicBlock.hxx" @@ -24,9 +18,9 @@ %} namespace std { - %template(BasicBlockMap) map; - %template(FunctionMap) map; - %template(InterpreterMap) map; + /* %template(wearethepeople) map; */ + /* %template(FunctionMap) map; */ + /* %template(InterpreterMap) map; */ } %inline %{ -- 2.39.5