Data-Locations
view release on metacpan or search on metacpan
Locations.xs view on Meta::CPAN
MODULE = Data::Locations PACKAGE = Data::Locations
PROTOTYPES: DISABLE
void
_mortalize_(ref)
SV * ref
PPCODE:
{
GV *obj;
if ( DATA_LOCATIONS_OBJECT(ref,obj) )
{
EXTEND(sp,1);
PUSHs(sv_2mortal(newSViv((IV)( obj->sv_refcnt - 1 ))));
obj->sv_refcnt = 1;
}
else DATA_LOCATIONS_OBJECT_ERROR("_mortalize_");
Locations.xs view on Meta::CPAN
obj->sv_refcnt += val;
}
else DATA_LOCATIONS_NUMERIC_ERROR("_resurrect_");
}
else DATA_LOCATIONS_OBJECT_ERROR("_resurrect_");
}
void
Version(...)
PPCODE:
{
if ((items >= 0) && (items <= 1))
{
EXTEND(sp,1);
PUSHs(sv_2mortal(newSVpv((char *)"5.5",0)));
}
else croak("Usage: Data::Locations->Version()");
}
( run in 0.724 second using v1.01-cache-2.11-cpan-5511b514fd6 )