diff options
author | Adrian Thurston <thurston@complang.org> | 2014-11-02 08:06:46 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-11-02 08:06:46 -0500 |
commit | 9f34fbd3b981118e0febf667ad5eae1b148ab776 (patch) | |
tree | f7a1701246593a4117b4fdffadc39a1de5dc8319 /src/parsetree.cc | |
parent | fae7ec95e99a519398bb3aadd4bc73fb49d8ad3b (diff) | |
download | colm-9f34fbd3b981118e0febf667ad5eae1b148ab776.tar.gz |
start on list2, the non-tree list
Diffstat (limited to 'src/parsetree.cc')
-rw-r--r-- | src/parsetree.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/parsetree.cc b/src/parsetree.cc index 3b749abc..43f6faa6 100644 --- a/src/parsetree.cc +++ b/src/parsetree.cc @@ -152,6 +152,16 @@ int CmpUniqueList::compare( const UniqueList &ut1, const UniqueList &ut2 ) return 0; } +int CmpUniqueList2::compare( const UniqueList2 &ut1, const UniqueList2 &ut2 ) +{ + if ( ut1.value < ut2.value ) + return -1; + else if ( ut1.value > ut2.value ) + return 1; + + return 0; +} + int CmpUniqueVector::compare( const UniqueVector &ut1, const UniqueVector &ut2 ) { if ( ut1.value < ut2.value ) |