Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

b::hooks::op::check5.18(3) [mojave man page]

B::Hooks::OP::Check(3)					User Contributed Perl Documentation				    B::Hooks::OP::Check(3)

NAME
B::Hooks::OP::Check - Wrap OP check callbacks SYNOPSIS
# include "hook_op_check.h" STATIC OP *my_const_check_op (pTHX_ OP *op, void *user_data) { /* ... */ return op; } STATIC hook_op_check_id my_hook_id = 0; void setup () CODE: my_hook_id = hook_op_check (OP_CONST, my_const_check_op, NULL); void teardown () CODE: hook_op_check_remove (OP_CONST, my_hook_id); DESCRIPTION
This module provides a c api for XS modules to hook into the callbacks of "PL_check". ExtUtils::Depends is used to export all functions for other XS modules to use. Include the following in your Makefile.PL: my $pkg = ExtUtils::Depends->new('Your::XSModule', 'B::Hooks::OP::Check'); WriteMakefile( ... # your normal makefile flags $pkg->get_makefile_vars, ); Your XS module can now include "hook_op_check.h". TYPES
typedef OP *(*hook_op_check_cb) (pTHX_ OP *, void *); Type that callbacks need to implement. typedef UV hook_op_check_id Type to identify a callback. FUNCTIONS
hook_op_check_id hook_op_check (opcode type, hook_op_check_cb cb, void *user_data) Register the callback "cb" to be called after the "PL_check" function for opcodes of the given "type". "user_data" will be passed to the callback as the last argument. Returns an id that can be used to remove the callback later on. void *hook_op_check_remove (opcode type, hook_op_check_id id) Remove the callback identified by "id". Returns the userdata the callback had. AUTHOR
Florian Ragwitz <rafl@debian.org> COPYRIGHT AND LICENSE
Copyright (c) 2008 Florian Ragwitz This module is free software. You may distribute this code under the same terms as Perl itself. perl v5.18.2 2011-09-10 B::Hooks::OP::Check(3)

Check Out this Related Man Page

SVN::Hooks::AllowLogChange(3pm) 			User Contributed Perl Documentation			   SVN::Hooks::AllowLogChange(3pm)

NAME
SVN::Hooks::AllowLogChange - Allow changes in revision log messages. VERSION
version 1.19 SYNOPSIS
This SVN::Hooks plugin is used to allow revision log changes by some users. It's deprecated. You should use SVN::Hooks::AllowPropChange instead. It's active in the "pre-revprop-change" hook. It's configured by the following directive. ALLOW_LOG_CHANGE(WHO, ...) This directive enables the change of revision log messages, which are mantained in the "svn:log" revision property. The optional WHO argument specifies the users that are allowed to make those changes. If absent, any user can change a log message. Otherwise, it specifies the allowed users depending on its type. STRING Specify a single user by name. REGEXP Specify the class of users whose names are matched by the Regexp. ALLOW_LOG_CHANGE(); ALLOW_LOG_CHANGE('jsilva'); ALLOW_LOG_CHANGE(qr/silva$/); AUTHOR
Gustavo L. de M. Chaves <gnustavo@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by CPqD. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-24 SVN::Hooks::AllowLogChange(3pm)
Man Page