tomw1975 has asked for the wisdom of the Perl Monks concerning the following question:
#include <EXTERN.h> #include <perl.h> #include <stdio.h> #include <stdlib.h> #include "GIEAsnmp.h" #define CLIENT_ID "INTERFACE" static PerlInterpreter *my_perl; int count; int counter; char *queue; char *tempPop; char *temp; int i = 0; EXTERN_C void xs_init _((void)); EXTERN_C void boot_DynaLoader _((CV* cv)); EXTERN_C void xs_init(void) { char *file = __FILE__; dXSUB_SYS; /* DynaLoader is a special case */ newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); } struct interpreter * perlstart() { char *my_argv[] = { "", "dataquery.pl"}; my_perl = perl_alloc(); perl_construct(my_perl); perl_parse(my_perl, xs_init, 2, my_argv, (char **)NULL); return (my_perl); } void perlstop(struct interpreter *my_perl) { perl_destruct (my_perl); perl_free(my_perl); }
"interface.c", line 32.46: 1506-280 (W) Function argument assignment b +etween types "void(*)(struct interpreter*,struct cv*)" and "void(*)(struct cv*)" is not allowed. "interface.c", line 49.21: 1506-280 (W) Function argument assignment b +etween types "void(*)(struct interpreter*)" and "void(*)(v oid)" is not allowed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 5.8 upgrade causing embeding issues!
by PodMaster (Abbot) on May 26, 2004 at 03:28 UTC | |
|
Re: 5.8 upgrade causing embeding issues!
by tomw1975 (Sexton) on May 26, 2004 at 13:57 UTC |