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.5 by root, Wed Jul 9 11:53:40 2008 UTC vs.
Revision 1.6 by root, Fri Nov 21 01:35:59 2008 UTC

41 41
42 ref $arg{cb} 42 ref $arg{cb}
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 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 delete $arg{fh}; 48 delete $arg{fh};
49 49
50 $arg{poll} =~ /^[rw]$/ 50 $arg{poll} =~ /^[rw]$/
51 or croak "AnyEvent->io called with illegal poll argument '$arg{poll}'"; 51 or croak "AnyEvent->io called with illegal poll argument '$arg{poll}'";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines