From 7591a024f184bd385d35583d19d86c1d5f2531ba Mon Sep 17 00:00:00 2001 From: Tom Schouten Date: Fri, 1 Sep 2006 13:45:31 +0000 Subject: pdp current darcs merge svn path=/trunk/externals/pdp/; revision=5816 --- puredata/pdp_comm.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'puredata/pdp_comm.c') diff --git a/puredata/pdp_comm.c b/puredata/pdp_comm.c index 4c67659..2674e36 100644 --- a/puredata/pdp_comm.c +++ b/puredata/pdp_comm.c @@ -116,12 +116,16 @@ void pdp_packet_pass_if_valid(t_outlet *outlet, int *packet_ptr) { + + t_pdp *header = pdp_packet_header(*packet_ptr); if (header){ + /* send register phase */ outlet_pdp_register(outlet, *packet_ptr); + /* unregister */ pdp_packet_mark_unused(*packet_ptr); *packet_ptr = -1; @@ -129,7 +133,9 @@ pdp_packet_pass_if_valid(t_outlet *outlet, int *packet_ptr) /* send process phase */ outlet_pdp_process(outlet); + } + } void @@ -317,7 +323,7 @@ void pd_atom_to_pdp_atom(t_atom *pdatom, t_pdp_atom *pdpatom) } } - +#if PDP_SYMBOL_HACK /* some "accelerated" pd symbols */ t_symbol s_pdp = {"pdp", 0, 0}; @@ -329,6 +335,8 @@ t_symbol s_inspect = {"inspect", 0, 0}; t_symbol s_accumulate = {"accumulate", 0, 0}; t_symbol s_chanmask = {"chanmask", 0, 0}; + + // internal pd method t_symbol *dogensym(char *s, t_symbol *oldsym); static void _addsym(t_symbol *s) @@ -345,6 +353,7 @@ static void _addsym(t_symbol *s) } } + void pdp_pdsym_setup(void) { @@ -360,6 +369,12 @@ pdp_pdsym_setup(void) } +#else + +void pdp_pdsym_setup(void){ +} + +#endif #ifdef __cplusplus -- cgit v1.2.1