Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31352
Modified Files: Tag: devel_0_39 m_class.c m_pd.h Log Message: DesireData doesn't have t_widgetbehavior anymore.
Index: m_pd.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v retrieving revision 1.4.4.11.2.26 retrieving revision 1.4.4.11.2.27 diff -C2 -d -r1.4.4.11.2.26 -r1.4.4.11.2.27 *** m_pd.h 31 Aug 2006 19:36:06 -0000 1.4.4.11.2.26 --- m_pd.h 2 Sep 2006 09:03:09 -0000 1.4.4.11.2.27 *************** *** 442,447 **** --- 442,449 ---- /* ---------------- widget behaviors ---------------------- */
+ #ifndef DESIRE EXTERN_STRUCT _widgetbehavior; #define t_widgetbehavior struct _widgetbehavior + #endif
EXTERN_STRUCT _parentwidgetbehavior; *************** *** 481,485 **** --- 483,489 ---- EXTERN void class_addanything(t_class *c, t_method fn); EXTERN void class_sethelpsymbol(t_class *c, t_symbol *s); + #ifndef DESIRE EXTERN void class_setwidget(t_class *c, t_widgetbehavior *w); + #endif EXTERN void class_setparentwidget(t_class *c, t_parentwidgetbehavior *w); EXTERN t_parentwidgetbehavior *class_parentwidget(t_class *c);
Index: m_class.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_class.c,v retrieving revision 1.3.4.7.2.19 retrieving revision 1.3.4.7.2.20 diff -C2 -d -r1.3.4.7.2.19 -r1.3.4.7.2.20 *** m_class.c 31 Aug 2006 19:36:06 -0000 1.3.4.7.2.19 --- m_class.c 2 Sep 2006 09:03:09 -0000 1.3.4.7.2.20 *************** *** 162,166 **** --- 162,168 ---- how this is handled. */
+ #ifndef DESIRE extern t_widgetbehavior text_widgetbehavior; + #endif extern void text_save(t_gobj *z, t_binbuf *b);
*************** *** 235,239 **** --- 237,245 ---- c->c_listmethod = pd_defaultlist; c->c_anymethod = pd_defaultanything; + #ifdef DESIRE + c->c_wb = 0; + #else c->c_wb = (typeflag == CLASS_PATCHABLE ? &text_widgetbehavior : 0); + #endif c->c_pwb = 0; c->c_firstin = ((flags & CLASS_NOINLET) == 0); *************** *** 424,431 **** --- 430,439 ---- }
+ #ifndef DESIRE void class_setwidget(t_class *c, t_widgetbehavior *w) { c->c_wb = w; } + #endif
void class_setparentwidget(t_class *c, t_parentwidgetbehavior *pw)