D | uthash.h | 172 #define HASH_REPLACE(hh,head,fieldname,keylen_in,add,replaced) \ argument 174 replaced=NULL; \ 175 HASH_FIND(hh,head,&((add)->fieldname),keylen_in,replaced); \ 176 if (replaced!=NULL) { \ 177 HASH_DELETE(hh,head,replaced); \ 265 #define HASH_REPLACE_STR(head,strfield,add,replaced) \ argument 266 HASH_REPLACE(hh,head,strfield[0],(unsigned)strlen(add->strfield),add,replaced) 271 #define HASH_REPLACE_INT(head,intfield,add,replaced) \ argument 272 HASH_REPLACE(hh,head,intfield,sizeof(int),add,replaced) 277 #define HASH_REPLACE_PTR(head,ptrfield,add,replaced) \ argument [all …]
|