summaryrefslogtreecommitdiffstats
path: root/src/java/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-06-25 07:52:53 +0200
committerSven Gothel <[email protected]>2023-06-25 07:52:53 +0200
commitb9bddbd7a75e7fa9812fdcc455a0c4857c3e9990 (patch)
treead175ebee42967991f9a80ccd1068c46330e9519 /src/java/com
parentc54c5699c752fcf2cee19ef9dc21cd4acb5aa6cd (diff)
GlueGen FunctionSymbol: Simplify ctor reusing main-ctor; Be always reachable via type(def)name, ctor: addAliasedName( type.getCName() )
Diffstat (limited to 'src/java/com')
-rw-r--r--src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java b/src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java
index 91a0a5a..f4cd15f 100644
--- a/src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java
+++ b/src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java
@@ -65,15 +65,14 @@ public class FunctionSymbol extends AliasedSymbolImpl implements AliasedSemantic
private final ASTLocusTag astLocus;
public FunctionSymbol(final String name, final FunctionType type) {
- super(name);
- this.type = type;
- this.astLocus = null;
+ this(name, type, null);
}
public FunctionSymbol(final String name, final FunctionType type, final ASTLocusTag locus) {
super(name);
this.type = type;
this.astLocus = locus;
+ addAliasedName( type.getCName() ); // be reachable via typename
}
/** Shallow'ish copy, only aliased names are re-created. */