summaryrefslogtreecommitdiff
path: root/pikul.i
diff options
context:
space:
mode:
Diffstat (limited to 'pikul.i')
-rw-r--r--pikul.i8
1 files changed, 5 insertions, 3 deletions
diff --git a/pikul.i b/pikul.i
index 507491a..f6079c0 100644
--- a/pikul.i
+++ b/pikul.i
@@ -3,8 +3,12 @@
#include "pikul.h"
%}
-#ifdef SWIGPERL
+#ifdef SWIGJAVASCRIPT
+%include "carrays.i"
+%array_functions(char *, stringArray);
+#endif
+#ifdef SWIGPERL
%typemap(in) char *[] {
AV *tempav = (AV *)SvRV($input);
I32 len = av_len(tempav);
@@ -19,7 +23,6 @@
%typemap(freearg) char *[] {
free($1);
}
-
%typemap(in) char **[] {
AV *items = (AV *)SvRV($input);
I32 nitems_min1 = av_len(items);
@@ -42,7 +45,6 @@
%typemap(freearg) char **[] {
free($1);
}
-
#endif
%rename("%(strip:[pikul_])s") "";