Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6728
Modified Files: Tag: desiredata desire.c Log Message: serial guaranteed to be after first update_object.
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.217.2.29 retrieving revision 1.1.2.217.2.30 diff -C2 -d -r1.1.2.217.2.29 -r1.1.2.217.2.30 *** desire.c 5 Dec 2006 19:32:06 -0000 1.1.2.217.2.29 --- desire.c 5 Dec 2006 20:15:40 -0000 1.1.2.217.2.30 *************** *** 273,276 **** --- 273,277 ---- static t_class *manager_class; t_manager *manager; + t_hash *newest_table;
void manager_call (void *foo) { *************** *** 285,289 **** o->g_adix->dirtyc = 0; } ! clock_delay(self->clock,500); }
--- 286,290 ---- o->g_adix->dirtyc = 0; } ! clock_delay(self->clock,50); }
*************** *** 867,871 **** if (!pd_origin()) return; /* the following only applies to objects created by client */ unsigned short serial = manager->serial++; ! sys_vgui("serial %d x%lx\n",serial,(long)x); }
--- 868,873 ---- if (!pd_origin()) return; /* the following only applies to objects created by client */ unsigned short serial = manager->serial++; ! hash_set(newest_table,x,(void*)serial); ! /* sys_vgui("serial %d x%lx\n",serial,(long)x);*/ }
*************** *** 6618,6621 **** --- 6620,6627 ---- } } + if (hash_exists(newest_table,x)) { + sys_vgui("serial %d x%lx\n",hash_get(newest_table,x),(long)x); + hash_delete(newest_table,x); + } }
*************** *** 7646,7649 **** --- 7652,7656 ---- extern "C" void desire_setup(void) { + newest_table = hash_new(31); s_empty = gensym("empty"); s_Pd = gensym("Pd");