diff options
author | Sven Gothel <[email protected]> | 2008-07-18 15:41:10 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-07-18 15:41:10 +0000 |
commit | f321f151a652b9722af489a82793ac2802769638 (patch) | |
tree | 94f61b99774c185321f5712b181fb2a7a1d330ab | |
parent | 95617805768e0100f8691eb1b3afd1761e406cd1 (diff) |
Added Config: 'NioDirectOnly [__ALL__|<FuncName>]'
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@103 a78bb65f-1512-4460-ba86-f6dc96a7bf27
-rw-r--r-- | src/java/com/sun/gluegen/JavaConfiguration.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/JavaConfiguration.java b/src/java/com/sun/gluegen/JavaConfiguration.java index b64361f..cfa2d8b 100644 --- a/src/java/com/sun/gluegen/JavaConfiguration.java +++ b/src/java/com/sun/gluegen/JavaConfiguration.java @@ -119,6 +119,7 @@ public class JavaConfiguration { private Set/*<Pattern>*/ unimplemented = new HashSet(); private boolean forceNioOnly4All=false; private Set/*<String>*/ nioOnly = new HashSet(); + private boolean forceNioDirectOnly4All=false; private Set/*<String>*/ nioDirectOnly = new HashSet(); private Set/*<String>*/ manuallyImplement = new HashSet(); private Map/*<String,List<String>>*/ customJavaCode = new HashMap(); @@ -442,6 +443,8 @@ public class JavaConfiguration { return forceNioOnly4All || nioOnly.contains(functionName); } + public boolean isForceNioDirectOnly4All() { return forceNioDirectOnly4All; } + public void addNioDirectOnly(String fname ) { nioDirectOnly.add(fname); } @@ -449,7 +452,7 @@ public class JavaConfiguration { variant, and no array variants, for <code>void*</code> and other C primitive pointers. */ public boolean nioDirectOnly(String functionName) { - return nioDirectOnly.contains(functionName); + return forceNioDirectOnly4All || nioDirectOnly.contains(functionName); } /** Returns true if the glue code for the given function will be @@ -831,7 +834,7 @@ public class JavaConfiguration { } else if (cmd.equalsIgnoreCase("NioDirectOnly")) { String funcName = readString("NioDirectOnly", tok, filename, lineNo); if(funcName.equals("__ALL__")) { - forceNioOnly4All=true; + forceNioDirectOnly4All=true; } else { addNioDirectOnly( funcName ); } |