diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-06-27 14:28:49 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-06-27 14:28:49 +0000 |
commit | 0cb9638729211ea71a75ae8756c03ba21553bd53 (patch) | |
tree | f00e767824d620a63a26a857b6a37fcb6945f89d /globals.c | |
parent | 4f4e629e089f1120f8e94984281df06ac4f885c5 (diff) | |
download | perl-0cb9638729211ea71a75ae8756c03ba21553bd53.tar.gz |
somewhat untested PERL_OBJECT cleanups (C++isms mostly
gone from the public API); PERL_OBJECT builds again on
windows
TODO: namespace-clean the typedefs in iperlsys.h and
elsewhere; remove C++ remnants from public headers
p4raw-id: //depot/perl@3553
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 */ |