in reply to Re^2: Plz suggest what is the problem in the following code?
in thread Plz suggest what is the problem in the following code?
What does the .xs file look like for the final example? Mine looks like this:
#include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include "INLINE.h" int main( int argc, AV *argv ) { int i; for( i=0; i< argc; i++ ) { printf( "%s\n", SvPVX( av_fetch( argv, i, NULL ) ) ); } return 0; } MODULE = junk7_pl_b750 PACKAGE = main PROTOTYPES: DISABLE int main (argc, argv) int argc AV * argv
I can't see anything there that is platform, or compiler dependant?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Plz suggest what is the problem in the following code?
by derby (Abbot) on Feb 04, 2009 at 11:57 UTC | |
by BrowserUk (Patriarch) on Feb 04, 2009 at 12:20 UTC | |
by derby (Abbot) on Feb 04, 2009 at 12:33 UTC | |
by BrowserUk (Patriarch) on Feb 04, 2009 at 12:50 UTC | |
by derby (Abbot) on Feb 04, 2009 at 13:42 UTC | |
|