Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18539
Modified Files: Tag: desiredata kernel.c m_pd.h Log Message: adding "original_name" argument to class_addcreator (for future use by class browser)
Index: m_pd.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v retrieving revision 1.4.4.11.2.33.2.32 retrieving revision 1.4.4.11.2.33.2.33 diff -C2 -d -r1.4.4.11.2.33.2.32 -r1.4.4.11.2.33.2.33 *** m_pd.h 4 Jan 2007 17:15:22 -0000 1.4.4.11.2.33.2.32 --- m_pd.h 4 Jan 2007 17:29:34 -0000 1.4.4.11.2.33.2.33 *************** *** 483,494 ****
EXTERN t_class *class_find (t_symbol *s); ! EXTERN t_class *class_new( t_symbol *name, t_newmethod newmethod, ! t_method freemethod, size_t size, int flags, t_atomtypearg arg1, ...); ! EXTERN t_class *class_new2(t_symbol *name, t_newmethod newmethod, ! t_method freemethod, size_t size, int flags, const char *sig); ! EXTERN void class_addcreator( t_newmethod newmethod, t_symbol *sel, t_atomtypearg arg1, ...); ! EXTERN void class_addcreator2(t_newmethod newmethod, t_symbol *sel, const char *sig); ! EXTERN void class_addmethod( t_class *c, t_method fn, t_symbol *sel, t_atomtypearg arg1, ...); ! EXTERN void class_addmethod2(t_class *c, t_method fn, t_symbol *sel, const char *sig); EXTERN void class_addbang( t_class *c, t_method fn); EXTERN void class_addpointer( t_class *c, t_method fn); --- 483,492 ----
EXTERN t_class *class_find (t_symbol *s); ! EXTERN t_class *class_new( t_symbol *name,t_newmethod nu,t_method free,size_t size,int flags,t_atomtypearg arg1, ...); ! EXTERN t_class *class_new2(t_symbol *name,t_newmethod nu,t_method free,size_t size,int flags,const char *sig); ! EXTERN void class_addcreator( t_newmethod nu, t_symbol *sel, t_atomtypearg arg1, ...); ! EXTERN void class_addcreator2(t_symbol *name, t_newmethod nu, t_symbol *original_name, const char *sig); ! EXTERN void class_addmethod( t_class *c, t_method fn, t_symbol *sel, t_atomtypearg arg1, ...); ! EXTERN void class_addmethod2( t_class *c, t_method fn, t_symbol *sel, const char *sig); EXTERN void class_addbang( t_class *c, t_method fn); EXTERN void class_addpointer( t_class *c, t_method fn);
Index: kernel.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/kernel.c,v retrieving revision 1.1.2.26 retrieving revision 1.1.2.27 diff -C2 -d -r1.1.2.26 -r1.1.2.27 *** kernel.c 4 Jan 2007 17:15:22 -0000 1.1.2.26 --- kernel.c 4 Jan 2007 17:29:34 -0000 1.1.2.27 *************** *** 1096,1100 **** can belong to, but this won't be used until the newmethod is actually called back (and the new method explicitly takes care of this.) */ ! void class_addcreator2(t_newmethod newmethod, t_symbol *s, const char *sig) { class_addmethod2(pd_objectmaker._class, (t_method)newmethod, s, sig); #ifdef QUALIFIED_NAME --- 1096,1100 ---- can belong to, but this won't be used until the newmethod is actually called back (and the new method explicitly takes care of this.) */ ! void class_addcreator2(t_symbol *s, t_newmethod newmethod, t_symbol *original_name, const char *sig) { class_addmethod2(pd_objectmaker._class, (t_method)newmethod, s, sig); #ifdef QUALIFIED_NAME *************** *** 1176,1180 **** t=(t_atomtype)va_arg(ap,int); } ! *f=0; va_end(ap); class_addcreator2(newmethod,s,fmt); } void class_addmethod(t_class *c, t_method fn, t_symbol *sel, t_atomtypearg arg1, ...) { --- 1176,1180 ---- t=(t_atomtype)va_arg(ap,int); } ! *f=0; va_end(ap); class_addcreator2(s,newmethod,0,fmt); } void class_addmethod(t_class *c, t_method fn, t_symbol *sel, t_atomtypearg arg1, ...) {