From 9c6fd6cc718738e5f1cd2d9bfecc490e1c80350c Mon Sep 17 00:00:00 2001 From: Andrew Cohen Date: Fri, 27 Feb 1998 15:03:29 -0500 Subject: [PATCH] Change getc/fread to PerlIO_getc/fread in bytecode.h: Subject: [PATCH 5.004_61] bunch of small patches p4raw-id: //depot/perl@769 --- bytecode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bytecode.h b/bytecode.h index f605e27..8cdb001 100644 --- a/bytecode.h +++ b/bytecode.h @@ -23,8 +23,8 @@ EXT I32 obj_list_fill INIT(-1); bs.fread((char*)(argp),(len),(nelem),bs.data) #define BGET_FGETC() bs.fgetc(bs.data) #else -#define BGET_FREAD(argp, len, nelem) fread((argp), (len), (nelem), fp) -#define BGET_FGETC() getc(fp) +#define BGET_FREAD(argp, len, nelem) PerlIO_fread((argp), (len), (nelem), fp) +#define BGET_FGETC() PerlIO_getc(fp) #endif /* INDIRECT_BGET_MACROS */ #define BGET_U32(arg) \ @@ -51,7 +51,7 @@ EXT I32 obj_list_fill INIT(-1); BGET_U32(arg); \ if (arg) { \ New(666, pv.xpv_pv, arg, char); \ - fread(pv.xpv_pv, 1, arg, fp); \ + PerlIO_fread(pv.xpv_pv, 1, arg, fp); \ pv.xpv_len = arg; \ pv.xpv_cur = arg - 1; \ } else { \ -- 2.7.4