From 55662e2777d994718a43f1019ada9071e032971d Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Tue, 2 May 2006 11:25:55 +0300 Subject: toke.c: function pointer to data pointer Message-Id: <200605020525.k425Ptik165705@kosh.hut.fi> p4raw-id: //depot/perl@28055 --- toke.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'toke.c') diff --git a/toke.c b/toke.c index 29d8380347..b0c0ccc7a3 100644 --- a/toke.c +++ b/toke.c @@ -2592,7 +2592,8 @@ Perl_filter_add(pTHX_ filter_t funcp, SV *datasv) IoANY(datasv) = FPTR2DPTR(void *, funcp); /* stash funcp into spare field */ IoFLAGS(datasv) |= IOf_FAKE_DIRP; DEBUG_P(PerlIO_printf(Perl_debug_log, "filter_add func %p (%s)\n", - IoANY(datasv), SvPV_nolen(datasv))); + FPTR2DPTR(void *, IoANY(datasv)), + SvPV_nolen(datasv))); av_unshift(PL_rsfp_filters, 1); av_store(PL_rsfp_filters, 0, datasv) ; return(datasv); @@ -2607,7 +2608,8 @@ Perl_filter_del(pTHX_ filter_t funcp) SV *datasv; #ifdef DEBUGGING - DEBUG_P(PerlIO_printf(Perl_debug_log, "filter_del func %p", (void*)FPTR2DPTR(XPVIO *, funcp))); + DEBUG_P(PerlIO_printf(Perl_debug_log, "filter_del func %p", + FPTR2DPTR(void*, funcp))); #endif if (!PL_rsfp_filters || AvFILLp(PL_rsfp_filters)<0) return; @@ -12407,7 +12409,8 @@ utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen) const I32 count = FILTER_READ(idx+1, sv, maxlen); DEBUG_P(PerlIO_printf(Perl_debug_log, "utf16_textfilter(%p): %d %d (%d)\n", - (void*)utf16_textfilter, idx, maxlen, (int) count)); + FPTR2DPTR(void *, utf16_textfilter), + idx, maxlen, (int) count)); if (count) { U8* tmps; I32 newlen; @@ -12429,7 +12432,8 @@ utf16rev_textfilter(pTHX_ int idx, SV *sv, int maxlen) const I32 count = FILTER_READ(idx+1, sv, maxlen); DEBUG_P(PerlIO_printf(Perl_debug_log, "utf16rev_textfilter(%p): %d %d (%d)\n", - (void*)utf16rev_textfilter, idx, maxlen, (int) count)); + FPTR2DPTR(void *, utf16rev_textfilter), + idx, maxlen, (int) count)); if (count) { U8* tmps; I32 newlen; -- cgit v1.2.1