Change the prototype to return void, remove the output to RETVAL
(which isn't set anyway), and fix a typo in the code.
p4raw-id: //depot/perl@32928
XPUSHs( key );
}
-SV*
+void
hv_store(hvref, key, val)
SV* hvref
SV* key
CODE:
{
if (!SvROK(hvref) || SvTYPE(SvRV(hvref)) != SVt_PVHV)
- croak("First argument to alias_hv() must be a hash reference");
+ croak("First argument to hv_store() must be a hash reference");
hv = (HV*)SvRV(hvref);
SvREFCNT_inc(val);
if (!hv_store_ent(hv, key, val, 0)) {
} else {
XSRETURN_YES;
}
-
}
- OUTPUT:
- RETVAL
\ No newline at end of file
+