diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-11-26 06:02:36 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-11-26 06:02:36 +0000 |
commit | 24c940826ecd77dae73571761de3a9294878dfe4 (patch) | |
tree | 8832e20bd119a874a9cd072c5ff002a5cc52fe9f /packages/patches | |
parent | f318ab61cb57b87e902bb9c7db006b7f66877da1 (diff) |
quick hack to make print post all arguments
svn path=/trunk/; revision=9039
Diffstat (limited to 'packages/patches')
-rw-r--r-- | packages/patches/made_print_post_all_arguments-0.40.3.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/patches/made_print_post_all_arguments-0.40.3.patch b/packages/patches/made_print_post_all_arguments-0.40.3.patch new file mode 100644 index 00000000..3317c365 --- /dev/null +++ b/packages/patches/made_print_post_all_arguments-0.40.3.patch @@ -0,0 +1,38 @@ +--- x_interface.c 2006/08/11 20:09:07 1.3 ++++ x_interface.c 2007/11/26 05:53:29 1.3.6.2 +@@ -15,11 +15,23 @@ + t_symbol *x_sym; + } t_print; + +-static void *print_new(t_symbol *s) ++static void *print_new(t_symbol *s, int argc, t_atom *argv) + { ++ int bufsize; ++ char *buf; + t_print *x = (t_print *)pd_new(print_class); +- if (*s->s_name) x->x_sym = s; +- else x->x_sym = gensym("print"); ++ if (*s->s_name) ++ { ++ t_binbuf *bb = binbuf_new(); ++ binbuf_add(bb, argc, argv); ++ binbuf_gettext(bb, &buf, &bufsize); ++ x->x_sym = gensym(buf); ++ binbuf_free(bb); ++ } ++ else ++ { ++ x->x_sym = gensym("print"); ++ } + return (x); + } + +@@ -60,7 +72,7 @@ + static void print_setup(void) + { + print_class = class_new(gensym("print"), (t_newmethod)print_new, 0, +- sizeof(t_print), 0, A_DEFSYM, 0); ++ sizeof(t_print), 0, A_GIMME, 0); + class_addbang(print_class, print_bang); + class_addfloat(print_class, print_float); + class_addpointer(print_class, print_pointer); |