Lines Matching refs:rc

33   ESR_ReturnCode rc = ESR_SUCCESS;
41 if ((rc = PHashTableCreate(hashArgs, MTAG, &impl->table)) != ESR_SUCCESS)
44 return rc;
83 ESR_ReturnCode rc;
86 CHKLOG(rc, PHashTableContainsKey(impl->table, key, &exists));
93 if ((rc = PHashTablePutValue(impl->table, clone, value, NULL)) != ESR_SUCCESS)
101 CHKLOG(rc, PHashTableGetEntry(impl->table, key, &entry));
102 rc = PHashTableEntrySetValue(entry, value, NULL);
104 return rc;
106 return rc;
112 ESR_ReturnCode rc = ESR_SUCCESS;
116 CHK(rc, PHashTableGetEntry(impl->table, key, &entry));
117 CHK(rc, PHashTableEntryGetKeyValue(entry, (void **)&clonedKey, (void **)&value));
126 return rc;
144 ESR_ReturnCode rc = ESR_SUCCESS;
148 if ((rc = PHashTableEntryGetFirst(impl->table, &entry1)) != ESR_SUCCESS)
153 if ((rc = PHashTableEntryGetKeyValue(entry1, (void **)&key, (void **)&value)) != ESR_SUCCESS)
158 if ((rc = PHashTableEntryAdvance(&entry1)) != ESR_SUCCESS)
160 if ((rc = PHashTableEntryRemove(entry2)) != ESR_SUCCESS)
164 return rc;
180 ESR_ReturnCode rc = ESR_SUCCESS;
182 CHKLOG(rc, PHashTableContainsKey(impl->table, key, exists));
183 return rc;
185 return rc;
192 ESR_ReturnCode rc = ESR_SUCCESS;
194 CHK(rc, PHashTableGetEntry(impl->table, key, &entry));
195 CHK(rc, PHashTableEntryGetKeyValue(entry, (void **)NULL, (void **)value));
198 return rc;
204 ESR_ReturnCode rc = ESR_SUCCESS;
207 if ((rc = PHashTableEntryGetFirst(impl->table, entry)) != ESR_SUCCESS)
213 if ((rc = PHashTableEntryAdvance(entry)) != ESR_SUCCESS)
217 rc = ESR_ARGUMENT_OUT_OF_BOUNDS;
219 return rc;
227 ESR_ReturnCode rc;
229 if ((rc = HashMap_GetEntryAtIndex(impl, index, &entry)) != ESR_SUCCESS)
232 rc = PHashTableEntryGetKeyValue(entry, (void **) key, (void **) NULL);
235 return rc;
242 ESR_ReturnCode rc;
244 if ((rc = HashMap_GetEntryAtIndex(impl, index, &entry)) != ESR_SUCCESS)
247 rc = PHashTableEntryGetKeyValue(entry, (void **)NULL, (void **)value);
250 return rc;
257 ESR_ReturnCode rc;
260 if ((rc = HashMap_GetEntryAtIndex(impl, index, &entry)) != ESR_SUCCESS)
263 if ((rc = PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)NULL)) != ESR_SUCCESS)
268 rc = PHashTableEntryRemove(entry);
271 return rc;
283 ESR_ReturnCode rc = ESR_SUCCESS;
285 if ((rc = self->removeAll(self)) != ESR_SUCCESS)
289 rc = PHashTableDestroy(impl->table);
292 return rc;