Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28169
Modified Files: Tag: desiredata m_obj.c Log Message: object_table fix
Index: m_obj.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_obj.c,v retrieving revision 1.2.4.3.2.10.2.7 retrieving revision 1.2.4.3.2.10.2.8 diff -C2 -d -r1.2.4.3.2.10.2.7 -r1.2.4.3.2.10.2.8 *** m_obj.c 13 Dec 2006 05:37:57 -0000 1.2.4.3.2.10.2.7 --- m_obj.c 13 Dec 2006 05:57:40 -0000 1.2.4.3.2.10.2.8 *************** *** 8,11 **** --- 8,12 ----
#include "desire.h" + #include <stdio.h>
/* T.Grill - define for a modified, more portable method to detect stack overflows */ *************** *** 155,159 **** break; } ! t_freebytes(x, sizeof(*x)); }
--- 156,161 ---- break; } ! /*t_freebytes(x, sizeof(*x));*/ ! pd_free((t_pd *)x); }
*************** *** 214,221 **** }
! void obj_init(void) ! { ! inlet_class = class_new(gensym("inlet"), 0, 0, ! sizeof(t_inlet), CLASS_PD, 0); class_addbang(inlet_class, inlet_bang); class_addpointer(inlet_class, inlet_pointer); --- 216,224 ---- }
! void obj_init(void) { ! inlet_class = class_new(gensym("inlet"), 0, 0, sizeof(t_inlet), CLASS_PD, 0); ! floatinlet_class = class_new(gensym("inlet"), 0, 0, sizeof(t_inlet), CLASS_PD, 0); ! symbolinlet_class = class_new(gensym("inlet"), 0, 0, sizeof(t_inlet), CLASS_PD, 0); ! pointerinlet_class = class_new(gensym("inlet"), 0, 0, sizeof(t_inlet), CLASS_PD, 0); class_addbang(inlet_class, inlet_bang); class_addpointer(inlet_class, inlet_pointer); *************** *** 224,231 **** class_addlist(inlet_class, inlet_list); class_addanything(inlet_class, inlet_anything); - - floatinlet_class = class_new(gensym("inlet"), 0, 0, sizeof(t_inlet), CLASS_PD, 0); - symbolinlet_class = class_new(gensym("inlet"), 0, 0, sizeof(t_inlet), CLASS_PD, 0); - pointerinlet_class = class_new(gensym("inlet"), 0, 0, sizeof(t_inlet), CLASS_PD, 0); class_addfloat( floatinlet_class, floatinlet_float); class_addsymbol( symbolinlet_class, symbolinlet_symbol); --- 227,230 ----