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

Comparing deliantra/server/server/cfperl.xs (file contents):
Revision 1.114 by root, Wed Dec 27 09:28:02 2006 UTC vs.
Revision 1.115 by root, Wed Dec 27 13:13:47 2006 UTC

320inline void sv_to (SV *sv, unsigned long &v) { v = SvUV (sv); } 320inline void sv_to (SV *sv, unsigned long &v) { v = SvUV (sv); }
321inline void sv_to (SV *sv, signed long long &v) { v = ( signed long long)SvVAL64 (sv); } 321inline void sv_to (SV *sv, signed long long &v) { v = ( signed long long)SvVAL64 (sv); }
322inline void sv_to (SV *sv, unsigned long long &v) { v = (unsigned long long)SvVAL64 (sv); } 322inline void sv_to (SV *sv, unsigned long long &v) { v = (unsigned long long)SvVAL64 (sv); }
323inline void sv_to (SV *sv, float &v) { v = SvNV (sv); } 323inline void sv_to (SV *sv, float &v) { v = SvNV (sv); }
324inline void sv_to (SV *sv, double &v) { v = SvNV (sv); } 324inline void sv_to (SV *sv, double &v) { v = SvNV (sv); }
325inline void sv_to (SV *sv, client * &v) { v = (client *)SvPTR_ornull (sv, "cf::client"); } 325inline void sv_to (SV *sv, client * &v) { v = (client *)(attachable *)SvPTR_ornull (sv, "cf::client"); }
326inline void sv_to (SV *sv, player * &v) { v = (player *)SvPTR_ornull (sv, "cf::player"); } 326inline void sv_to (SV *sv, player * &v) { v = (player *)(attachable *)SvPTR_ornull (sv, "cf::player"); }
327inline void sv_to (SV *sv, object * &v) { v = (object *)SvPTR_ornull (sv, "cf::object"); } 327inline void sv_to (SV *sv, object * &v) { v = (object *)(attachable *)SvPTR_ornull (sv, "cf::object"); }
328inline void sv_to (SV *sv, archetype * &v) { v = (archetype *)SvPTR_ornull (sv, "cf::arch"); } 328inline void sv_to (SV *sv, archetype * &v) { v = (archetype *)(attachable *)SvPTR_ornull (sv, "cf::arch"); }
329inline void sv_to (SV *sv, maptile * &v) { v = (maptile *)SvPTR_ornull (sv, "cf::map"); } 329inline void sv_to (SV *sv, maptile * &v) { v = (maptile *)(attachable *)SvPTR_ornull (sv, "cf::map"); }
330inline void sv_to (SV *sv, partylist * &v) { v = (partylist *)SvPTR_ornull (sv, "cf::party"); } 330inline void sv_to (SV *sv, partylist * &v) { v = (partylist *)SvPTR_ornull (sv, "cf::party"); }
331inline void sv_to (SV *sv, region * &v) { v = (region *)SvPTR_ornull (sv, "cf::region"); } 331inline void sv_to (SV *sv, region * &v) { v = (region *)SvPTR_ornull (sv, "cf::region"); }
332inline void sv_to (SV *sv, living * &v) { v = (living *)SvPTR_ornull (sv, "cf::living"); } 332inline void sv_to (SV *sv, living * &v) { v = (living *)SvPTR_ornull (sv, "cf::living"); }
333 333
334inline void sv_to (SV *sv, New_Face * &v) { v = &new_faces[FindFace (SvPV_nolen (sv), 0)]; } //TODO 334inline void sv_to (SV *sv, New_Face * &v) { v = &new_faces[FindFace (SvPV_nolen (sv), 0)]; } //TODO
1918 CODE: 1918 CODE:
1919 RETVAL = SvROK (obj) && mg_find (SvRV (obj), PERL_MAGIC_ext); 1919 RETVAL = SvROK (obj) && mg_find (SvRV (obj), PERL_MAGIC_ext);
1920 OUTPUT: 1920 OUTPUT:
1921 RETVAL 1921 RETVAL
1922 1922
1923#bool
1924#destroyed (attachable *at)
1925#
1926#void
1927#destroy (attachable *at)
1928
1923MODULE = cf PACKAGE = cf::global 1929MODULE = cf PACKAGE = cf::global
1924 1930
1925int invoke (SV *klass, int event, ...) 1931int invoke (SV *klass, int event, ...)
1926 CODE: 1932 CODE:
1927 if (KLASS_OF (event) != KLASS_GLOBAL) croak ("event class must be GLOBAL"); 1933 if (KLASS_OF (event) != KLASS_GLOBAL) croak ("event class must be GLOBAL");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines