Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10764
Modified Files: Tag: desiredata x_list.c x_net.c Log Message: compile as C++
Index: x_list.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/x_list.c,v retrieving revision 1.2.2.9.2.4 retrieving revision 1.2.2.9.2.5 diff -C2 -d -r1.2.2.9.2.4 -r1.2.2.9.2.5 *** x_list.c 20 Dec 2006 08:14:25 -0000 1.2.2.9.2.4 --- x_list.c 3 Jan 2007 07:12:50 -0000 1.2.2.9.2.5 *************** *** 321,325 **** int argc, t_atom *argv) { ! int n = x->x_f; if (n < 0) n = 0; --- 321,325 ---- int argc, t_atom *argv) { ! int n = (int)x->x_f; if (n < 0) n = 0; *************** *** 403,411 **** } t_list_length;
! static void *list_length_new( void) { t_list_length *x = (t_list_length *)pd_new(list_length_class); outlet_new(&x->x_obj, &s_float); ! return (x); }
--- 403,411 ---- } t_list_length;
! static t_pd *list_length_new( void) { t_list_length *x = (t_list_length *)pd_new(list_length_class); outlet_new(&x->x_obj, &s_float); ! return (t_pd *)x; }
Index: x_net.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/x_net.c,v retrieving revision 1.2.4.2.2.2.2.3 retrieving revision 1.2.4.2.2.2.2.4 diff -C2 -d -r1.2.4.2.2.2.2.3 -r1.2.4.2.2.2.2.4 *** x_net.c 20 Dec 2006 09:09:19 -0000 1.2.4.2.2.2.2.3 --- x_net.c 3 Jan 2007 07:12:50 -0000 1.2.4.2.2.2.2.4 *************** *** 45,49 **** struct hostent *hp; int sockfd; ! int portno = fportno; int intarg; if (x->x_fd >= 0) --- 45,49 ---- struct hostent *hp; int sockfd; ! int portno = (int)fportno; int intarg; if (x->x_fd >= 0) *************** *** 253,257 **** t_netreceive *x; struct sockaddr_in server; ! int sockfd, portno = fportno, udp = (udpflag != 0); int old = !strcmp(compatflag->s_name , "old"); int intarg; --- 253,257 ---- t_netreceive *x; struct sockaddr_in server; ! int sockfd, portno = (int)fportno, udp = (udpflag != 0); int old = !strcmp(compatflag->s_name , "old"); int intarg; *************** *** 307,312 **** if (udp) /* datagram protocol */ { ! t_socketreceiver *y = socketreceiver_new((void *)x, ! (t_socketnotifier)netreceive_notify, sockfd, (x->x_msgout ? netreceive_doit : 0), 1); sys_addpollfn(sockfd, (t_fdpollfn)socketreceiver_read, y); --- 307,311 ---- if (udp) /* datagram protocol */ { ! t_socketreceiver *y = socketreceiver_new((t_pd *)x, sockfd, (t_socketnotifier)netreceive_notify, (x->x_msgout ? netreceive_doit : 0), 1); sys_addpollfn(sockfd, (t_fdpollfn)socketreceiver_read, y);