From: <ha...@us...> - 2010-04-06 22:02:15
|
Revision: 12778 http://jmol.svn.sourceforge.net/jmol/?rev=12778&view=rev Author: hansonr Date: 2010-04-06 22:02:08 +0000 (Tue, 06 Apr 2010) Log Message: ----------- debug comments out Modified Paths: -------------- trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java Modified: trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java =================================================================== --- trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java 2010-04-06 21:57:10 UTC (rev 12777) +++ trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java 2010-04-06 22:02:08 UTC (rev 12778) @@ -2066,7 +2066,7 @@ if (scriptLevel == scriptLevelMax) error(ERROR_tooManyScriptLevels); stack[scriptLevel++] = getScriptContext(); - if (true || isCmdLine_c_or_C_Option) + if (isCmdLine_c_or_C_Option) Logger.info("-->>-------------".substring(0, scriptLevel + 5) + scriptLevel + " " + filename); if (token != null) { @@ -2074,6 +2074,17 @@ } } + private void popContext(boolean isPushPop) { + if (isCmdLine_c_or_C_Option) + Logger.info("--<<-------------".substring(0, scriptLevel + 5) + + scriptLevel + " " + filename); + if (scriptLevel == 0) + return; + ScriptContext context = stack[--scriptLevel]; + stack[scriptLevel] = null; + getScriptContext(context, true, isPushPop); + } + public ScriptContext getScriptContext() { ScriptContext context = new ScriptContext(); context.contextPath = contextPath; @@ -2143,17 +2154,6 @@ pcEnd = context.pcEnd; } - private void popContext(boolean isPushPop) { - if (true || isCmdLine_c_or_C_Option) - Logger.info("--<<-------------".substring(0, scriptLevel + 5) - + scriptLevel + " " + filename); - if (scriptLevel == 0) - return; - ScriptContext context = stack[--scriptLevel]; - stack[scriptLevel] = null; - getScriptContext(context, true, isPushPop); - } - private String getContext(boolean withVariables) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < scriptLevel; i++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |