Changeset d0502a3 for libcfa/src/bits
- Timestamp:
- Feb 16, 2021, 1:28:31 PM (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:
- 9fb1367, feacef9
- Parents:
- 1830a86
- Location:
- libcfa/src/bits
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified libcfa/src/bits/containers.hfa ¶
r1830a86 rd0502a3 151 151 } 152 152 153 void append( __queue(T) & this, T * val ) with( this) {153 void append( __queue(T) & this, T * val ) with(this) { 154 154 verify(this.tail != 0p); 155 155 verify(*this.tail == 1p); … … 161 161 T * peek( __queue(T) & this ) { 162 162 verify(*this.tail == 1p); 163 T * front = this.head;164 if( front != 1p ) {163 T * frontnode = this.head; 164 if( frontnode != 1p ) { 165 165 verify(*this.tail == 1p); 166 return front ;166 return frontnode; 167 167 } 168 168 verify(*this.tail == 1p); -
TabularUnified libcfa/src/bits/sequence.hfa ¶
r1830a86 rd0502a3 30 30 // PUBLIC 31 31 32 void ?{}( Seqable & sq ) with( sq ){32 void ?{}( Seqable & sq ) { 33 33 ((Colable &)sq){}; 34 back = 0p;34 sq.back = 0p; 35 35 } // post: ! listed() 36 36
Note: See TracChangeset
for help on using the changeset viewer.