diff options
author | Sven Gothel <[email protected]> | 2012-10-16 07:42:41 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-16 07:42:41 +0200 |
commit | 33ffe6769081401741813507ab01faa5ede80eae (patch) | |
tree | 8c128f8268c1134e2c65d88c6800aea96675c1f6 /src/java/com/jogamp/gluegen/procaddress | |
parent | 3ccb9dbc00746d31f08a907d190892d68273d4bf (diff) |
ProcAddressEmitter: Remove 'guessing' argument names from types, since they are ambiguous - better use default generic ones to avoid confusion.
Diffstat (limited to 'src/java/com/jogamp/gluegen/procaddress')
-rwxr-xr-x | src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java index fe4c5e2..ba884d0 100755 --- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java +++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java @@ -55,7 +55,6 @@ import com.jogamp.gluegen.JavaEmitter; import com.jogamp.gluegen.JavaMethodBindingEmitter; import com.jogamp.gluegen.MethodBinding; import com.jogamp.gluegen.cgram.types.FunctionSymbol; -import com.jogamp.gluegen.cgram.types.FunctionType; import com.jogamp.gluegen.cgram.types.Type; import com.jogamp.gluegen.cgram.types.TypeDictionary; import com.jogamp.gluegen.runtime.FunctionAddressResolver; @@ -272,21 +271,6 @@ public class ProcAddressEmitter extends JavaEmitter { shouldWrap = true; } - if (shouldWrap) { - // Hoist argument names from function pointer if not supplied in prototype - Type funcPointerType = typedefDictionary.get(funcPointerTypedefName); - if (funcPointerType != null) { - FunctionType typedef = funcPointerType.asPointer().getTargetType().asFunction(); - FunctionType fun = sym.getType(); - int numarg = typedef.getNumArguments(); - for (int i = 0; i < numarg; i++) { - if (fun.getArgumentName(i) == null) { - fun.setArgumentName(i, typedef.getArgumentName(i)); - } - } - } - } - return shouldWrap; } |