ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/cfperl.h
(Generate patch)

Comparing deliantra/server/include/cfperl.h (file contents):
Revision 1.91 by root, Wed Nov 14 08:09:46 2007 UTC vs.
Revision 1.93 by root, Sun Jan 13 12:14:52 2008 UTC

388 AV *av; // perl part 388 AV *av; // perl part
389 int linenum; 389 int linenum;
390 keyword kw; 390 keyword kw;
391 char *kw_str; // the keyword parsed, as string 391 char *kw_str; // the keyword parsed, as string
392 char *value; // the value, or 0 if no value 392 char *value; // the value, or 0 if no value
393 char *value_nn; // the value, or the empty string if no value 393 const char *value_nn; // the value, or the empty string if no value
394 const char *name; 394 const char *name;
395 395
396 operator bool () const { return !!text; } 396 operator bool () const { return !!text; }
397 397
398 object_thawer (const char *path = 0); 398 object_thawer (const char *path = 0);
496 static struct EVAPI *GEVAPI; 496 static struct EVAPI *GEVAPI;
497}; 497};
498 498
499struct iow : ev_io, evapi, callback<void (iow &, int)> 499struct iow : ev_io, evapi, callback<void (iow &, int)>
500{ 500{
501 static void thunk (struct ev_io *w_, int revents) 501 static void thunk (EV_P_ struct ev_io *w_, int revents)
502 { 502 {
503 iow &w = *static_cast<iow *>(w_); 503 iow &w = *static_cast<iow *>(w_);
504 504
505 w (w, revents); 505 w (w, revents);
506 } 506 }
521 521
522 void poll (int events); 522 void poll (int events);
523 523
524 void start () 524 void start ()
525 { 525 {
526 ev_io_start ((ev_io *)this); 526 ev_io_start (EV_DEFAULT, (ev_io *)this);
527 } 527 }
528 528
529 void stop () 529 void stop ()
530 { 530 {
531 ev_io_stop ((ev_io *)this); 531 ev_io_stop (EV_DEFAULT, (ev_io *)this);
532 } 532 }
533 533
534 ~iow () 534 ~iow ()
535 { 535 {
536 stop (); 536 stop ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines