Re: [PATCHv5 06/17] gitweb/lib - Simple select(FH) based output capture

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi --

On 6 October 2010 23:01, Jakub Narebski <jnareb@xxxxxxxxx> wrote:
> +sub capture {
> + Â Â Â my ($self, $code) = @_;
> +
> + Â Â Â $self->start();
> + Â Â Â $code->();

unless( defined $code and $code eq 'CODE' )
{
       # Error?
        ....
}

> + Â Â Â return $self->stop();
> +}
> +
> +# Wrap caching data; capture only STDOUT
> +sub capture_block (&) {

This is prototyped deliberately?

-- Thomas Adam
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]