[PD-cvs] pd/src m_pd.h,1.4.4.11.2.18,1.4.4.11.2.19

Mathieu Bouchard matju at users.sourceforge.net
Sat Apr 22 00:57:58 CEST 2006


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

Modified Files:
      Tag: devel_0_39
	m_pd.h 
Log Message:
hashtable interface


Index: m_pd.h
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v
retrieving revision 1.4.4.11.2.18
retrieving revision 1.4.4.11.2.19
diff -C2 -d -r1.4.4.11.2.18 -r1.4.4.11.2.19
*** m_pd.h	21 Apr 2006 08:46:14 -0000	1.4.4.11.2.18
--- m_pd.h	21 Apr 2006 22:57:56 -0000	1.4.4.11.2.19
***************
*** 159,163 ****
--- 159,174 ----
  
  typedef t_class *t_pd;      /* pure datum: nothing but a class pointer */
+ 
  #ifdef DESIRE
+ EXTERN_STRUCT _hash;
+ #define t_hash struct _hash
+ typedef void *hashkey;
+ typedef void *hashvalue;
+ t_hash *  hash_new(long capa);
+ hashvalue hash_get(t_hash *self, hashkey k);
+ void      hash_set(t_hash *self, hashkey k, hashvalue v);
+ hashvalue hash_delete(t_hash *self, hashkey k);
+ int       hash_exists(t_hash *self, hashkey k); /* check if a key exists */
+ 
  /* _gobj_appendix (by matju) is made of the things that logically ought to be
     in _gobj but have been put in a separate memory space because this allows





More information about the Pd-cvs mailing list