aboutsummaryrefslogtreecommitdiffstats
path: root/C2J/CFuncVariable.java
diff options
context:
space:
mode:
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;