Help for this page

Select Code to Download


  1. or download this
    // libtwintree.h:
    int return_one( void );
    int return_zero( void );
    
  2. or download this
    // libtwintree.c:
    #include "libtwintree.h"
    int return_one( void ) { return 1; }
    int return_zero( void ) { return 0; }
    
  3. 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
    
  4. or download this
    #include "EXTERN.h"
    #include "perl.h"
    #include "XSUB.h"
    ...
    MODULE = TwinTree               PACKAGE = TwinTree
    
    INCLUDE: const-xs.inc