X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=sub_op.h;h=77c899fcc4ac71c2a1fec859d86cf93a0ef6233d;hb=50984c4a3e39b187b5b52ceeba826bc819d23564;hp=161d147f80549bb5d6c6f2a5a9255198e104c4f9;hpb=a4ea0141e593c7b7afc86b15fb96d7f0ec5ab38a;p=perl%2Fmodules%2FSub-Op.git diff --git a/sub_op.h b/sub_op.h index 161d147..77c899f 100644 --- a/sub_op.h +++ b/sub_op.h @@ -4,13 +4,16 @@ #ifndef SUB_OP_H #define SUB_OP_H 1 +typedef OP *(*sub_op_check_t)(pTHX_ OP *, void *); + typedef struct { - const char *name; - STRLEN len; - Perl_ppaddr_t pp; - void (*check)(pTHX_ OP *); -} sub_op_keyword; + const char *name; + STRLEN namelen; + Perl_ppaddr_t pp; + sub_op_check_t check; + void *ud; +} sub_op_config_t; -void sub_op_register(pTHX_ const sub_op_keyword *k); +void sub_op_register(pTHX_ const sub_op_config_t *c); #endif /* SUB_OP_H */