| 128 | } |
| 129 | |
| 130 | BOOL ReUseBlocks(PHEAPBLOCK block, BOOL clear) |
| 131 | { |
| 132 | if ( block != NULL ) { |
| 133 | PHEAPBLOCK tmp; |
| 134 | PHEAPBLOCK back; |
| 135 | tmp = block; |
| 136 | while ( tmp != NULL ) { |
| 137 | tmp->current = 0; |
| 138 | tmp = tmp->next; |
| 139 | if ( clear ) { |
| 140 | delete tmp->data; |
| 141 | //memset( tmp->data, 0, tmp->size*sizeof( TCHAR ) ); |
| 142 | } |
| 143 | } |
| 144 | block->end = block; |
| 145 | } |
| 146 | return TRUE; |
| 147 | } |
no outgoing calls
no test coverage detected