diff options
author | Doug MacEachern <dougm@covalent.net> | 2001-02-12 01:22:45 -0800 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-12 22:59:11 +0000 |
commit | 24f81a43516329e25358da5cf5b11ee0116287bd (patch) | |
tree | c6624eadec46cb1455d156b55d4d13df6f2b789f /mg.c | |
parent | 5ca7ba5e9f8716627179afcceb815f98090e3bd4 (diff) | |
download | perl-24f81a43516329e25358da5cf5b11ee0116287bd.tar.gz |
Re: [patch] context for 'U' magic functions
Message-ID: <Pine.LNX.4.21.0102120919040.26437-100000@mako.covalent.net>
plus the suggestion by Nick Ing-Simmons to name the macro
as PERL_MG_UFUNC to avoid namespace pollution, plus add
the advice by Doug for XS writers to perl.h
p4raw-id: //depot/perl@8774
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -796,7 +796,7 @@ Perl_magic_getuvar(pTHX_ SV *sv, MAGIC *mg) struct ufuncs *uf = (struct ufuncs *)mg->mg_ptr; if (uf && uf->uf_val) - (*uf->uf_val)(uf->uf_index, sv); + (*uf->uf_val)(aTHX_ uf->uf_index, sv); return 0; } @@ -1667,7 +1667,7 @@ Perl_magic_setuvar(pTHX_ SV *sv, MAGIC *mg) struct ufuncs *uf = (struct ufuncs *)mg->mg_ptr; if (uf && uf->uf_set) - (*uf->uf_set)(uf->uf_index, sv); + (*uf->uf_set)(aTHX_ uf->uf_index, sv); return 0; } |