argument typemap for token works! next, make it work for parse as well.

This commit is contained in:
Meredith L. Patterson 2013-11-20 03:29:10 -06:00
parent c51b784612
commit 213f338357

View file

@ -136,13 +136,14 @@
#if defined(SWIGPHP)
%ignore HCountedArray_;
%typemap(in) (uint8_t* input, size_t len) {
$1 = (uint8_t*)$input->value.str.val;
$2 = $input->value.str.len;
%typemap(in) (const uint8_t* str, const size_t len) {
$1 = (uint8_t*)(*$input)->value.str.val;
$2 = (*$input)->value.str.len;
}
%typemap(out) (uint8_t* input, size_t len) {
RETVAL_STRINGL((char*)$1, $2, 1);
}
//%apply (uint8_t* input, size_t len) { (uint8_t* str, size_t len) }
%typemap(in) void*[] {
}