Update of /cvsroot/pure-data/externals/PDContainer/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20076
Modified Files: h_list.cpp Log Message:
Index: h_list.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/PDContainer/src/h_list.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** h_list.cpp 25 Oct 2004 19:02:30 -0000 1.1.1.1 --- h_list.cpp 21 Feb 2005 18:15:51 -0000 1.2 *************** *** 21,25 **** t_object x_obj; t_canvas *x_canvas; ! t_outlet *out0, *out1, *out2; HList *hlist; } t_h_list; --- 21,25 ---- t_object x_obj; t_canvas *x_canvas; ! t_outlet *out0, *out1, *out2, *out3; HList *hlist; } t_h_list; *************** *** 79,83 **** if(x->hlist->getSize() == 0) { ! outlet_bang(x->out2); return; } --- 79,83 ---- if(x->hlist->getSize() == 0) { ! outlet_bang(x->out3); return; } *************** *** 104,108 **** if(x->hlist->getSize() == 0) { ! outlet_bang(x->out2); return; } --- 104,108 ---- if(x->hlist->getSize() == 0) { ! outlet_bang(x->out3); return; } *************** *** 129,133 **** if(x->hlist->getSize() == 0) { ! outlet_bang(x->out2); return; } --- 129,133 ---- if(x->hlist->getSize() == 0) { ! outlet_bang(x->out3); return; } *************** *** 149,153 **** }
! outlet_bang(x->out2); }
--- 149,153 ---- }
! outlet_bang(x->out3); }
*************** *** 222,226 **** static void h_list_getsize(t_h_list *x) { ! outlet_float(x->out1,x->hlist->getSize()); }
--- 222,231 ---- static void h_list_getsize(t_h_list *x) { ! outlet_float(x->out2,x->hlist->getSize()); ! } ! ! static void h_list_get_iter_pos(t_h_list *x) ! { ! outlet_float(x->out1,x->hlist->getIterPos()); }
*************** *** 300,304 **** x->out0 = outlet_new(&x->x_obj, 0); x->out1 = outlet_new(&x->x_obj, &s_float); ! x->out2 = outlet_new(&x->x_obj, &s_bang); x->x_canvas = canvas_getcurrent();
--- 305,310 ---- x->out0 = outlet_new(&x->x_obj, 0); x->out1 = outlet_new(&x->x_obj, &s_float); ! x->out2 = outlet_new(&x->x_obj, &s_float); ! x->out3 = outlet_new(&x->x_obj, &s_bang); x->x_canvas = canvas_getcurrent();
*************** *** 341,344 **** --- 347,352 ---- class_addmethod(h_list_class, (t_method)h_list_getsize, gensym("getsize"), A_DEFFLOAT , 0); + class_addmethod(h_list_class, (t_method)h_list_get_iter_pos, + gensym("getiter"), A_DEFFLOAT , 0); class_addmethod(h_list_class, (t_method)h_list_begin, gensym("begin"), A_DEFFLOAT, 0);