for constant char * ,i have added a code in typemap file which looks like
const char * T_PVSimillarly how can i declare struct ulp_callback ulpcallback in typemap??
ulpcallback is a datatype in one of my C function. To call that function from perl, i have added a subroutine in .xs file.which looks like.when i try to compile it ,it is giving an error that,Error: 'ulpCallback' not in typemap in Mytest2.xs, line 26int f1(a,b,c) int a int b ulpcallback c OUTPUT: RETVAL
here ulpCallback is of type struct ulp_Callback (in C ). I want to declare that in typemap file .How to do that?? I am not familiar to perlxs..and i have no idea abt T_PV etc. Plz help me regarding this.
I added ulpCallback in typemap file asulpCallback T_PTROBJ
Now its not giving that error,But after running make it shows an error Mytest2.c:164: error: conversion to non-scalar type requested Any help regarding this??? Hi all,My C function expects an array(single dimension)as a parameter,how to declare it in .xs file??
int f1(a,b,c[LEN]) int a int b unsigned char c[LEN] OUTPUT: RETVAL
This gives an error saying that invalid declaration of cLEN.Plz help me.
In reply to perlxs help by KVB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |