[PD-cvs] externals/zexy/src z_index.c,1.1,1.2
Tim Blechmann
timblech at users.sourceforge.net
Tue Sep 7 12:31:29 CEST 2004
Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25683
Modified Files:
z_index.c
Log Message:
lookup index to symbol will be sent to the outlet ...
Index: z_index.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/z_index.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** z_index.c 9 Oct 2002 10:19:02 -0000 1.1
--- z_index.c 7 Sep 2004 10:31:27 -0000 1.2
***************
*** 59,63 ****
{
int index = (int)findex;
! if ((index > 0) && (index <= x->maxentries) && (x->names[index-1])) post("index[%d] = %s", index, x->names[index-1]);
}
--- 59,69 ----
{
int index = (int)findex;
! if ((index > 0) && (index <= x->maxentries) && (x->names[index-1]))
! {
! /* TB: output symbol to outlet */
! t_symbol * s = gensym (x->names[index-1]);
! outlet_symbol (x->x_obj.ob_outlet,s);
! post("index[%d] = %s", index, x->names[index-1]);
! }
}
More information about the Pd-cvs
mailing list