From: Christoph Egger Date: Thu, 19 Mar 2015 11:32:23 +0000 (+0100) Subject: Fix SWIG generation for maps X-Git-Tag: v0.1~34 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=ebe7b20f8756f239fb61b5a3e3faabeebe708ad1;p=frida%2Ffrida.git Fix SWIG generation for maps still, we can't do anything with the resulting iterators untill the %template stuff works --- 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 %{