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 */
50 CPerlObj::operator delete(void *pPerl, IPerlMem *pvtbl)
53 pvtbl->pFree(pvtbl, pPerl);
57 #ifdef WIN32 /* XXX why are these needed? */
59 Perl_do_exec(char *cmd)
61 return PerlProc_Cmd(cmd);
65 CPerlObj::do_aspawn(void *vreally, void **vmark, void **vsp)
67 return PerlProc_aspawn(vreally, vmark, vsp);
71 #endif /* PERL_OBJECT */
74 Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
78 va_start(arglist, format);
79 return PerlIO_vprintf(stream, format, arglist);
83 Perl_printf_nocontext(const char *format, ...)
87 va_start(arglist, format);
88 return PerlIO_vprintf(PerlIO_stdout(), format, arglist);
91 #include "perlapi.h" /* bring in PL_force_link_funcs */