[PD] global C variables accessible to many Pd externals?

cyrille henry cyrille.henry at la-kitchen.fr
Mon Jun 20 22:33:53 CEST 2005

i don't have the answer but you are trying to do something very similar 
to the [value] object.
maybe looking at it's source code would help.
it is in pd/src/x_connnective.c


Mike Wozniewski a écrit :
> Hi all,
> I'm writing a series of Pd externals... and I would like to have a few 
> global variables accessible from the C code of all these externals.
> These variables are not necessarily Pd related - for example, I might 
> have a dynamic linked-list that exists in C, but I do not want it in the 
> local space of any one external. In fact, I would like for several Pd 
> externals to have access to this list.
> So the question is:  how/where do I initially define these variables? 
> How do I tell my new externals where to find these variables?
> ...I assume that the answer to this includes the use of things like 
> gensym(), pd_bind(), etc.
> Thanks in advance,
> Mike Wozniewski
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list

More information about the Pd-list mailing list