Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31483
Modified Files: Tag: devel_0_39 desire.c Log Message: t_widgetbehavior is obsolete
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** desire.c 8 Sep 2005 12:26:00 -0000 1.1.2.5 --- desire.c 10 Sep 2005 05:59:56 -0000 1.1.2.6 *************** *** 24,27 **** --- 24,165 ---- #include <string.h>
+ #define CLAMP(_var,_min,_max) { if (_var<_min) _var=_min; else if (_var>_max) _var=_max; } + #define MIN(a,b) ((a)<(b)?(a):(b)) + #define MAX(a,b) ((a)>(b)?(a):(b)) + #define IS_A_FLOAT(atom,index) ((atom+index)->a_type == A_FLOAT) + #define IS_A_SYMBOL(atom,index) ((atom+index)->a_type == A_SYMBOL) + EXTERN void canvas_savecontainerto(t_canvas *x, t_binbuf *b); + typedef void (*t_iemfunptr)(void *x, t_glist *glist, int mode); [...1302 lines suppressed...] ! { ! static t_widgetbehavior wb = { ! iemgui_getrect, iemgui_displace, iemgui_select, 0, iemgui_delete, iemgui_vis, 0 ! }; t_class *c = dropper_class = class_new(gensym("dropper"), (t_newmethod)dropper_new, (t_method)iemgui_free, sizeof(t_dropper), 0, A_GIMME, 0); --- 2665,2669 ---- }
! static void g_dropper_setup(void) { t_class *c = dropper_class = class_new(gensym("dropper"), (t_newmethod)dropper_new, (t_method)iemgui_free, sizeof(t_dropper), 0, A_GIMME, 0); *************** *** 2885,2889 **** class_addsymbol(c, dropper_symbol); class_addmethod(c, (t_method)dropper_reload, gensym("reload"), A_GIMME, 0); - class_setwidget(c, &wb); class_setsavefn(c, (t_savefn)dropper_savefn); class_sethelpsymbol(c, gensym("dropper")); --- 2672,2675 ----