There's a typemap problem between const uint8_t* and target-language strings, but I can create parsers in python and php.

This commit is contained in:
Meredith L. Patterson 2013-11-17 15:55:38 -06:00 committed by Dan Hirsch
parent 73eabc7bf9
commit ada7bf89ee

View file

@ -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* }