From 92d6c9dc5fa72b01703456452c60822f36c14fff Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 18 Jul 2011 03:48:41 +0200 Subject: - Moved most types and StructLayout to runtime package: com.jogamp.gluegen.cgram.types -> com.jogamp.gluegen.runtime.types This is required for desired runtime memory layout. - Split CompoundType to StructType + UnionType - StructLayout: - Utilizing SizeThunk alignment - Alignment 1) Natural type alignment 2) Add Size 3) Trailing padding w/ largest element alignment - Only perform memory layout once for type. Status: - Unit test passes w/ static MachineDescriptor64Bit - FIXME static 32bit is faulty, uses 64bit size/alignment - TODO runtime struct layout to please all platforms w/o worrying --- src/java/com/jogamp/gluegen/DebugEmitter.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/java/com/jogamp/gluegen/DebugEmitter.java') diff --git a/src/java/com/jogamp/gluegen/DebugEmitter.java b/src/java/com/jogamp/gluegen/DebugEmitter.java index fc536c8..6afc55c 100644 --- a/src/java/com/jogamp/gluegen/DebugEmitter.java +++ b/src/java/com/jogamp/gluegen/DebugEmitter.java @@ -43,6 +43,8 @@ import java.util.*; import com.jogamp.common.os.MachineDescription; import com.jogamp.gluegen.cgram.types.*; +import com.jogamp.gluegen.runtime.types.CompoundType; +import com.jogamp.gluegen.runtime.types.Type; /** Debug emitter which prints the parsing results to standard output. */ -- cgit v1.2.3