[Gridflow-cvs] [svn] commit: r3475 - /trunk/gridflow2.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sat Apr 12 11:19:51 EDT 2008


Author: matju
Date: Sat Apr 12 11:19:51 2008
New Revision: 3475

Log:
fix A_LIST; add SETNULL, SETLIST

Modified:
    trunk/gridflow2.h

Modified: trunk/gridflow2.h
==============================================================================
--- trunk/gridflow2.h (original)
+++ trunk/gridflow2.h Sat Apr 12 11:19:51 2008
@@ -45,8 +45,11 @@
 #endif
 
 #ifndef DESIREDATA
-#define A_LIST 13 /* (t_binbuf *) */
+#define A_LIST t_atomtype(13) /* (t_binbuf *) */
 #endif
+// the use of w_gpointer here is fake, just because there's no suitable member in the union
+void SETLIST(t_atom *a, t_binbuf *b) {a->a_type = A_LIST; a->a_w.w_gpointer = (t_gpointer *)b;}
+void SETNULL(t_atom *a)              {a->a_type = A_NULL; a->a_w.w_gpointer = 0;}
 
 typedef char       int8; typedef unsigned char      uint8;
 typedef short     int16; typedef unsigned short     uint16;



More information about the Gridflow-cvs mailing list