ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.140 by root, Fri Apr 6 07:45:33 2007 UTC vs.
Revision 1.141 by root, Fri Apr 6 21:53:56 2007 UTC

27 27
28use AnyEvent (); 28use AnyEvent ();
29use Pod::POM (); 29use Pod::POM ();
30use File::Path (); 30use File::Path ();
31use Storable (); # finally 31use Storable (); # finally
32use Fcntl ();
32 33
33BEGIN { 34BEGIN {
34 use Crossfire::Protocol::Base (); 35 use Crossfire::Protocol::Base ();
35 *to_json = \&Crossfire::Protocol::Base::to_json; 36 *to_json = \&Crossfire::Protocol::Base::to_json;
36 *from_json = \&Crossfire::Protocol::Base::from_json; 37 *from_json = \&Crossfire::Protocol::Base::from_json;
226 and die $res->status_line; 227 and die $res->status_line;
227 228
228 $res 229 $res
229} 230}
230 231
232sub fh_nonblocking($$) {
233 my ($fh, $nb) = @_;
234
235 if ($^O =~ /Win32/) {
236 $nb = ! ! $nb;
237 ioctl $fh, 0x8004667e, $nb; # FIONBIO
238 } else {
239 fcntl $fh, &Fcntl::F_SETFL, $nb ? &Fcntl::O_NONBLOCK : 0;
240 }
241
242}
243
231package CFPlus::Layout; 244package CFPlus::Layout;
232 245
233$CFPlus::OpenGL::SHUTDOWN_HOOK{"CFPlus::Layout"} = sub { 246$CFPlus::OpenGL::SHUTDOWN_HOOK{"CFPlus::Layout"} = sub {
234 reset_glyph_cache; 247 reset_glyph_cache;
235}; 248};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines