<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1153</bug_id>
          
          <creation_ts>2015-04-01 15:50:15 +0200</creation_ts>
          <short_desc>GlueGen: Support [const] [native] expressions and conversion to java space</short_desc>
          <delta_ts>2015-09-27 01:30:57 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2.3.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1151</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>gluegen c156343fec33ceea7f238b9766a9f4985fb92687
gluegen c6d5ee30e023d030697f14ae2c444ce7a5542e94
jcpp    eddcad41a1dc2658747235b307bfd4ffd2c27bd3
gluegen 29da0b8bc787767d68cabbc885bad1d80357e1e7
jogl    5deabf720f1101b39376cb211c39f6f0c3474153
jogl    dc32ed4f045cbdfdc70fe8572564cd8e3b5eb33b</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4696</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-04-01 15:50:15 +0200</bug_when>
    <thetext>Rewrite ConstantDefinition:

Add sub-class CNumber:
  - containing integer/float values and their original qualifiers
    [long, double, unsigned]
  - conversion to java number

ConstantDefinition:
 - holds native expression
 - optionally holds CNumber representing native expression,
   if [only] a number
 - can compute equivalent java expression 
   with result type (JavaExpr)

Add static native number reg-expression
for number detection and parsing.

Add static native number to CNumber conversion methods.

+++

Retrieve full LISP tree and convert to serialized expression
to be utilized for expressions used in enumerates.

Parse enumerates, allowing const native expressions:
  - Utilize ConstantDefinition
    either for definite CNumber or expression
  - Simply add &quot;+1&quot; for new default values,
    if previous is an expression</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4697</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-04-01 15:58:03 +0200</bug_when>
    <thetext>gluegen c156343fec33ceea7f238b9766a9f4985fb92687
  - Add ArrayHashMap; Use &apos;supportNullValue&apos; 
    optimizing ArrayHashSet and ArrayHashMap; 
  - Unify ctor for both impl.
  - Add/Enhance unit tests for both.
gluegen c6d5ee30e023d030697f14ae2c444ce7a5542e94
  - As described, comment 0
  - Preserve order of all constants and functions.
    - Const order is essential to avoid forward definition errors,
      i.e. used before defined (in expressions).
    - Function order might be more desired to compare 
      API header w/ java code.

jcpp    eddcad41a1dc2658747235b307bfd4ffd2c27bd3
  - Adopt to GlueGen change

gluegen 29da0b8bc787767d68cabbc885bad1d80357e1e7
  - Bump JCPP (above)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4698</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-04-01 16:03:03 +0200</bug_when>
    <thetext>(In reply to comment #1)
&gt; gluegen c6d5ee30e023d030697f14ae2c444ce7a5542e94
&gt;   - As described, comment 0
&gt;   - Preserve order of all constants and functions.
&gt;     - Const order is essential to avoid forward definition errors,
&gt;       i.e. used before defined (in expressions).
&gt;     - Function order might be more desired to compare 
&gt;       API header w/ java code.
Further:
    - Alias enum typedef&apos;s:
      Alias &apos;_a&apos; -&gt; &apos;A&apos; for &apos;typedef enum _a { } A;&apos; in-place</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4699</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-04-01 16:06:44 +0200</bug_when>
    <thetext>jogl    5deabf720f1101b39376cb211c39f6f0c3474153
  Adopt to ArrayHashSet change, don&apos;t use deprecated ctor 
  (gluegen commit c156343fec33ceea7f238b9766a9f4985fb92687)

jogl    dc32ed4f045cbdfdc70fe8572564cd8e3b5eb33b
  GLEmitter: Only dump extra comment if w/o enum-name or w/o extension
  Since GlueGen handles enum typedef&apos;s properly, 
  this relation to the enum-name is already printed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>