- or download this
// libtwintree.h:
int return_one( void );
int return_zero( void );
- or download this
// libtwintree.c:
#include "libtwintree.h"
int return_one( void ) { return 1; }
int return_zero( void ) { return 0; }
- or download this
TwinTree.pm : TwinTree.xs
cd TwinTree && \
perl Makefile.PL && \
...
install : libtwintree.so
cp libtwintree.so /usr/local/lib && \
ldconfig -n /usr/local/lib
- or download this
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
...
MODULE = TwinTree PACKAGE = TwinTree
INCLUDE: const-xs.inc