Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3685
Modified Files: Tag: devel_0_39 m_pd.h Log Message: re-adding dirty fields to t_appendix (sigh). also C++ support (thru the t_atomtypearg hack)
Index: m_pd.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v retrieving revision 1.4.4.11.2.11 retrieving revision 1.4.4.11.2.12 diff -C2 -d -r1.4.4.11.2.11 -r1.4.4.11.2.12 *** m_pd.h 26 Oct 2005 23:27:22 -0000 1.4.4.11.2.11 --- m_pd.h 28 Oct 2005 11:10:08 -0000 1.4.4.11.2.12 *************** *** 174,177 **** --- 174,180 ---- int nobs; /* number of spies */ struct _gobj **obs; /* I spy with my little I */ + /* miscellaneous */ + int dirty; /* now this belongs to the update-manager and not the observable */ + void *dirty2; /* for future use */ } t_appendix; #endif *************** *** 430,440 **** #define CLASS_TYPEMASK 3
EXTERN t_class *class_new(t_symbol *name, t_newmethod newmethod, ! t_method freemethod, size_t size, int flags, t_atomtype arg1, ...); EXTERN void class_addcreator(t_newmethod newmethod, t_symbol *s, ! t_atomtype type1, ...); EXTERN void class_addmethod(t_class *c, t_method fn, t_symbol *sel, ! t_atomtype arg1, ...); EXTERN void class_addbang(t_class *c, t_method fn); EXTERN void class_addpointer(t_class *c, t_method fn); --- 433,449 ---- #define CLASS_TYPEMASK 3
+ /* this is a hack so that scons plusplus=1 works */ + #ifdef __cplusplus + typedef int t_atomtypearg; + #else + typedef t_atomtype t_atomtypearg; + #endif
EXTERN t_class *class_new(t_symbol *name, t_newmethod newmethod, ! t_method freemethod, size_t size, int flags, t_atomtypearg arg1, ...); EXTERN void class_addcreator(t_newmethod newmethod, t_symbol *s, ! t_atomtypearg type1, ...); EXTERN void class_addmethod(t_class *c, t_method fn, t_symbol *sel, ! t_atomtypearg arg1, ...); EXTERN void class_addbang(t_class *c, t_method fn); EXTERN void class_addpointer(t_class *c, t_method fn);