From 89b0e7dd1a6da95a0745a5bf232aa6452f43122d Mon Sep 17 00:00:00 2001 From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com> Date: Tue, 19 Nov 2013 22:59:14 -0600 Subject: [PATCH] stubbed PHP typemaps --- src/bindings/swig/hammer.i | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/bindings/swig/hammer.i b/src/bindings/swig/hammer.i index f784f31e..07ae79cc 100644 --- a/src/bindings/swig/hammer.i +++ b/src/bindings/swig/hammer.i @@ -1,8 +1,32 @@ %module hammer +%nodefaultctor; -%include "typemaps.i" %include "stdint.i" +#if defined(SWIGPHP) +%ignore HCountedArray_; +%typemap(in) uint8_t* { + + } +%typemap(out) uint8_t* { + + } +%typemap(in) void*[] { + + } +%typemap(in) uint8_t { + + } +%typemap(out) HBytes* { + + } +%typemap(out) struct HCountedArray_* { + + } +#else + #warning no Hammer typemaps defined +#endif + // 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" @@ -12,5 +36,3 @@ %include "allocator.h" %include "hammer.h" -%apply const char* { const uint8_t* } - -- GitLab