Update of /cvsroot/pure-data/externals/pdp/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2628/include
Modified Files: pdp_comm.h pdp_config.h pdp_list.h pdp_mem.h pdp_net.h pdp_packet.h pdp_post.h pdp_queue.h pdp_types.h Log Message: pdp current darcs merge
Index: pdp_config.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_config.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pdp_config.h 16 Dec 2005 01:05:32 -0000 1.3 --- pdp_config.h 1 Sep 2006 13:45:29 -0000 1.4 *************** *** 30,37 ****
/* build pdp_sdl */ ! /* #undef HAVE_PDP_SDL */
/* build pdp_v4l */ ! /* #undef HAVE_PDP_V4L */
/* experimental vforth dsp engine */ --- 30,37 ----
/* build pdp_sdl */ ! #define HAVE_PDP_SDL 1
/* build pdp_v4l */ ! #define HAVE_PDP_V4L 1
/* experimental vforth dsp engine */
Index: pdp_list.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_list.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pdp_list.h 16 Dec 2005 01:05:32 -0000 1.3 --- pdp_list.h 1 Sep 2006 13:45:29 -0000 1.4 *************** *** 180,184 **** t_pdp_atom *pdp_list_pop_atom (t_pdp_list *l); t_pdp_word pdp_list_pop (t_pdp_list *l); ! t_pdp_word pdp_list_index (t_pdp_list *l, int index); void pdp_list_pop_push (t_pdp_list *source, t_pdp_list *dest);
--- 180,184 ---- t_pdp_atom *pdp_list_pop_atom (t_pdp_list *l); t_pdp_word pdp_list_pop (t_pdp_list *l); ! t_pdp_word pdp_list_index (t_pdp_list *l, int indx); void pdp_list_pop_push (t_pdp_list *source, t_pdp_list *dest);
Index: pdp_packet.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_packet.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pdp_packet.h 16 Dec 2005 01:05:32 -0000 1.3 --- pdp_packet.h 1 Sep 2006 13:45:29 -0000 1.4 *************** *** 50,54 **** The interface to the packet manager contains the following managing methods:
! * pdp_packet_new: create a new packet or reuse a previous one * pdp_packet_mark_unused: release a packet * pdp_packet_copy_ro: register a packet for read only use --- 50,54 ---- The interface to the packet manager contains the following managing methods:
! * pdp_packet_create: create a new packet * pdp_packet_mark_unused: release a packet * pdp_packet_copy_ro: register a packet for read only use *************** *** 56,59 **** --- 56,62 ---- * pdp_packet_clone_rw: create a new packet using a template, but don't copy the data
+ ( some types have shortcut methods pdp_packet_new_ which create/reuse a packet + unless you are writing a factory method for a packet, you should NEVER call a _create method ) + And two methods for raw data access
Index: pdp_net.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_net.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pdp_net.h 16 Dec 2005 02:55:15 -0000 1.4 --- pdp_net.h 1 Sep 2006 13:45:29 -0000 1.5 *************** *** 115,119 **** void *x_data; struct sockaddr_in x_source_socket; ! int x_sslen; int x_receive_finished; int x_packet_transferred; --- 115,119 ---- void *x_data; struct sockaddr_in x_source_socket; ! socklen_t x_sslen; int x_receive_finished; int x_packet_transferred;
Index: pdp_types.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_types.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pdp_types.h 16 Dec 2005 01:05:32 -0000 1.4 --- pdp_types.h 1 Sep 2006 13:45:30 -0000 1.5 *************** *** 25,36 **** #define PDP_TYPES_H
typedef signed char s8; typedef signed short s16; ! typedef signed long s32; typedef signed long long s64;
typedef unsigned char u8; typedef unsigned short u16; ! typedef unsigned long u32; typedef unsigned long long u64;
--- 25,47 ---- #define PDP_TYPES_H
+ /* check + http://www.unix.org/whitepapers/64bit.html + on unix (LP64) int = 32bit + + it was like this: + + typedef signed long s32; + typedef unsigned long u32; + */ + + typedef signed char s8; typedef signed short s16; ! typedef signed int s32; typedef signed long long s64;
typedef unsigned char u8; typedef unsigned short u16; ! typedef unsigned int u32; typedef unsigned long long u64;
Index: pdp_queue.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_queue.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pdp_queue.h 16 Dec 2005 01:05:32 -0000 1.3 --- pdp_queue.h 1 Sep 2006 13:45:30 -0000 1.4 *************** *** 83,87 **** void pdp_procqueue_flush(t_pdp_procqueue *q); void pdp_procqueue_wait(t_pdp_procqueue *q); ! void pdp_procqueue_finish(t_pdp_procqueue *q, int index); void pdp_procqueue_add(t_pdp_procqueue *q, void *owner, void *process, void *callback, int *queue_id); void pdp_procqueue_use_thread(t_pdp_procqueue* q, int t); --- 83,87 ---- void pdp_procqueue_flush(t_pdp_procqueue *q); void pdp_procqueue_wait(t_pdp_procqueue *q); ! void pdp_procqueue_finish(t_pdp_procqueue *q, int indx); void pdp_procqueue_add(t_pdp_procqueue *q, void *owner, void *process, void *callback, int *queue_id); void pdp_procqueue_use_thread(t_pdp_procqueue* q, int t);
Index: pdp_comm.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_comm.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pdp_comm.h 16 Dec 2005 01:05:32 -0000 1.3 --- pdp_comm.h 1 Sep 2006 13:45:29 -0000 1.4 *************** *** 38,43 **** don't use these directly!! use the macros instead, in case ! this is proven to be too much of a hack.. */
extern t_symbol s_pdp; extern t_symbol s_register_ro; --- 38,52 ---- don't use these directly!! use the macros instead, in case ! this is proven to be too much of a hack.. ! ! it's too much of a hack. getting rid of them. ! ! */ !
+ #define PDP_SYMBOL_HACK 0 + + + #if PDP_SYMBOL_HACK extern t_symbol s_pdp; extern t_symbol s_register_ro; *************** *** 59,62 **** --- 68,85 ---- #define S_CHANMASK &s_chanmask
+ #else + + #define S_PDP gensym("pdp") + #define S_REGISTER_RO gensym("register_ro") + #define S_REGISTER_RW gensym("register_rw") + #define S_PROCESS gensym("process") + #define S_DPD gensym("dpd") + #define S_INSPECT gensym("inspect") + #define S_ACCUMULATE gensym("accumulate") + #define S_CHANMASK gensym("chanmask") + + + #endif +
/* utility methods */
Index: pdp_mem.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_mem.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pdp_mem.h 16 Dec 2005 01:05:32 -0000 1.3 --- pdp_mem.h 1 Sep 2006 13:45:29 -0000 1.4 *************** *** 30,34 ****
/* fast allocator object (for lists and atoms) */ - #define PDP_FASTALLOC_BLOCK_ELEMENTS 4096 typedef struct _pdp_fastalloc { --- 30,33 ----
Index: pdp_post.h =================================================================== RCS file: /cvsroot/pure-data/externals/pdp/include/pdp_post.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pdp_post.h 16 Dec 2005 01:05:32 -0000 1.3 --- pdp_post.h 1 Sep 2006 13:45:30 -0000 1.4 *************** *** 23,29 **** #define _PDP_POST_H_
/* write a message to log (console) */ ! void pdp_post_n(char *fmt, ...); ! void pdp_post(char *fmt, ...);
#endif --- 23,43 ---- #define _PDP_POST_H_
+ #include <stdarg.h> + #include <m_pd.h> + /* write a message to log (console) */ ! ! #include <m_pd.h> ! ! // old ! //void pdp_post_n(char *fmt, ...); ! //void pdp_post(char *fmt, ...); ! ! // new ! //void startpost(const char *fmt, ...); ! //void post(const char *fmt, ...); ! ! #define pdp_post_n startpost ! #define pdp_post post
#endif