summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-02-23 22:32:52 +0100
committerSven Gothel <[email protected]>2012-02-23 22:32:52 +0100
commit9520a52d504cc6219ca5027e4bde4b8280463879 (patch)
treec0f70a177d3eb7f691fd92d0871f938b96b5d3f2 /src/java/com/jogamp/gluegen
parent6bde06673d81c2d862c90ce6e27e0cfd5258c1ef (diff)
ProcAddressEmitter: Even use this emitter for manual impl. methods, which allows an enhanced comments of signature (GLEmitter)
Diffstat (limited to 'src/java/com/jogamp/gluegen')
-rwxr-xr-xsrc/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java
index c07dab7..fe4c5e2 100755
--- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java
+++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java
@@ -38,19 +38,28 @@
*/
package com.jogamp.gluegen.procaddress;
+import java.io.File;
+import java.io.PrintWriter;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
import com.jogamp.gluegen.CMethodBindingEmitter;
-import com.jogamp.gluegen.JavaConfiguration;
-import com.jogamp.gluegen.MethodBinding;
-import com.jogamp.gluegen.FunctionEmitter;
import com.jogamp.gluegen.CodeGenUtils;
-import com.jogamp.gluegen.JavaMethodBindingEmitter;
+import com.jogamp.gluegen.FunctionEmitter;
+import com.jogamp.gluegen.JavaConfiguration;
import com.jogamp.gluegen.JavaEmitter;
-import java.io.*;
-import java.text.MessageFormat;
-import java.util.*;
-import com.jogamp.gluegen.*;
-import com.jogamp.gluegen.cgram.types.*;
-import com.jogamp.gluegen.runtime.*;
+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;
+import com.jogamp.gluegen.runtime.ProcAddressTable;
/**
* A subclass of JavaEmitter that modifies the normal emission of C
@@ -171,14 +180,6 @@ public class ProcAddressEmitter extends JavaEmitter {
//
protected void generateModifiedEmitters(JavaMethodBindingEmitter baseJavaEmitter, List<FunctionEmitter> emitters) {
- if (getConfig().manuallyImplement(baseJavaEmitter.getName())) {
- // User will provide Java-side implementation of this routine;
- // pass through any emitters which will produce signatures for
- // it unmodified
- emitters.add(baseJavaEmitter);
- return;
- }
-
// See whether we need a proc address entry for this one
boolean callThroughProcAddress = needsProcAddressWrapper(baseJavaEmitter.getBinding().getCSymbol());