2 #define PERL_IN_GLOBALS_C
10 #define PERLVARA(x, n, y)
12 #define PERLVARI(x, y, z) interp.x = z;
14 #define PERLVARIC(x, y, z) interp.x = z;
16 CPerlObj::CPerlObj(IPerlMem* ipM, IPerlMem* ipMS, IPerlMem* ipMP,
17 IPerlEnv* ipE, IPerlStdIO* ipStd,
18 IPerlLIO* ipLIO, IPerlDir* ipD, IPerlSock* ipS,
21 memset(((char*)this)+sizeof(void*), 0, sizeof(CPerlObj)-sizeof(void*));
38 CPerlObj::operator new(size_t nSize, IPerlMem *pvtbl)
41 return pvtbl->pMalloc(pvtbl, nSize);
43 /* operator new is supposed to throw std::bad_alloc */
49 CPerlObj::operator delete(void *pPerl, IPerlMem *pvtbl)
52 pvtbl->pFree(pvtbl, pPerl);
55 #ifdef WIN32 /* XXX why are these needed? */
57 Perl_do_exec(char *cmd)
59 return PerlProc_Cmd(cmd);
63 CPerlObj::do_aspawn(void *vreally, void **vmark, void **vsp)
65 return PerlProc_aspawn(vreally, vmark, vsp);
69 #endif /* PERL_OBJECT */
72 Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
76 va_start(arglist, format);
77 return PerlIO_vprintf(stream, format, arglist);