From 50a389bea35a91ddae1394c5d35a6f1c703f5bdd Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 9 Mar 2004 03:51:28 +0000 Subject: Checked in Olaf's 1.5.2 sources. Here are the changes: v 1.5.2 (17. december 2003): - modified netclient for not to drop received data: use of syspollfn instead of clock to poll for incoming data, circular recv buffer v 1.5 (18. october 2003): - added some usefull features to arraycopy (i.e. copying just parts of an array and copying to specified position in destination array) - new object: nchange - IRIX 6.5 port (for GCC 3.3) - OS X binary (Jaguar 10.2.6) v 1.4 (22. may 2003): - updated sources to compile with Pd0.37-test4 - new object: arraycopy v 1.3 (12. april 2003): - new objects: sync listfifo - all setup routines renamed to maxlib__setup() to avoid name clashes, old names still work via class_addcreator() - some improvements for the help files svn path=/trunk/externals/maxlib/; revision=1394 --- src/pong.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/pong.c') diff --git a/src/pong.c b/src/pong.c index c2deb50..9d269ab 100644 --- a/src/pong.c +++ b/src/pong.c @@ -28,9 +28,9 @@ static char *version = "pong v0.1, ported by Olaf Matthes \n" " written for Max by Richard Dudas"; -typedef struct pong -{ - t_object x_obj; +typedef struct pong +{ + t_object x_obj; t_outlet *p_bounceout; t_outlet *p_handout; t_outlet *p_velout; @@ -250,7 +250,7 @@ static void pong_force(t_pong *x, t_floatarg n) static t_class *pong_class; static void *pong_new(t_floatarg n) -{ +{ t_pong *x = (t_pong *)pd_new(pong_class); x->p_klok = clock_new(x, (t_method)pong_tick); @@ -293,10 +293,10 @@ static void *pong_new(t_floatarg n) x->p_velout = outlet_new(&x->x_obj, gensym("float")); x->p_heightout = outlet_new(&x->x_obj, gensym("float")); - return (x); + return (x); } -#ifndef MAXLIB +#ifndef MAXLIB void pong_setup(void) { pong_class = class_new(gensym("pong"), (t_newmethod)pong_new, @@ -329,4 +329,4 @@ void maxlib_pong_setup(void) #else class_sethelpsymbol(pong_class, gensym("maxlib/help-pong.pd")); #endif -} \ No newline at end of file +} -- cgit v1.2.1