Skip to content

Commit

Permalink
Removed Android specifics debug stanzas, unadvertendly committed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxo committed Apr 1, 2012
1 parent ffc1222 commit c0f71dd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions rexxlib/Rexx.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include "Rexx.h"
#include "BatchCompiler.h"
#include <android/log.h>
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, "REXX",__VA_ARGS__)

#ifdef YAXX_NAMESPACE
namespace YAXX_NAMESPACE {
Expand Down Expand Up @@ -58,13 +56,11 @@ int Rexx::Script::interpret(
UnicodeComposer & erh // Error Handler
) {
int rc = -1;
LOGI(" Rexx::interpret - arg is %s", arg? arg : "NULL");
RexxString strArgs(arg, strlen(arg));
BatchCompiler * pCompiler = 0;
Interpreter * pInterpreter = 0;
try {
if (!m_isCompiled) {
LOGI(" Rexx::interpret - running the BatchCompiler...");
pCompiler = new BatchCompiler(
m_input,
m_strPath,
Expand All @@ -79,7 +75,6 @@ LOGI(" Rexx::interpret - running the BatchCompiler...");
pCompiler = 0;
m_isCompiled = true;
}
LOGI(" Rexx::interpret - running the Interpreter");
pInterpreter = new Interpreter(
strArgs,
m_clauses,
Expand All @@ -96,15 +91,12 @@ LOGI(" Rexx::interpret - running the Interpreter");
#endif
result = pInterpreter->run();
delete pInterpreter;
LOGI(" Rexx::interpret - done (rc=0): the result is %s", (char const *)result);
return 0;
}catch (FatalException & e) {
delete pCompiler;
delete pInterpreter;
LOGI(" Rexx::interpret - FATAL EXCEPTION => rc is %d", e.m_codeNo);
return e.m_codeNo;
}catch (...) {
LOGI(" Rexx::interpret - INTERNAL ERROR?");
delete pCompiler;
delete pInterpreter;
throw;
Expand Down

0 comments on commit c0f71dd

Please sign in to comment.