uint8_t* input typemap works for h_token and h_parse
This commit is contained in:
parent
213f338357
commit
8be21c3d28
1 changed files with 2 additions and 2 deletions
|
|
@ -140,10 +140,10 @@
|
|||
$1 = (uint8_t*)(*$input)->value.str.val;
|
||||
$2 = (*$input)->value.str.len;
|
||||
}
|
||||
%typemap(out) (uint8_t* input, size_t len) {
|
||||
%typemap(out) (uint8_t* input, size_t length) {
|
||||
RETVAL_STRINGL((char*)$1, $2, 1);
|
||||
}
|
||||
//%apply (uint8_t* input, size_t len) { (uint8_t* str, size_t len) }
|
||||
%apply (const uint8_t* str, const size_t len) { (const uint8_t* input, size_t length) }
|
||||
%typemap(in) void*[] {
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue