From 1754f08ec0fb62ecd23f1ec3ec7c94da9a44de7a Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 28 May 2006 00:33:56 +0000 Subject: Fixed and improved handling of Opaque directives for multiple pointer depths in particular to fix AGLPbuffer case supplied by Justin Couch. Tested with builds on Windows, Linux and Mac OS X and AGL test case. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@33 a78bb65f-1512-4460-ba86-f6dc96a7bf27 --- src/java/com/sun/gluegen/MethodBinding.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/java/com/sun/gluegen/MethodBinding.java') diff --git a/src/java/com/sun/gluegen/MethodBinding.java b/src/java/com/sun/gluegen/MethodBinding.java index b8ebb09..f8a4d2c 100644 --- a/src/java/com/sun/gluegen/MethodBinding.java +++ b/src/java/com/sun/gluegen/MethodBinding.java @@ -354,7 +354,10 @@ public class MethodBinding { } if (cArgType.isPointer()) { - if (cArgType.asPointer().getTargetType().isPrimitive()) { + // Handle both real C primitive pointers and any constructions + // due to opaque directives + if (cArgType.asPointer().getTargetType().isPrimitive() || + javaArgType.isCPrimitivePointerType()) { signatureUsesCPrimitivePointers = true; } else if (cArgType.asPointer().getTargetType().isVoid()) { signatureUsesCVoidPointers = true; -- cgit v1.2.3