[PD-cvs] pd/src kernel.c,1.1.2.84,1.1.2.85

Mathieu Bouchard matju at users.sourceforge.net
Wed Aug 15 21:22:16 CEST 2007


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2522

Modified Files:
      Tag: desiredata
	kernel.c 
Log Message:
added class_setonsubscribe


Index: kernel.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/kernel.c,v
retrieving revision 1.1.2.84
retrieving revision 1.1.2.85
diff -C2 -d -r1.1.2.84 -r1.1.2.85
*** kernel.c	12 Aug 2007 20:57:03 -0000	1.1.2.84
--- kernel.c	15 Aug 2007 19:22:14 -0000	1.1.2.85
***************
*** 961,964 ****
--- 961,965 ----
        class_addmethod2(pd_objectmaker._class, (t_method)newmethod, ss, sig);
  #endif
+     c->onsubscribe = gobj_onsubscribe;
      class_table->set(c->name, c);
      return c;
***************
*** 1067,1076 ****
  #undef class_addlist
  #undef class_addanything
! void class_addbang(    t_class *c, t_method fn) {   c->bangmethod = (t_bangmethod)fn;}
  void class_addpointer( t_class *c, t_method fn) {c->pointermethod = (t_pointermethod)fn;}
! void class_doaddfloat( t_class *c, t_method fn) {  c->floatmethod = (t_floatmethod)fn;}
! void class_addsymbol(  t_class *c, t_method fn)  {c->symbolmethod = (t_symbolmethod)fn;}
! void class_addlist(    t_class *c, t_method fn)    {c->listmethod = (t_listmethod)fn;}
! void class_addanything(t_class *c, t_method fn) {    c->anymethod = (t_anymethod)fn;}
  
  char *class_getname(t_class *c)     {return c->name->name;}
--- 1068,1077 ----
  #undef class_addlist
  #undef class_addanything
! void class_addbang(    t_class *c, t_method fn) {c->   bangmethod =    (t_bangmethod)fn;}
  void class_addpointer( t_class *c, t_method fn) {c->pointermethod = (t_pointermethod)fn;}
! void class_doaddfloat( t_class *c, t_method fn) {c->  floatmethod =   (t_floatmethod)fn;}
! void class_addsymbol(  t_class *c, t_method fn) {c-> symbolmethod =  (t_symbolmethod)fn;}
! void class_addlist(    t_class *c, t_method fn) {c->   listmethod =    (t_listmethod)fn;}
! void class_addanything(t_class *c, t_method fn) {c->    anymethod =     (t_anymethod)fn;}
  
  char *class_getname(t_class *c)     {return c->name->name;}
***************
*** 1079,1083 ****
  void class_setdrawcommand(t_class *c) {c->drawcommand = 1;}
  int  class_isdrawcommand( t_class *c) {return c->drawcommand;}
! void class_setnotice(t_class *c, t_notice notice) {c->notice = notice;}
  
  static void pd_floatforsignal(t_pd *x, t_float f) {
--- 1080,1085 ----
  void class_setdrawcommand(t_class *c) {c->drawcommand = 1;}
  int  class_isdrawcommand( t_class *c) {return c->drawcommand;}
! void class_setnotice(     t_class *c, t_notice      notice     ) {c->notice      = notice     ;}
! void class_setonsubscribe(t_class *c, t_onsubscribe onsubscribe) {c->onsubscribe = onsubscribe;}
  
  static void pd_floatforsignal(t_pd *x, t_float f) {
***************
*** 1644,1648 ****
          nextdelim = ap->a_type == A_SEMI ? '\n' : ' ';
      }
!     if (nextdelim) buf << (char)nextdelim;
      *bufp = strdup(buf.str().data());
      *lengthp = buf.str().size();// - (nextdelim == ' ');
--- 1646,1650 ----
          nextdelim = ap->a_type == A_SEMI ? '\n' : ' ';
      }
!     //if (nextdelim) buf << (char)nextdelim;
      *bufp = strdup(buf.str().data());
      *lengthp = buf.str().size();// - (nextdelim == ' ');





More information about the Pd-cvs mailing list