ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Strict.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Strict.pm (file contents):
Revision 1.8 by root, Sat Feb 7 22:18:02 2009 UTC vs.
Revision 1.9 by root, Fri Mar 27 10:49:50 2009 UTC

43 or croak "AnyEvent->io called with illegal cb argument '$arg{cb}'"; 43 or croak "AnyEvent->io called with illegal cb argument '$arg{cb}'";
44 delete $arg{cb}; 44 delete $arg{cb};
45 45
46 defined fileno $arg{fh} 46 defined fileno $arg{fh}
47 or croak "AnyEvent->io called with illegal fh argument '$arg{fh}'"; 47 or croak "AnyEvent->io called with illegal fh argument '$arg{fh}'";
48 -f $arg{fh}
49 and croak "AnyEvent->io called with fh argument pointing to a file";
48 delete $arg{fh}; 50 delete $arg{fh};
49 51
50 $arg{poll} =~ /^[rw]$/ 52 $arg{poll} =~ /^[rw]$/
51 or croak "AnyEvent->io called with illegal poll argument '$arg{poll}'"; 53 or croak "AnyEvent->io called with illegal poll argument '$arg{poll}'";
52 delete $arg{poll}; 54 delete $arg{poll};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines