}
if (pglob->gl_flags & GLOB_ALTDIRFUNC)
- return((*pglob->gl_opendir)(buf));
+ return((DIR*)(*pglob->gl_opendir)(buf));
return(PerlDir_open(buf));
}
ssv = newSV(0);
SvREFCNT(ssv) = 0;
}
- data = PerlMemShared_malloc(sizeof(shared_sv));
+ data = (shared_sv *) PerlMemShared_malloc(sizeof(shared_sv));
Zero(data,1,shared_sv);
SHAREDSvPTR(data) = ssv;
/* Tag shared side SV with data pointer */
MUTEX_LOCK(&create_destruct_mutex);
- thread = PerlMemShared_malloc(sizeof(ithread));
+ thread = (ithread *) PerlMemShared_malloc(sizeof(ithread));
if (!thread) {
MUTEX_UNLOCK(&create_destruct_mutex);
PerlLIO_write(PerlIO_fileno(Perl_error_log),
MUTEX_INIT(&create_destruct_mutex);
MUTEX_LOCK(&create_destruct_mutex);
PL_threadhook = &Perl_ithread_hook;
- thread = PerlMemShared_malloc(sizeof(ithread));
+ thread = (ithread *) PerlMemShared_malloc(sizeof(ithread));
if (!thread) {
PerlLIO_write(PerlIO_fileno(Perl_error_log),
PL_no_mem, strlen(PL_no_mem));
* sub's CV or padlist. */
#define PAD_CLONE_VARS(proto_perl, param) \
- PL_comppad = ptr_table_fetch(PL_ptr_table, proto_perl->Icomppad); \
+ PL_comppad = (AV *) ptr_table_fetch(PL_ptr_table, proto_perl->Icomppad); \
PL_curpad = PL_comppad ? AvARRAY(PL_comppad) : Null(SV**); \
PL_comppad_name = av_dup(proto_perl->Icomppad_name, param); \
PL_comppad_name_fill = proto_perl->Icomppad_name_fill; \
if (CvCONST(sstr)) {
CvXSUBANY(dstr).any_ptr = GvUNIQUE(CvGV(sstr)) ?
SvREFCNT_inc(CvXSUBANY(sstr).any_ptr) :
- sv_dup_inc(CvXSUBANY(sstr).any_ptr, param);
+ sv_dup_inc((SV *)CvXSUBANY(sstr).any_ptr, param);
}
/* don't dup if copying back - CvGV isn't refcounted, so the
* duped GV may never be freed. A bit of a hack! DAPM */