aboutsummaryrefslogtreecommitdiffstats
path: root/C2J/CFuncVariable.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-06-18 23:20:46 +0000
committerSven Gothel <[email protected]>2001-06-18 23:20:46 +0000
commitcc7376ee5616743cdd7b7a5c711f054b32ae8e4e (patch)
tree1550b5fd8630667151fe30e74811abb6a45792ea /C2J/CFuncVariable.java
parent8512ae5ab8a75fad8a75aec0b6e04e3fcd1d2c6f (diff)
2.8.0.0 pre-release cvs only
Diffstat (limited to 'C2J/CFuncVariable.java')
-rw-r--r--C2J/CFuncVariable.java28
1 files changed, 22 insertions, 6 deletions
diff --git a/C2J/CFuncVariable.java b/C2J/CFuncVariable.java
index 3bf9656..d25139a 100644
--- a/C2J/CFuncVariable.java
+++ b/C2J/CFuncVariable.java
@@ -135,8 +135,16 @@ public class CFuncVariable
res+=typeJava;
- for(j=0; j<arrayNumber; j++)
+ if(typeJava.equals("String"))
+ j=1;
+ else
+ j=0;
+
+ while(j<arrayNumber)
+ {
res+="[]";
+ j++;
+ }
return res;
}
@@ -151,12 +159,20 @@ public class CFuncVariable
int j;
String res = new String();
- if(isVoid)
- res+=typeJava;
- else
- res+="j"+typeJava;
+ if(typeJava.equals("String") && arrayNumber==1)
+ {
+ res+="jstring";
+ j=1;
+ } else {
+ if(isVoid)
+ res+=typeJava;
+ else
+ res+="j"+typeJava;
+
+ j=0;
+ }
- if(arrayNumber>0)
+ if(arrayNumber>j)
res+="Array";
return res;