in reply to Passing integer pointer in XS?
Change all of those "int *" to "int &" and I suspect it will "just work".
Update: Or, worst case, you might have to change the XS code to something like:
int tdSensor(protocol, protocolLen, model, modelLen, id, dataTypes) char * protocol int protocolLen char * model int modelLen int & id int & dataTypes CODE: RETVAL = tdSensor(protocol, protocolLen, model, modelLen, &id, &da +taTypes);
- tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Passing integer pointer in XS? (&)
by martin67 (Novice) on Jul 18, 2016 at 20:32 UTC | |
by tye (Sage) on Jul 18, 2016 at 20:42 UTC | |
by ikegami (Patriarch) on Jul 18, 2016 at 21:38 UTC | |
by tye (Sage) on Jul 18, 2016 at 21:51 UTC | |
by ikegami (Patriarch) on Jul 18, 2016 at 21:54 UTC | |
by martin67 (Novice) on Jul 18, 2016 at 21:04 UTC |
In Section
Seekers of Perl Wisdom