#include "EXTERN.h" #include "perl.h" #include "XSUB.h" static int not_here(s) char *s; { croak("%s not implemented on this architecture", s); return -1; } static int consterr; static double constant(name, arg) char *name; int arg; { consterr = 0; errno = 0; switch (*name) { } consterr = 2; errno = EINVAL; return 0; not_there: errno = ENOENT; consterr = 1; return 0; disabled: errno = ENOENT; consterr = 3; return 0; } int errtype _((void)) { return consterr; } MODULE = PACKAGE = double constant(name,arg) char * name int arg int errtype()