summaryrefslogtreecommitdiff
path: root/symbian/PerlBase.cpp
diff options
context:
space:
mode:
authorAdam Russell <arussell@cs.uml.edu>2009-06-28 18:13:28 -0400
committerH.Merijn Brand <h.m.brand@xs4all.nl>2009-06-29 12:14:54 +0200
commit43639bac1f28a48b8efcdee9011ac1116f2dad8d (patch)
tree7964051bc4bd22daa825623b659f1b14e9d779b8 /symbian/PerlBase.cpp
parentc3624cb8d7408c7bfe21b5f565063cc92cecfd19 (diff)
downloadperl-43639bac1f28a48b8efcdee9011ac1116f2dad8d.tar.gz
patch submission(symbian/PerlBase.cpp)
charset="iso-8859-1" I needed to create a new constructor which does not use the cleanup stack since use of the cleanup stack from a console app will cause a kernel panic. Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Diffstat (limited to 'symbian/PerlBase.cpp')
-rw-r--r--symbian/PerlBase.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/symbian/PerlBase.cpp b/symbian/PerlBase.cpp
index 851fc15673..4162e57759 100644
--- a/symbian/PerlBase.cpp
+++ b/symbian/PerlBase.cpp
@@ -55,6 +55,19 @@ CPerlBase::~CPerlBase()
Destruct();
}
+EXPORT_C CPerlBase* CPerlBase::NewInterpreter(TBool aCloseStdlib,
+ void (*aStdioInitFunc)(void*),
+ void *aStdioInitCookie)
+{
+ CPerlBase* self = new (ELeave) CPerlBase;
+ self->iCloseStdlib = aCloseStdlib;
+ self->iStdioInitFunc = aStdioInitFunc;
+ self->iStdioInitCookie = aStdioInitCookie;
+ self->ConstructL();
+ PERL_APPCTX_SET(self);
+ return self;
+}
+
EXPORT_C CPerlBase* CPerlBase::NewInterpreterL(TBool aCloseStdlib,
void (*aStdioInitFunc)(void*),
void *aStdioInitCookie)