Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12911/src
Modified Files: Tag: devel_0_39 m_hash.c Log Message: fix for standard c
Index: m_hash.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/m_hash.c,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** m_hash.c 23 Apr 2006 11:54:13 -0000 1.1.2.6 --- m_hash.c 25 Apr 2006 16:12:15 -0000 1.1.2.7 *************** *** 74,81 **** void hash_set(t_hash *self, hashkey k, hashvalue v) { long h = hash_hash(self,k); ! t_hashentry *e; // fprintf(stderr,"hash_set %p %s %p\n",self,((t_symbol*)k)->s_name,v); for (e=self->tab[h]; e; e=e->next) {if (e->k==k) {e->v=v; return;}} ! t_hashentry *nu = (t_hashentry *)malloc(sizeof(t_hashentry)); self->size++; nu->k=k; --- 74,81 ---- void hash_set(t_hash *self, hashkey k, hashvalue v) { long h = hash_hash(self,k); ! t_hashentry *e,*nu; // fprintf(stderr,"hash_set %p %s %p\n",self,((t_symbol*)k)->s_name,v); for (e=self->tab[h]; e; e=e->next) {if (e->k==k) {e->v=v; return;}} ! nu = (t_hashentry *)malloc(sizeof(t_hashentry)); self->size++; nu->k=k;