diff options
author | Adrian Thurston <thurston@complang.org> | 2015-01-04 09:32:08 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-01-04 09:32:08 -0500 |
commit | 650b70f4a55af12ee1ebb22a9afdd9fba7a3b626 (patch) | |
tree | 6bdcebe0091aed9936964cf37b4670ba21a7ef3c /src/parsetree.cc | |
parent | e682fbd4a5f83142ada2aa92d7a642035c010348 (diff) | |
download | colm-650b70f4a55af12ee1ebb22a9afdd9fba7a3b626.tar.gz |
no longer allocating a langEl to generics
enerics are now structs. Also added the TYPE_GERERIC unique type.
Diffstat (limited to 'src/parsetree.cc')
-rw-r--r-- | src/parsetree.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parsetree.cc b/src/parsetree.cc index d514ea47..0a131b62 100644 --- a/src/parsetree.cc +++ b/src/parsetree.cc @@ -113,6 +113,12 @@ int CmpUniqueType::compare( const UniqueType &ut1, const UniqueType &ut2 ) else if ( ut1.structEl > ut2.structEl ) return 1; break; + case TYPE_GENERIC: + if ( ut1.generic < ut2.generic ) + return -1; + else if ( ut1.generic > ut2.generic ) + return 1; + break; } return 0; |