Lines Matching refs:replaced
191 #define HASH_REPLACE_BYHASHVALUE_INORDER(hh,head,fieldname,keylen_in,hashval,add,replaced,cmpfcn) \ argument
193 (replaced) = NULL; \
194 HASH_FIND_BYHASHVALUE(hh, head, &((add)->fieldname), keylen_in, hashval, replaced); \
195 if (replaced) { \
196 HASH_DELETE(hh, head, replaced); \
201 #define HASH_REPLACE_BYHASHVALUE(hh,head,fieldname,keylen_in,hashval,add,replaced) \ argument
203 (replaced) = NULL; \
204 HASH_FIND_BYHASHVALUE(hh, head, &((add)->fieldname), keylen_in, hashval, replaced); \
205 if (replaced) { \
206 HASH_DELETE(hh, head, replaced); \
211 #define HASH_REPLACE(hh,head,fieldname,keylen_in,add,replaced) \ argument
215 HASH_REPLACE_BYHASHVALUE(hh, head, fieldname, keylen_in, _hr_hashv, add, replaced); \
218 #define HASH_REPLACE_INORDER(hh,head,fieldname,keylen_in,add,replaced,cmpfcn) \ argument
222 …HASH_REPLACE_BYHASHVALUE_INORDER(hh, head, fieldname, keylen_in, _hr_hashv, add, replaced, cmpfcn)…
378 #define HASH_REPLACE_STR(head,strfield,add,replaced) \ argument
379 HASH_REPLACE(hh,head,strfield[0],(unsigned)uthash_strlen(add->strfield),add,replaced)
384 #define HASH_REPLACE_INT(head,intfield,add,replaced) \ argument
385 HASH_REPLACE(hh,head,intfield,sizeof(int),add,replaced)
390 #define HASH_REPLACE_PTR(head,ptrfield,add,replaced) \ argument
391 HASH_REPLACE(hh,head,ptrfield,sizeof(void *),add,replaced)