[PD-cvs] SF.net SVN: pure-data:[10360] trunk/externals/zexy/src/pack.c

zmoelnig at users.sourceforge.net zmoelnig at users.sourceforge.net
Wed Nov 5 09:55:38 CET 2008


Revision: 10360
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10360&view=rev
Author:   zmoelnig
Date:     2008-11-05 08:55:38 +0000 (Wed, 05 Nov 2008)

Log Message:
-----------
fixed nameclash with Pd's internal object

Modified Paths:
--------------
    trunk/externals/zexy/src/pack.c

Modified: trunk/externals/zexy/src/pack.c
===================================================================
--- trunk/externals/zexy/src/pack.c	2008-11-04 23:31:16 UTC (rev 10359)
+++ trunk/externals/zexy/src/pack.c	2008-11-05 08:55:38 UTC (rev 10360)
@@ -132,9 +132,13 @@
 
 void zpack_setup(void)
 {
-  zpack_class = class_new(gensym("pack"), (t_newmethod)zpack_new,
+  zpack_class = class_new(gensym("zexy/pack"), (t_newmethod)zpack_new,
 			(t_method)zpack_free, sizeof(t_zpack), 0, A_GIMME,  0);
-  class_addcreator((t_newmethod)zpack_new, gensym("zexy/pack"), A_GIMME, 0);
+#if 0
+  /* oops Pd-0.42 allows us to override built-ins
+   * this is bad as long as the 2 objects are not compatible */
+  class_addcreator((t_newmethod)zpack_new, gensym("pack"), A_GIMME, 0);
+#endif
   class_addbang(zpack_class, zpack_bang);
   class_addlist(zpack_class, zpack_list0);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list