From bda7b198aeae366fddf9476ef5aa3a760f4c580f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 19 Feb 2012 03:11:23 +0000 Subject: reformat code to match Pd style by running 'astyle --style=ansi *.c' svn path=/trunk/externals/log/; revision=15995 --- logpost.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'logpost.c') diff --git a/logpost.c b/logpost.c index a66d5b0..7fec577 100644 --- a/logpost.c +++ b/logpost.c @@ -28,13 +28,13 @@ static t_symbol* args2symbol(int argc, t_atom *argv) static void logpost_bang(t_logpost *x) { - logpost(x, (const int)x->level, "%s%sbang", + logpost(x, (const int)x->level, "%s%sbang", x->tag->s_name, (*x->tag->s_name ? ": " : "")); } static void logpost_pointer(t_logpost *x, t_gpointer *gp) { - logpost(x, (const int)x->level, "%s%s(pointer %lx)", + logpost(x, (const int)x->level, "%s%s(pointer %lx)", x->tag->s_name, (*x->tag->s_name ? ": " : ""), gp); } @@ -48,7 +48,7 @@ static void logpost_anything(t_logpost *x, t_symbol *s, int argc, t_atom *argv) { t_symbol* output = args2symbol(argc, argv); logpost(x, (const int)x->level, "%s%s%s %s", - x->tag->s_name, (*x->tag->s_name ? ": " : ""), + x->tag->s_name, (*x->tag->s_name ? ": " : ""), s->s_name, output->s_name); } @@ -66,7 +66,8 @@ static void *logpost_new(t_symbol *sel, int argc, t_atom *argv) x->level = atom_getfloatarg(0, argc, argv); if (argc > 1) { - argc--; argv++; // lose the level arg + argc--; + argv++; // lose the level arg x->tag = args2symbol(argc, argv); } floatinlet_new(&x->x_obj, &x->level); -- cgit v1.2.1