Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26609
Modified Files: Tag: desiredata m_pd.h kernel.c Log Message: introducing in() out() C++ methods in t_object
Index: m_pd.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v retrieving revision 1.4.4.11.2.33.2.39 retrieving revision 1.4.4.11.2.33.2.40 diff -C2 -d -r1.4.4.11.2.33.2.39 -r1.4.4.11.2.33.2.40 *** m_pd.h 9 Jan 2007 18:14:28 -0000 1.4.4.11.2.33.2.39 --- m_pd.h 9 Jan 2007 19:39:15 -0000 1.4.4.11.2.33.2.40 *************** *** 4,7 **** --- 4,11 ---- WARRANTIES, see the file, "LICENSE.txt", in this distribution. */
+ /* PD_PLUSPLUS_FACE is not considered as part of the main interface for externals, + even though it has become the main interface for internals. please don't rely on + it outside of the desiredata source code */ + #ifndef __m_pd_h_
*************** *** 251,254 **** --- 255,262 ---- short x,y; /* x&y location (within the toplevel) */ int refcount; /* there used to be a bitfield here, which may be a problem with ms-bitfields (?) */ + #ifdef PD_PLUSPLUS_FACE + t_inlet * in(int n); + t_outlet *out(int n); + #endif } t_text, t_object;
Index: kernel.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/kernel.c,v retrieving revision 1.1.2.33 retrieving revision 1.1.2.34 diff -C2 -d -r1.1.2.33 -r1.1.2.34 *** kernel.c 9 Jan 2007 17:06:28 -0000 1.1.2.33 --- kernel.c 9 Jan 2007 19:39:15 -0000 1.1.2.34 *************** *** 688,691 **** --- 688,694 ---- };
+ t_inlet *t_object:: in(int n) {t_inlet *i; while(n--) i=i->next; return i;} + t_outlet *t_object::out(int n) {t_outlet *o; while(n--) o=o->o_next; return o;} + t_class *wire_class; t_wire *wire_new (t_symbol *s, int argc, t_atom *argv) {