summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* http://www.jogamp.org/bugzilla/show_bug.cgi?id=389Sven Gothel2010-03-309-23/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32bit/64bit values and arrays are misrepresented - PointerBuffer is used to map 64bit integer values, which is illegal due to the latest PointerBuffer changes, where the underlying ByteBuffer is either 32bit wide or 64bit wide (in respect to the pointer size). The PointerBuffer semantic itself is correct, but no more suitable to represent 64bit values and arrays. A Int64Buffer (LongBuffer does not exist in CDC/CVM patch) should be used instead. - Determine use of Int64Buffer and PointerBuffer Assuming the 1st step being solved, it has to determined for which cases gluegen shall map a type to a PointerBuffer. All pointer pointer types, regardless of a Opaque mapping, ie: +++ typedef struct __MYAPIConfig * MYAPIConfig; Opaque long MYAPIConfig void foo(MYAPIConfig * ptrarray); +++ The argument 'ptrarray' must be represented as a PointerBuffer otherwise data is misrepresented in case: - 32bit machines _and_ - array semantics - more than one value is being used Impl: java/com/sun/gluegen/JavaEmitter.java: - Checks ptr-ptr for Opaque values - Returns PointerBuffer mapping for ptr-ptr types - Allow PointerBuffer being mapped as String[] Very elaborated tests .. :) ++++++++++++ Misc Changes: - Added <Type>.put(<Type>Buffer src) for Int64Buffer/PointerBuffer
* Resolved conflictsSven Gothel2010-03-2923-84/+434
|\
| * renamed BufferFactory into Buffers.Michael Bien2010-03-2914-59/+59
| |
| * moved several common utility methods from JOGL's BufferUtil to GlueGen's ↵Michael Bien2010-03-295-11/+345
| | | | | | | | BufferFactory.
| * updated scripts with correct package names.Michael Bien2010-03-283-10/+10
| |
| * updated netbeans project files (added new test folder into path).Michael Bien2010-03-281-0/+16
| |
* | New Int64Buffer type, which is being used for gluegen 'long *'Sven Gothel2010-03-2916-66/+581
| |
* | Merge CPU to PlatformSven Gothel2010-03-2811-122/+77
|/
* (part2) merged all cdc_fp special cases into one common superclass for each ↵Michael Bien2010-03-2811-1230/+953
| | | | | | | special case. introduced Platform as utility for querying platform information. special cdc build with cdc_fp bootclasspath temporary dissabled.
* (part 1) merged all cdc_fp special cases into one common superclass for each ↵Michael Bien2010-03-283-0/+0
| | | | | | | special case. introduced Platform as utility for querying platform information. special cdc build with cdc_fp bootclasspath temporary dissabled.
* Add missing fileSven Gothel2010-03-281-0/+17
|
* Merge with mbien's 2ea8c93d5fd27207872b97c964e3f8af5ac850c6Sven Gothel2010-03-2842-103/+99
|\
| * com.sun.opengl -> com.jogamp.opengl.Michael Bien2010-03-271-1/+1
| |
| * Merge branch 'master' of [email protected]:mbien/gluegenMichael Bien2010-03-274-74/+102
| |\ | | | | | | | | | | | | Conflicts: src/junit/com/jogamp/gluegen/test/junit/Test1.java
| * | renamed com.sun.gluegen.runtime -> com.jogamp.gluegen.runtime.Michael Bien2010-03-2739-95/+91
| | |
* | | http://www.jogamp.org/bugzilla/show_bug.cgi?id=389Sven Gothel2010-03-2818-519/+883
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mixed types in generated code are functioning now, even though not all permutations are generated - still. However, this patch merges the indirect object passing, wheather it is a primitive array or an indirect NIO buffer, incl. PointerBuffer. This allows the usage of only one JNI functions for all combinations. Only in case of NIODirectOnly, the simplified direct only '0' variation is created - otherwise the parametrized '1' variant. The junit tests proves the implementation and almost completes the gluegen junit tests coverage for JavaEmitter and ProcAddressEmitter. Impact/Result: - Working mixed array types - JOGL GL2 native library shrunk around 30% - Simplified gluegen code - Almost complete gluegen junit tests TODO: Complete permutations of array/NIO arguments, if desired. ++++ Misc changes: - NativeLibrary implements DynamicLookupHelper: lookupFunction() -> dynamicLookupFunction()
* | Add coverage test (signatures and execution) ..Sven Gothel2010-03-273-66/+92
| |
* | Use property.location for compatible absolute path compositionSven Gothel2010-03-261-3/+5
|/
* Revert "Remove absolute path composing with basedir .."Michael Bien2010-03-261-1/+1
| | | | | looked fine but it did not work for all projects... This reverts commit 3793f181a21a38e8e4965eff073a5007c9c094a2.
* Remove absolute path composing with basedir ..Sven Gothel2010-03-261-1/+1
|
* removed ant warnings:Michael Bien2010-03-262-7/+7
| | | | | -Warning: Reference antlr.classpath has not been set at runtime, but was found during runtime -duplicated project name
* ant-junit-ant: use rel gluegen.root pathSven Gothel2010-03-262-3/+2
|
* Fix import/basedir bug (ant?) for hudson workspaceSven Gothel2010-03-261-1/+8
|
* Add missing java.includes to cc build-junit.xmlSven Gothel2010-03-261-0/+2
|
* invoke junit.run on testSven Gothel2010-03-251-1/+1
|
* build-junit.xml unique build_t propertySven Gothel2010-03-252-34/+36
|
* start with gluegen.root ..Sven Gothel2010-03-251-5/+3
|
* http://www.jogamp.org/bugzilla/show_bug.cgi?id=390Sven Gothel2010-03-2517-880/+1478
| | | | | | | | | | | | | | | | | Adding 'plain' junit tests. Plain stands for the simple processing of: ant.junit.compile: gluegen -> java/c files, javac/cc, jar ant.junit.run: junit batch run Avoiding 'black magic', ie kicking off gluegen and ant-compilation from within the junit tests. Same methodology as the JOGL junit tests, junit test sources are under 'src/junit' This way, the migration to other platform tests might be easier, as well as the we don't need to pass through ant properties (ant - junit - ant), see 3a32650d4229f9b4ad1f527d9e30c24ddb69bb3f.
* http://www.jogamp.org/bugzilla/show_bug.cgi?id=390Sven Gothel2010-03-257-28/+88
| | | | | | | | | | | | | | | | The current junit tests use a fixed 'build' sub-path, not the customizing 'rootrel.build' path. More properties needs to be passed through (ant -> junit -> ant) to comply with the current build system: * rootrel.build * os.arch * gluegen.user.compiler.file Fixed .. However .. since even more properties may influence the build, a more native solution with just plain 'ant' might be more desireable ..
* seperated cli processing from main logic.Michael Bien2010-03-241-290/+301
|
* fixed regression in constant emission where a type suffix (e.g. 'f') was ↵Michael Bien2010-03-224-13/+30
| | | | | | illegally added after a closing bracket. added testcase.
* Drop PointerBuffer.wrapNative2Java(..)Sven Gothel2010-03-193-64/+40
| | | | | | in favor of a simple PointerBuffer.wrap(..), due to the new semantics, ie internal integer/long presentation. Fixed the javame code in this regard.
* removed test from all build target to safe time when jogl builds.Michael Bien2010-03-121-2/+2
|
* fixed JavaEmitter to support unsigned defines.Michael Bien2010-03-122-1/+10
|
* added PCPPTest.Michael Bien2010-02-202-0/+55
|
* PCPP supports now simple macros.Michael Bien2010-02-202-20/+34
| | | | fixed 'deprecated API' warnings in GlueGen.
* better exception handling in GlueGen.Michael Bien2010-02-202-127/+256
| | | | WIP: refactored PCPP to implement macros, next step is to replace StreamTokenizer with Scanner (we need a propper look ahead).
* fixed jdk tools.jar classpath for hudson to fix tests.Michael Bien2010-02-122-4/+6
|
* junit test code cleanup and some build preperations for hudson.Michael Bien2010-02-126-63/+82
|
* added test target to main build script.Michael Bien2010-02-1214-229/+517
| | | | | added StructAccessorTest, refactored other tests. updated project files, paths etc.
* added support for arrays in generated StructAccessors.Michael Bien2010-02-124-39/+198
| | | | | Specifying JavaClass or JavaImplClass is no longer a requirement. It is now possible to generate StructAccessors from c headers without emitting any other binding code (force with EmitStruct <name>).
* generated pointer variable names have now a more descriptive name.Michael Bien2010-02-031-47/+46
| | | | a few 'introduce variable' refactorings for argument names.
* PointerBuffer supports now 32bit architectures.Michael Bien2010-01-192-18/+39
|
* is32Bit field is now immutable to help hotspot with inlining.Michael Bien2010-01-181-41/+27
| | | | code cleanup.
* fixed off-by-one bug in put and get.Michael Bien2010-01-122-6/+24
| | | | | implemented method chaining pattern. added position(int pos) method.
* fixed emitted code for buffer-array mixing.Michael Bien2010-01-124-17/+27
| | | | | removed workaround in BufferFactory since it is no longer needed. small code cleanup (generator java 5 migration).
* updated project files to reference antlr-3.2.jar.Michael Bien2010-01-122-7/+7
|
* continued with code cleanup in com.sun.gluegen.cgram and ↵Michael Bien2009-12-0218-563/+647
| | | | com.sun.gluegen.opengl packages.
* Code cleanup. Ported package com.sun.gluegen to java 5 language level.Michael Bien2009-12-0118-644/+624
|
* temporary workaround in BufferFactory.isDirect(). Changed behavior to return ↵Michael Bien2009-11-302-4/+4
| | | | | | false with null as parameter to workaround buffer/array mixing bug. Should be revisited to improve performance.