Update of /cvsroot/pure-data/externals/PDContainer/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9361/src
Modified Files: h_list.cpp Log Message: added modify message in h_list
Index: h_list.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/PDContainer/src/h_list.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** h_list.cpp 22 Feb 2005 20:54:13 -0000 1.3 --- h_list.cpp 18 Mar 2005 10:15:01 -0000 1.4 *************** *** 166,169 **** --- 166,183 ---- }
+ static void h_list_modify(t_h_list *x, t_symbol *s, int argc, t_atom *argv) + { + if(argc) + { + Element key; + key.length = argc; + key.atom = argv; + + x->hlist->modify(key); + } + else + post("h_list, modify: no arguments"); + } + static void h_list_remove(t_h_list *x, t_symbol *s, int argc, t_atom *argv) { *************** *** 346,349 **** --- 360,365 ---- class_addmethod(h_list_class, (t_method)h_list_insert, gensym("insert"), A_GIMME, 0); + class_addmethod(h_list_class, (t_method)h_list_modify, + gensym("modify"), A_GIMME, 0); class_addmethod(h_list_class, (t_method)h_list_remove, gensym("remove"), A_GIMME, 0);