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.70 by root, Sun May 27 23:56:21 2007 UTC vs.
Revision 1.71 by root, Mon May 28 03:47:44 2007 UTC

383 void get_ornull (shstr &sh) const { sh = value; } 383 void get_ornull (shstr &sh) const { sh = value; }
384 void get (shstr &sh) const { sh = value; } // might want to check for non-null here 384 void get (shstr &sh) const { sh = value; } // might want to check for non-null here
385 385
386 bool get_bool () const { return *value_nn == '1'; } 386 bool get_bool () const { return *value_nn == '1'; }
387 sint32 get_sint32 () const; 387 sint32 get_sint32 () const;
388 sint64 get_sint64 () const { return atoll (value_nn); } 388 sint64 get_sint64 () const { return strtoll (value_nn, 0, 10); }
389 double get_double () const { return atof (value_nn); } 389 double get_double () const { return strtod (value_nn, 0); }
390 390
391 void get (float &v) { v = get_double (); } 391 void get (float &v) { v = get_double (); }
392 void get (double &v) { v = get_double (); } 392 void get (double &v) { v = get_double (); }
393 393
394 void get (bool &i) { i = get_bool (); } 394 void get (bool &i) { i = get_bool (); }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines