| 384 | } |
| 385 | |
| 386 | void Dictionary::setState(ExprEvalState *state, Dictionary* ref) |
| 387 | { |
| 388 | exprState = state; |
| 389 | |
| 390 | if (ref) |
| 391 | { |
| 392 | hashTable = ref->hashTable; |
| 393 | return; |
| 394 | } |
| 395 | |
| 396 | if (!ownHashTable.data) |
| 397 | { |
| 398 | ownHashTable.count = 0; |
| 399 | ownHashTable.size = ST_INIT_SIZE; |
| 400 | ownHashTable.data = new Entry *[ownHashTable.size]; |
| 401 | |
| 402 | dMemset(ownHashTable.data, 0, ownHashTable.size * sizeof(Entry*)); |
| 403 | } |
| 404 | |
| 405 | hashTable = &ownHashTable; |
| 406 | } |
| 407 | |
| 408 | Dictionary::~Dictionary() |
| 409 | { |
no test coverage detected