diff options
author | Franz Zotter <fzotter@users.sourceforge.net> | 2005-09-26 07:57:02 +0000 |
---|---|---|
committer | Franz Zotter <fzotter@users.sourceforge.net> | 2005-09-26 07:57:02 +0000 |
commit | b810cd1f4f95524debe30fe8805565aedfb151a3 (patch) | |
tree | 6705811e7282cde3a8a5273301cb15765e7d7b03 /src/mtx_minmax.c | |
parent | a0c0bb9a550d0164f7d684da5e6799129898868f (diff) |
added symbolic creation arguments or mode parameters "row" "col" ["mtx"] to below described externals.
now the operation mode of these externs can be selected by arbitrary ordered creation argumens containing above symbols, or by a "mode col" etc. command. This makes it easier/more intuitive to patch without using help patches.
svn path=/trunk/externals/iem/iemmatrix/; revision=3634
Diffstat (limited to 'src/mtx_minmax.c')
-rw-r--r-- | src/mtx_minmax.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mtx_minmax.c b/src/mtx_minmax.c index 10f1453..03b81be 100644 --- a/src/mtx_minmax.c +++ b/src/mtx_minmax.c @@ -49,14 +49,13 @@ static void mTXSetMinMaxMode (MTXminmax *mtx_minmax_obj, t_symbol *m_sym) static void *newMTXMin (t_symbol *s, int argc, t_atom *argv) { MTXminmax *mtx_minmax_obj = (MTXminmax *) pd_new (mtx_minmax_class); - t_symbol *c_mode = 0; + mTXSetMinMaxMode (mtx_minmax_obj, gensym(":")); switch ((argc>1)?1:argc) { case 1: - c_mode = atom_getsymbol (argv); + mTXSetMinMaxMode (mtx_minmax_obj, atom_getsymbol (argv)); } mtx_minmax_obj->operator_minimum = 1; - mTXSetMinMaxMode (mtx_minmax_obj, c_mode); mtx_minmax_obj->list_outlet = outlet_new (&mtx_minmax_obj->x_obj, gensym("matrix")); return ((void *) mtx_minmax_obj); @@ -64,14 +63,13 @@ static void *newMTXMin (t_symbol *s, int argc, t_atom *argv) static void *newMTXMax (t_symbol *s, int argc, t_atom *argv) { MTXminmax *mtx_minmax_obj = (MTXminmax *) pd_new (mtx_minmax_class); - t_symbol *c_mode = 0; + mTXSetMinMaxMode (mtx_minmax_obj, gensym(":")); switch ((argc>1)?1:argc) { case 1: - c_mode = atom_getsymbol (argv); + mTXSetMinMaxMode (mtx_minmax_obj, atom_getsymbol (argv)); } mtx_minmax_obj->operator_minimum = 0; - mTXSetMinMaxMode (mtx_minmax_obj, c_mode); mtx_minmax_obj->list_outlet = outlet_new (&mtx_minmax_obj->x_obj, gensym("matrix")); return ((void *) mtx_minmax_obj); |