diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-01-03 12:28:27 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-01-03 12:28:27 +0000 |
commit | c3a067dc355fc57a5759d4e9a97bcbcd878caf13 (patch) | |
tree | 2035f23ed32392b7d7b92baf9fac1d4dc23e4cac /src/mtx_repmat.c | |
parent | 205992dca4afb92591c09353373244ce14204b52 (diff) |
pedantic and C99
svn path=/trunk/externals/iem/iemmatrix/; revision=9114
Diffstat (limited to 'src/mtx_repmat.c')
-rw-r--r-- | src/mtx_repmat.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mtx_repmat.c b/src/mtx_repmat.c index 5424baf..b909c69 100644 --- a/src/mtx_repmat.c +++ b/src/mtx_repmat.c @@ -80,13 +80,13 @@ static void writeRepeatIntoMatrix (int repeat_rows, int repeat_cols, int rows, i int new_col = columns * repeat_cols; t_atom *ptr = y; - // writing each row repeatedly (repeat_col times) into output array - // so that : row1#1 row1#2 ... row1#RN | ... | rowN#1 rowN#2 ... rowN#RN + /* writing each row repeatedly (repeat_col times) into output array */ + /* so that : row1#1 row1#2 ... row1#RN | ... | rowN#1 rowN#2 ... rowN#RN */ for (row_cnt=rows;row_cnt--;x+=columns) for(col_cnt=repeat_cols;col_cnt--;ptr+=columns) copyList (columns, x, ptr); - // repeating the above written long lines repeat row_repeat times in output array + /* repeating the above written long lines repeat row_repeat times in output array */ for (;--repeat_rows;) for (row_cnt=rows;row_cnt--;y+=new_col,ptr+=new_col) copyList (new_col, y, ptr); @@ -106,7 +106,7 @@ static void mTXRepmatMatrix (MTXrepmat *mtx_repmat_obj, t_symbol *s, t_atom *list_in = argv; t_atom *list_out = mtx_repmat_obj->list_out; - // size check + /* size check */ if (!size) { post("mtx_repmat: invalid dimensions"); return; @@ -129,9 +129,8 @@ static void mTXRepmatMatrix (MTXrepmat *mtx_repmat_obj, t_symbol *s, list_out = (t_atom*) getbytes (sizeof(t_atom)*(size+2)); mtx_repmat_obj->list_out = list_out; mtx_repmat_obj->size = size; - //post("size %d, rows %d, columns %d", size, rows, columns); } - // main part + /* main part */ writeRepeatIntoMatrix (rep_rows, rep_cols, rows, columns, list_in, list_out+2); |