diff options
Diffstat (limited to 'globals.c')
-rw-r--r-- | globals.c | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -34,13 +34,13 @@ void* CPerlObj::operator new(size_t nSize, IPerlMem *pvtbl) { if(pvtbl != NULL) - return pvtbl->Malloc(nSize); + return pvtbl->pMalloc(pvtbl, nSize); return NULL; } int& -CPerlObj::ErrorNo(void) +Perl_ErrorNo(void) { return errno; } @@ -50,4 +50,26 @@ CPerlObj::Init(void) { } +int +CPerlObj::fprintf(PerlIO *stream, const char *format, ...) +{ + va_list(arglist); + va_start(arglist, format); + return PerlIO_vprintf(stream, format, arglist); +} + +#ifdef WIN32 /* XXX why are these needed? */ +bool +Perl_do_exec(char *cmd) +{ + return PerlProc_Cmd(cmd); +} + +int +CPerlObj::do_aspawn(void *vreally, void **vmark, void **vsp) +{ + return PerlProc_aspawn(vreally, vmark, vsp); +} +#endif /* WIN32 */ + #endif /* PERL_OBJECT */ |