[PD-cvs] pd/src m_hash.c,1.1.2.8,1.1.2.9

Mathieu Bouchard matju at users.sourceforge.net
Sun Jul 2 02:48:53 CEST 2006


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

Modified Files:
      Tag: devel_0_39
	m_hash.c 
Log Message:
now t_hash<t_pd


Index: m_hash.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/m_hash.c,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -C2 -d -r1.1.2.8 -r1.1.2.9
*** m_hash.c	26 Apr 2006 13:19:09 -0000	1.1.2.8
--- m_hash.c	2 Jul 2006 00:48:51 -0000	1.1.2.9
***************
*** 8,11 ****
--- 8,13 ----
  #include <stdio.h>
  
+ t_class *hash_class;
+ 
  typedef struct _hashentry {
  	hashkey k;
***************
*** 15,18 ****
--- 17,21 ----
  
  struct _hash {
+         t_pd pd;
  	long capa;
  	long size;
***************
*** 26,29 ****
--- 29,33 ----
  	long i;
  	t_hash *self = (t_hash *)malloc(sizeof(t_hash));
+ /*	t_hash *self = (t_hash *)pd_new(hash_class);*/
  	self->capa = capa;
  	self->size = 0;
***************
*** 100,101 ****
--- 104,110 ----
  }
  
+ void hash_setup (void) {
+   post("hash ah est-ce hash");
+   hash_class = class_new(gensym("#V"), (t_newmethod)0 /*hash_new*/,
+ 	(t_method)hash_free, sizeof(t_object), CLASS_PD, A_GIMME, 0);
+ }





More information about the Pd-cvs mailing list