mojoshader_common.c
changeset 1111 7530b37979b8
parent 1080 b92bdbf78621
child 1113 570cae807859
equal deleted inserted replaced
1110:91a6af79b5e4 1111:7530b37979b8
   257                             MOJOSHADER_free f, void *d)
   257                             MOJOSHADER_free f, void *d)
   258 {
   258 {
   259     HashTable_NukeFn nuke = copy ? stringmap_nuke : stringmap_nuke_noop;
   259     HashTable_NukeFn nuke = copy ? stringmap_nuke : stringmap_nuke_noop;
   260     StringMap *smap;
   260     StringMap *smap;
   261     smap = hash_create(0,hash_hash_string,hash_keymatch_string,nuke,0,m,f,d);
   261     smap = hash_create(0,hash_hash_string,hash_keymatch_string,nuke,0,m,f,d);
   262     smap->data = smap;
   262     if (smap != NULL)
       
   263         smap->data = smap;
   263     return smap;
   264     return smap;
   264 } // stringmap_create
   265 } // stringmap_create
   265 
   266 
   266 void stringmap_destroy(StringMap *smap)
   267 void stringmap_destroy(StringMap *smap)
   267 {
   268 {