[Mathlib-commitlog] SF.net SVN: mathlib:[757] JMathLib/trunk/src/jmathlib/core/functions
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-24 19:41:08
|
Revision: 757
http://mathlib.svn.sourceforge.net/mathlib/?rev=757&view=rev
Author: st_mueller
Date: 2009-01-24 19:41:02 +0000 (Sat, 24 Jan 2009)
Log Message:
-----------
changed signature of evaluate(Token[] operands)
to
evaluate(Token[] operands, GlobalValues globals)
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/functions/ExternalFunctionClassLoader.java
JMathLib/trunk/src/jmathlib/core/functions/FileFunctionLoader.java
JMathLib/trunk/src/jmathlib/core/functions/FunctionPathBroker.java
JMathLib/trunk/src/jmathlib/core/functions/ReflectionFunctionCall.java
Modified: JMathLib/trunk/src/jmathlib/core/functions/ExternalFunctionClassLoader.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/functions/ExternalFunctionClassLoader.java 2009-01-24 19:40:48 UTC (rev 756)
+++ JMathLib/trunk/src/jmathlib/core/functions/ExternalFunctionClassLoader.java 2009-01-24 19:41:02 UTC (rev 757)
@@ -79,7 +79,7 @@
ErrorLogger.debugLine("ext func loader: NOTFOUND");
return null;
}
- else if (!classFile.getName().toLowerCase().endsWith(".class")){
+ else if (!classFile.getName().endsWith(".class")){
ErrorLogger.debugLine("ext func loader: Non-class file attempted load");
return null;
}else
Modified: JMathLib/trunk/src/jmathlib/core/functions/FileFunctionLoader.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/functions/FileFunctionLoader.java 2009-01-24 19:40:48 UTC (rev 756)
+++ JMathLib/trunk/src/jmathlib/core/functions/FileFunctionLoader.java 2009-01-24 19:41:02 UTC (rev 757)
@@ -85,7 +85,7 @@
protected Function parseFunctionFile(File functionFile, String functionName) {
Function func = null;
- String fileName = functionFile.getName().toLowerCase();
+ String fileName = functionFile.getName();
if (fileName.endsWith(".m"))
{
func = mLoader.loadMFile(functionFile.getParent(), functionName);
Modified: JMathLib/trunk/src/jmathlib/core/functions/FunctionPathBroker.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/functions/FunctionPathBroker.java 2009-01-24 19:40:48 UTC (rev 756)
+++ JMathLib/trunk/src/jmathlib/core/functions/FunctionPathBroker.java 2009-01-24 19:41:02 UTC (rev 757)
@@ -80,10 +80,10 @@
if(index > -1)
{
String tempFunction = fileName.substring(0, index);
- if(tempFunction.equalsIgnoreCase(functionName) &&
- (fileName.equalsIgnoreCase(functionName+".m") ||
- fileName.equalsIgnoreCase(functionName+".p") ||
- fileName.equalsIgnoreCase(functionName+".class") ) )
+ if(tempFunction.equals(functionName) &&
+ (fileName.equals(functionName+".m") ||
+ fileName.equals(functionName+".p") ||
+ fileName.equals(functionName+".class") ) )
{
result = files[fileNo];
break;
Modified: JMathLib/trunk/src/jmathlib/core/functions/ReflectionFunctionCall.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/functions/ReflectionFunctionCall.java 2009-01-24 19:40:48 UTC (rev 756)
+++ JMathLib/trunk/src/jmathlib/core/functions/ReflectionFunctionCall.java 2009-01-24 19:41:02 UTC (rev 757)
@@ -27,7 +27,7 @@
externalClass = _externalClass;
}
- public OperandToken evaluate(Token []operands)
+ public OperandToken evaluate(Token []operands, GlobalValues globals)
{
boolean found = false;
ErrorLogger.debugLine("evaluating reflection function");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|