X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Op.git;a=blobdiff_plain;f=sub_op.h;h=c66580eeb7aa7bd52c348d2f2adaec3938bcbc93;hp=c7fc83f0e9240e1c3fa8e5e3650bfd9e703c0e4b;hb=HEAD;hpb=0661466030b3dd0fb805da10aaed883fbe931093 diff --git a/sub_op.h b/sub_op.h index c7fc83f..c66580e 100644 --- a/sub_op.h +++ b/sub_op.h @@ -8,12 +8,20 @@ typedef OP *(*sub_op_check_t)(pTHX_ OP *, void *); typedef struct { const char *name; - STRLEN len; - Perl_ppaddr_t pp; - sub_op_check_t check; + STRLEN namelen; + const char *proto; + STRLEN protolen; + sub_op_check_t call; + sub_op_check_t ref; void *ud; -} sub_op_keyword; +} sub_op_config_t; -void sub_op_register(pTHX_ const sub_op_keyword *k); +#define SUB_OP_REGISTER_STEAL 1 + +void sub_op_init (sub_op_config_t *c); +void sub_op_register(pTHX_ const sub_op_config_t *c, U32 flags); +sub_op_config_t *sub_op_dup (pTHX_ const sub_op_config_t *c); +void sub_op_free (pTHX_ sub_op_config_t *c); +OP * sub_op_study (const OP *o, OP **last_arg_p, OP **rv2cv_p); #endif /* SUB_OP_H */