aboutsummaryrefslogtreecommitdiffstats
path: root/C2J/CFuncVariable.java
diff options
context:
space:
mode:
Diffstat (limited to 'C2J/CFuncVariable.java')
-rw-r--r--C2J/CFuncVariable.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/C2J/CFuncVariable.java b/C2J/CFuncVariable.java
index 267420f..3bf9656 100644
--- a/C2J/CFuncVariable.java
+++ b/C2J/CFuncVariable.java
@@ -20,6 +20,7 @@ public class CFuncVariable
public boolean isVoid;
public boolean isConst;
+ public boolean usePointerHolderCast;
public int arrayNumber;
@@ -54,7 +55,7 @@ public class CFuncVariable
*/
public String identifier;
- public CFuncVariable()
+ public CFuncVariable(boolean _usePointerHolderCast)
{
complete=false;
@@ -62,6 +63,8 @@ public class CFuncVariable
isConst=false;
isGLUPtrObject=false;
+ usePointerHolderCast=_usePointerHolderCast;
+
arrayNumber=0;
typeC = null;
@@ -72,7 +75,7 @@ public class CFuncVariable
protected Object clone()
throws CloneNotSupportedException
{
- CFuncVariable nobj=new CFuncVariable();
+ CFuncVariable nobj=new CFuncVariable(usePointerHolderCast);
nobj.typeC=new String(typeC);
nobj.typeJava=new String(typeJava);
nobj.identifier=new String(identifier);
@@ -97,7 +100,7 @@ public class CFuncVariable
res += "*";
res += " "+identifier;
if(isVoid)
- res += " /* Void */";
+ res += " /* Void typeC = <"+typeC+"> */";
return res;
}
@@ -179,7 +182,12 @@ public class CFuncVariable
for(j=0; j<arrayNumber; j++)
res+="*";
if(isGLUPtrObject)
- res+="*) (PointerHolder";
+ {
+ if(usePointerHolderCast)
+ res+="*) (PointerHolder";
+ else
+ res+="*";
+ }
return res;
}
}