Lines Matching refs:item

245 static inline int _compare_and_overwrite_entry(struct env_entry item,  in _compare_and_overwrite_entry()  argument
251 && strcmp(item.key, htab->table[idx].entry.key) == 0) { in _compare_and_overwrite_entry()
253 if (action == ENV_ENTER && item.data) { in _compare_and_overwrite_entry()
256 &htab->table[idx].entry, item.data, in _compare_and_overwrite_entry()
259 "%s, skipping it!\n", item.key); in _compare_and_overwrite_entry()
266 if (do_callback(&htab->table[idx].entry, item.key, in _compare_and_overwrite_entry()
267 item.data, env_op_overwrite, flag)) { in _compare_and_overwrite_entry()
269 "%s, skipping it!\n", item.key); in _compare_and_overwrite_entry()
276 htab->table[idx].entry.data = strdup(item.data); in _compare_and_overwrite_entry()
291 int hsearch_r(struct env_entry item, enum env_action action, in hsearch_r() argument
296 unsigned int len = strlen(item.key); in hsearch_r()
306 hval += item.key[count]; in hsearch_r()
330 ret = _compare_and_overwrite_entry(item, action, retval, htab, in hsearch_r()
363 ret = _compare_and_overwrite_entry(item, action, retval, in hsearch_r()
391 htab->table[idx].entry.key = strdup(item.key); in hsearch_r()
392 htab->table[idx].entry.data = strdup(item.data); in hsearch_r()
409 &htab->table[idx].entry, item.data, env_op_create, flag)) { in hsearch_r()
411 "%s, skipping it!\n", item.key); in hsearch_r()
412 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r()
419 if (do_callback(&htab->table[idx].entry, item.key, item.data, in hsearch_r()
422 "%s, skipping it!\n", item.key); in hsearch_r()
423 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r()