| 370 | } |
| 371 | |
| 372 | void Dictionary::setState(ExprEvalState *state, Dictionary* ref) |
| 373 | { |
| 374 | exprState = state; |
| 375 | |
| 376 | if( ref ) |
| 377 | { |
| 378 | hashTable = ref->hashTable; |
| 379 | return; |
| 380 | } |
| 381 | |
| 382 | if( !ownHashTable.data ) |
| 383 | { |
| 384 | ownHashTable.count = 0; |
| 385 | ownHashTable.size = ST_INIT_SIZE; |
| 386 | ownHashTable.data = new Entry *[ ownHashTable.size ]; |
| 387 | |
| 388 | dMemset( ownHashTable.data, 0, ownHashTable.size * sizeof( Entry* ) ); |
| 389 | } |
| 390 | |
| 391 | hashTable = &ownHashTable; |
| 392 | } |
| 393 | |
| 394 | Dictionary::~Dictionary() |
| 395 | { |
no test coverage detected