diff options
Diffstat (limited to 'src/rawprint.c')
-rw-r--r-- | src/rawprint.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/rawprint.c b/src/rawprint.c index 68aac73..68b4244 100644 --- a/src/rawprint.c +++ b/src/rawprint.c @@ -1,4 +1,4 @@ -/* +/* * rawprint: print the incoming message as raw as possible * * (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 <http://www.gnu.org/licenses/>. */ @@ -20,7 +20,7 @@ #include "zexy.h" #include <stdio.h> -#ifdef _MSC_VER +#ifdef _MSC_VER # define snprintf _snprintf #endif @@ -71,7 +71,8 @@ static void rawprint_any(t_rawprint *x, t_symbol*s, int argc, t_atom*argv) snprintf(buf, MAXPDSTRING-1, "DOLLAR['%s']", atom_getsymbol(argv)->s_name); break; case A_DOLLSYM: - snprintf(buf, MAXPDSTRING-1, "DOLLSYM['%s']", atom_getsymbol(argv)->s_name); + snprintf(buf, MAXPDSTRING-1, "DOLLSYM['%s']", + atom_getsymbol(argv)->s_name); break; case A_GIMME: snprintf(buf, MAXPDSTRING-1, "GIMME"); @@ -83,7 +84,7 @@ static void rawprint_any(t_rawprint *x, t_symbol*s, int argc, t_atom*argv) snprintf(buf, MAXPDSTRING-1, "unknown[%d]", argv->a_type); } buf[MAXPDSTRING-1]=0; - + startpost(" %s", buf); argv++; } @@ -95,13 +96,15 @@ static void *rawprint_new(t_symbol*s) { t_rawprint *x = (t_rawprint *)pd_new(rawprint_class); x->label=NULL; - if(s&&gensym("")!=s) + if(s&&gensym("")!=s) { x->label=s; + } return (x); } -void rawprint_setup(void) { +void rawprint_setup(void) +{ rawprint_class = class_new(gensym("rawprint"), (t_newmethod)rawprint_new, 0, sizeof(t_rawprint), |