From dc2fd29b378aae1597fdc1954da0e01f75816bd4 Mon Sep 17 00:00:00 2001 From: musil Date: Tue, 7 Nov 2006 17:11:40 +0000 Subject: makefile_win makefile_linux update we dont need #if MSW_VER chanched float to t_float svn path=/trunk/externals/iemlib/; revision=6221 --- src/iemlib2/speedlim.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/iemlib2/speedlim.c') diff --git a/src/iemlib2/speedlim.c b/src/iemlib2/speedlim.c index 9e29e0a..d0224fc 100644 --- a/src/iemlib2/speedlim.c +++ b/src/iemlib2/speedlim.c @@ -3,16 +3,9 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 */ -#ifdef _MSC_VER -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) -#endif #include "m_pd.h" #include "iemlib.h" -#include -#include -#include /* ----------------------- speedlim -------------------------- */ /* -- reduces the flow of float-messages to one message per -- */ @@ -27,8 +20,8 @@ typedef struct _speedlim float x_delay; int x_output_is_locked; int x_there_was_n_event; - float x_curval; - float x_lastout; + t_float x_curval; + t_float x_lastout; } t_speedlim; static void speedlim_stop(t_speedlim *x) @@ -54,7 +47,7 @@ static void speedlim_tick(t_speedlim *x) } } -static void speedlim_float(t_speedlim *x, t_float val) +static void speedlim_float(t_speedlim *x, t_floatarg val) { x->x_curval = val; if(!x->x_output_is_locked) @@ -68,7 +61,7 @@ static void speedlim_float(t_speedlim *x, t_float val) x->x_there_was_n_event = 1; } -static void speedlim_ft1(t_speedlim *x, t_float delay) +static void speedlim_ft1(t_speedlim *x, t_floatarg delay) { if(delay < 0.0) delay = 0.0; @@ -80,7 +73,7 @@ static void speedlim_free(t_speedlim *x) clock_free(x->x_clock); } -static void *speedlim_new(t_float delay) +static void *speedlim_new(t_floatarg delay) { t_speedlim *x = (t_speedlim *)pd_new(speedlim_class); -- cgit v1.2.1