changes will be needed to get it to link though.
p4raw-id: //depot/perl@29142
while (++mark <= sp)
if (*mark)
- *a++ = SvPVx(*mark, n_a);
+ *a++ = SvPVx((SV *)*mark, n_a);
else
*a++ = "";
*a = Nullch;
}
/* see also Cwd.pm */
-static
XS(Cygwin_cwd)
{
dXSARGS;
XSRETURN_UNDEF;
}
-static
XS(XS_Cygwin_pid_to_winpid)
{
dXSARGS;
XSRETURN_UNDEF;
}
-static
XS(XS_Cygwin_winpid_to_pid)
{
dXSARGS;
}
Free_t
-Perl_mfree(void *mp)
+Perl_mfree(Malloc_t where)
{
dVAR;
register MEM_SIZE size;
register union overhead *ovp;
- char *cp = (char*)mp;
+ char *cp = (char*)where;
#ifdef PACK_MALLOC
u_char bucket;
#endif
MEM_SIZE l = strlen(s);
char *s1 = (char *)Perl_malloc(l+1);
- return CopyD(s, s1, (MEM_SIZE)(l+1), char);
+ return (char *)CopyD(s, s1, (MEM_SIZE)(l+1), char);
}
#ifdef PERL_CORE
if (l < sizeof(buf))
var = buf;
else
- var = Perl_malloc(l + 1);
+ var = (char *)Perl_malloc(l + 1);
Copy(a, var, l, char);
var[l + 1] = 0;
my_setenv(var, val+1);
EXTERN_C char **environ;
#endif
+#if defined(__CYGWIN__) && defined(__cplusplus)
+EXTERN_C char *crypt(const char *, const char *);
+#endif
+
#ifdef SETERRNO
# undef SETERRNO /* SOCKS might have defined this */
#endif
/* fall through */
case SAVEt_COMPPAD:
case SAVEt_NSTAB:
- sv = POPPTR(ss,ix);
+ sv = (SV*) POPPTR(ss,ix);
TOPPTR(nss,ix) = sv_dup(sv, param);
break;
case SAVEt_INT: /* int reference */