Lines Matching refs:replaced
164 #define HASH_REPLACE(hh,head,fieldname,keylen_in,add,replaced) \
166 replaced=NULL; \
167 HASH_FIND(hh,head,&((add)->fieldname),keylen_in,replaced); \
168 if (replaced!=NULL) { \
169 HASH_DELETE(hh,head,replaced); \
257 #define HASH_REPLACE_STR(head,strfield,add,replaced) \
258 HASH_REPLACE(hh,head,strfield,strlen(add->strfield),add,replaced)
263 #define HASH_REPLACE_INT(head,intfield,add,replaced) \
264 HASH_REPLACE(hh,head,intfield,sizeof(int),add,replaced)
270 HASH_REPLACE(hh,head,ptrfield,sizeof(void *),add,replaced)