#include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include "vector.h" typedef Vector *Set__Bit; MODULE = Set::Bit PACKAGE = Set::Bit PROTOTYPES: ENABLE Set::Bit new(package, nBits) char *package int nBits CODE: RETVAL = new(nBits); OUTPUT: RETVAL void DESTROY(pVector) Set::Bit pVector void dump(pVector) Set::Bit pVector int top(pVector) Set::Bit pVector void insert(pVector, n) Set::Bit pVector int n void remove(pVector, n) Set::Bit pVector int n CODE: Remove(pVector, n); int member(pVector, n) Set::Bit pVector int n Set::Bit union(pA, pB) Set::Bit pA Set::Bit pB CODE: RETVAL = Union(pA, pB); OUTPUT: RETVAL Set::Bit intersect(pA, pB) Set::Bit pA Set::Bit pB