aboutsummaryrefslogtreecommitdiff
path: root/cyclone/hammer/past.c
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2003-06-04 11:50:15 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2003-06-04 11:50:15 +0000
commitc2a6b33ed5c7686421c66fa90fe18e1d7a14b7ec (patch)
tree907ed244aa758fe70bb33256a17deca1e5fd9fb2 /cyclone/hammer/past.c
parentb6ae9da8c7dfba6587038cac42684949bf2faaf0 (diff)
mtr read/write, etc.
svn path=/trunk/externals/miXed/; revision=682
Diffstat (limited to 'cyclone/hammer/past.c')
-rw-r--r--cyclone/hammer/past.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cyclone/hammer/past.c b/cyclone/hammer/past.c
index eb29c8e..cb0b4ef 100644
--- a/cyclone/hammer/past.c
+++ b/cyclone/hammer/past.c
@@ -13,7 +13,7 @@
#include "common/loud.h"
#include "common/grow.h"
-#define PAST_MAXSIZE 8 /* CHECKED */
+#define PAST_C74MAXSIZE 8 /* CHECKED */
typedef struct past
{
@@ -22,7 +22,7 @@ typedef struct past
int x_size; /* as allocated */
int x_nthresh; /* as used */
t_atom *x_thresh;
- t_atom x_thrini[PAST_MAXSIZE];
+ t_atom x_thrini[PAST_C74MAXSIZE];
} t_past;
static t_class *past_class;
@@ -112,9 +112,9 @@ static void past_set(t_past *x, t_symbol *s, int ac, t_atom *av)
t_atom *vp = x->x_thresh;
if (ac > x->x_size)
{
- loud_incompatible_max(past_class, PAST_MAXSIZE, "guard points");
+ loud_incompatible_max(past_class, PAST_C74MAXSIZE, "guard points");
x->x_thresh = grow_nodata(&ac, &x->x_size, x->x_thresh,
- PAST_MAXSIZE, x->x_thrini,
+ PAST_C74MAXSIZE, x->x_thrini,
sizeof(*x->x_thresh));
}
x->x_nthresh = ac;
@@ -134,7 +134,7 @@ static void *past_new(t_symbol *s, int ac, t_atom *av)
t_past *x = (t_past *)pd_new(past_class);
x->x_low = 1;
x->x_nthresh = 0;
- x->x_size = PAST_MAXSIZE;
+ x->x_size = PAST_C74MAXSIZE;
x->x_thresh = x->x_thrini;
outlet_new((t_object *)x, &s_bang);
past_set(x, 0, ac, av);