From ada7bf89ee61d12b2f624cb6e82168f78d647379 Mon Sep 17 00:00:00 2001 From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com> Date: Sun, 17 Nov 2013 15:55:38 -0600 Subject: [PATCH] There's a typemap problem between const uint8_t* and target-language strings, but I can create parsers in python and php. --- src/bindings/swig/hammer.i | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bindings/swig/hammer.i b/src/bindings/swig/hammer.i index ac8c47f4..f784f31e 100644 --- a/src/bindings/swig/hammer.i +++ b/src/bindings/swig/hammer.i @@ -1,5 +1,9 @@ %module hammer +%include "typemaps.i" +%include "stdint.i" + + // All the include paths are relative to the build, i.e., ../../. If you need to build these manually (i.e., not with scons), keep that in mind. %{ #include "allocator.h" #include "hammer.h" @@ -8,4 +12,5 @@ %include "allocator.h" %include "hammer.h" +%apply const char* { const uint8_t* } -- GitLab