diff options
author | musil <tmusil@users.sourceforge.net> | 2006-11-08 13:24:10 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2006-11-08 13:24:10 +0000 |
commit | 541ab13ab9aaf849014d81d9159bd12a03320c74 (patch) | |
tree | 24f430aa267e2637dc3b61db142ec189457fabd9 /src/iemlib1/forpp.c | |
parent | d3af2d2474bfff3a987d54bc58d96c97cea1ec11 (diff) |
changed sig* to *_tilde
#if MSC_VER is obsolete
replaced all float by t_float
svn path=/trunk/externals/iemlib/; revision=6231
Diffstat (limited to 'src/iemlib1/forpp.c')
-rw-r--r-- | src/iemlib1/forpp.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/iemlib1/forpp.c b/src/iemlib1/forpp.c index b1ddc9a..bbee77a 100644 --- a/src/iemlib1/forpp.c +++ b/src/iemlib1/forpp.c @@ -3,17 +3,9 @@ iemlib1 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 <math.h> -#include <stdio.h> -#include <string.h> /* ----------------------------- for++ -------------------------------- */ /* -- an internal timed counter (start-, stop-number and metro-time) -- */ @@ -23,7 +15,7 @@ typedef struct _forpp t_object x_obj; int x_beg; int x_end; - float x_delay; + t_float x_delay; int x_cur; int x_incr; void *x_out_end; @@ -108,7 +100,7 @@ static void forpp_stop(t_forpp *x) clock_unset(x->x_clock2); } -static void forpp_float(t_forpp *x, t_float beg) +static void forpp_float(t_forpp *x, t_floatarg beg) { x->x_beg = (int)beg; if(x->x_end < x->x_beg) @@ -117,7 +109,7 @@ static void forpp_float(t_forpp *x, t_float beg) x->x_incr = 1; } -static void forpp_ft1(t_forpp *x, t_float end) +static void forpp_ft1(t_forpp *x, t_floatarg end) { x->x_end = (int)end; if(x->x_end < x->x_beg) @@ -126,7 +118,7 @@ static void forpp_ft1(t_forpp *x, t_float end) x->x_incr = 1; } -static void forpp_ft2(t_forpp *x, t_float delay) +static void forpp_ft2(t_forpp *x, t_floatarg delay) { if(delay < 0.0) delay = 0.0; |