From 739a8290a8b05645a2d055aed8e5eb76ba2e24e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Fri, 28 Aug 2015 17:55:26 +0000 Subject: one-true indentation svn path=/trunk/externals/zexy/; revision=17537 --- src/atof.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'src/atof.c') diff --git a/src/atof.c b/src/atof.c index 1f95c35..8311d83 100644 --- a/src/atof.c +++ b/src/atof.c @@ -1,4 +1,4 @@ -/* +/* * atof: ascii to A_FLOAT converter * * (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem) @@ -7,12 +7,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ @@ -23,8 +23,7 @@ static t_class *atof_class; -typedef struct _atof -{ +typedef struct _atof { t_object x_obj; t_float x_f; t_outlet*x_reject; @@ -50,20 +49,22 @@ static void atof_symbol(t_atof *x, t_symbol *sym) outlet_symbol(x->x_reject, sym); } } -static void atof_list(t_atof *x, t_symbol* UNUSED(s), int argc, t_atom *argv) +static void atof_list(t_atof *x, t_symbol* UNUSED(s), int argc, + t_atom *argv) { - if(!argc){ + if(!argc) { atof_bang(x); return; } - if (argv->a_type==A_FLOAT){ + if (argv->a_type==A_FLOAT) { atof_float(x, atom_getfloat(argv)); return; } atof_symbol(x, atom_getsymbol(argv)); } -static void atof_free(t_atof*x) { +static void atof_free(t_atof*x) +{ outlet_free(x->x_reject); x->x_reject=NULL; } @@ -78,8 +79,9 @@ static void *atof_new(void) void atof_setup(void) { - atof_class = class_new(gensym("atof"), (t_newmethod)atof_new, (t_method)atof_free, - sizeof(t_atof), 0, A_DEFFLOAT, 0); + atof_class = class_new(gensym("atof"), (t_newmethod)atof_new, + (t_method)atof_free, + sizeof(t_atof), 0, A_DEFFLOAT, 0); class_addbang(atof_class, (t_method)atof_bang); class_addfloat(atof_class, (t_method)atof_float); -- cgit v1.2.1