Changeset 7a70fb2 for tests/queue.cfa
- Timestamp:
- Dec 17, 2020, 10:34:27 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 852ae0ea
- Parents:
- 72a3aff (diff), 28e88d7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/queue.cfa
r72a3aff r7a70fb2 13 13 void ?{}( Fred & fred, int p ) with( fred ) { 14 14 i = p; 15 } 16 Fred *& Next( Fred * n ) { 17 return (Fred *)Next( (Colable *)n ); 18 } 19 20 bool listed( Fred * n ) { 21 return Next( (Colable *)n ) != 0p; 15 22 } 16 23 … … 68 75 } 69 76 77 Mary *& Next( Mary * n ) { 78 return (Mary *)Next( (Colable *)n ); 79 } 80 81 bool listed( Mary * n ) { 82 return Next( (Colable *)n ) != 0p; 83 } 84 70 85 Queue(Mary) mary; 71 86 QueueIter(Mary) maryIter = { mary };
Note: See TracChangeset
for help on using the changeset viewer.