Files
pkgsrc-ng/pkgtools/p5-pkgsrc-Dewey/files/Dewey.xs
2013-09-26 17:14:40 +02:00

32 lines
489 B
Plaintext

#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include <dewey.h>
MODULE = pkgsrc::Dewey PACKAGE = pkgsrc::Dewey
int
dewey_match(pattern, package)
const char * pattern
const char * package
PROTOTYPE: $;$
OUTPUT:
RETVAL
int
dewey_cmp(lhs, op, rhs)
const char * lhs
const char * op
const char * rhs
PROTOTYPE: $;$;$
INIT:
int opi;
CODE:
if (dewey_mktest(&opi, op) < 0)
RETVAL = -1;
else
RETVAL = dewey_cmp(lhs, opi, rhs);
OUTPUT:
RETVAL