stubbed PHP typemaps

This commit is contained in:
Meredith L. Patterson 2013-11-19 22:59:14 -06:00
parent 632aa845a5
commit 689ee84415

View file

@ -1,4 +1,5 @@
%module hammer %module hammer
%nodefaultctor;
%nodefaultctor; %nodefaultctor;
@ -132,6 +133,31 @@
#endif #endif
//%include "typemaps.i" //%include "typemaps.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. // 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 "allocator.h"
@ -347,3 +373,4 @@ def int64(): return _h_int64()
#endif #endif
//%apply const char* { const uint8_t* } //%apply const char* { const uint8_t* }