From 78e8f0c6d99b5a6a38bcc17dfd3291bc2c25aa83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sun, 12 Nov 2006 12:23:08 +0000 Subject: more fixes of variable shadowin; proper function declaration svn path=/trunk/externals/iem/iemmatrix/; revision=6267 --- src/mtx_index.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/mtx_index.c') diff --git a/src/mtx_index.c b/src/mtx_index.c index dfa226a..a4ca156 100644 --- a/src/mtx_index.c +++ b/src/mtx_index.c @@ -99,11 +99,11 @@ static void setAtomListConstFloat (int n, t_atom *x, t_float f) SETFLOAT(x,f); } -static void writeIndexedValuesIntoList (int n, int *index, t_atom *x, t_atom *y) +static void writeIndexedValuesIntoList (int n, int *indx, t_atom *x, t_atom *y) { - for (;n--;index++,y++) - if (*index) - *y = x[*index-1]; + for (;n--;indx++,y++) + if (*indx) + *y = x[*indx-1]; } static void mTXIndexRightMatrix (MTXindex *mtx_index_obj, t_symbol *s, @@ -165,7 +165,7 @@ static void mTXIndexMatrix (MTXindex *mtx_index_obj, t_symbol *s, t_atom *list_out = mtx_index_obj->list_out; int index_rows = mtx_index_obj->index_rows; int index_columns = mtx_index_obj->index_columns; - int *index = mtx_index_obj->index_in; + int *indx = mtx_index_obj->index_in; // size check if (!size) { @@ -181,14 +181,14 @@ static void mTXIndexMatrix (MTXindex *mtx_index_obj, t_symbol *s, post("mtx_index: index exceeds matrix dimensions"); return; } - if ((!index)||(mtx_index_obj->index_size == 0)) { + if ((!indx)||(mtx_index_obj->index_size == 0)) { post("mtx_index: index with what? no right matrix defined"); return; } // main part list_out += 2; setAtomListConstFloat (mtx_index_obj->index_size, list_out, mtx_index_obj->fill_value); - writeIndexedValuesIntoList (mtx_index_obj->index_size, index,list_in,list_out); + writeIndexedValuesIntoList (mtx_index_obj->index_size, indx,list_in,list_out); list_out = mtx_index_obj->list_out; SETSYMBOL(list_out, gensym("matrix")); SETFLOAT(list_out, index_rows); -- cgit v1.2.1