merge entries from `from` into `to`, transfer ownership if transfer_ownership is on
| 141 | // merge entries from `from` into `to`, transfer ownership if transfer_ownership |
| 142 | // is on |
| 143 | void Record_TransferEntries |
| 144 | ( |
| 145 | Record *to, // destination record |
| 146 | Record from, // src record |
| 147 | bool transfer_ownership // transfer ownership of the record to dest or not |
| 148 | ) { |
| 149 | uint len = Record_length(from); |
| 150 | for(uint i = 0; i < len; i++) { |
| 151 | if(from->entries[i].type != REC_TYPE_UNKNOWN) { |
| 152 | _RecordPropagateEntry(*to, from, i, transfer_ownership); |
| 153 | } |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | RecordEntryType Record_GetType |
| 158 | ( |
no test coverage detected