Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10385
Modified Files: Tag: desiredata x_arithmetic.c x_connective.c x_gui.c Log Message: compile as C++
Index: x_arithmetic.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/x_arithmetic.c,v retrieving revision 1.2.10.2 retrieving revision 1.2.10.3 diff -C2 -d -r1.2.10.2 -r1.2.10.3 *** x_arithmetic.c 8 Dec 2006 06:45:07 -0000 1.2.10.2 --- x_arithmetic.c 3 Jan 2007 07:12:01 -0000 1.2.10.3 *************** *** 451,455 **** static void binop2_pc_bang(t_binop *x) { ! int n2 = x->x_f2; outlet_float(x->x_obj.ob_outlet, ((int)(x->x_f1)) % (n2 ? n2 : 1)); } --- 451,455 ---- static void binop2_pc_bang(t_binop *x) { ! int n2 = (int)x->x_f2; outlet_float(x->x_obj.ob_outlet, ((int)(x->x_f1)) % (n2 ? n2 : 1)); } *************** *** 457,461 **** static void binop2_pc_float(t_binop *x, t_float f) { ! int n2 = x->x_f2; outlet_float(x->x_obj.ob_outlet, ((int)(x->x_f1 = f)) % (n2 ? n2 : 1)); } --- 457,461 ---- static void binop2_pc_float(t_binop *x, t_float f) { ! int n2 = (int)x->x_f2; outlet_float(x->x_obj.ob_outlet, ((int)(x->x_f1 = f)) % (n2 ? n2 : 1)); } *************** *** 472,479 **** static void binop3_mod_bang(t_binop *x) { ! int n2 = x->x_f2, result; if (n2 < 0) n2 = -n2; else if (!n2) n2 = 1; ! result = ((int)(x->x_f1)) % n2; if (result < 0) result += n2; outlet_float(x->x_obj.ob_outlet, (t_float)result); --- 472,479 ---- static void binop3_mod_bang(t_binop *x) { ! int n2 = (int)x->x_f2; if (n2 < 0) n2 = -n2; else if (!n2) n2 = 1; ! int result = ((int)(x->x_f1)) % n2; if (result < 0) result += n2; outlet_float(x->x_obj.ob_outlet, (t_float)result); *************** *** 497,501 **** static void binop3_div_bang(t_binop *x) { ! int n1 = x->x_f1, n2 = x->x_f2, result; if (n2 < 0) n2 = -n2; else if (!n2) n2 = 1; --- 497,501 ---- static void binop3_div_bang(t_binop *x) { ! int n1 = (int)x->x_f1, n2 = (int)x->x_f2, result; if (n2 < 0) n2 = -n2; else if (!n2) n2 = 1;
Index: x_connective.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/x_connective.c,v retrieving revision 1.3.4.1.2.10.2.4 retrieving revision 1.3.4.1.2.10.2.5 diff -C2 -d -r1.3.4.1.2.10.2.4 -r1.3.4.1.2.10.2.5 *** x_connective.c 3 Jan 2007 06:42:01 -0000 1.3.4.1.2.10.2.4 --- x_connective.c 3 Jan 2007 07:12:01 -0000 1.3.4.1.2.10.2.5 *************** *** 768,772 **** gpointer_unset(x->x_gpointer); *x->x_gpointer = *gp; ! if (gp->o) gp->o->refcount++; pack_bang(x); } --- 768,772 ---- gpointer_unset(x->x_gpointer); *x->x_gpointer = *gp; ! if (gp->un.o) gp->un.o->refcount++; pack_bang(x); } *************** *** 1215,1219 **** { x->x_run = 1; ! x->x_count = f; while (x->x_run && x->x_count) x->x_count--, outlet_bang(x->x_obj.ob_outlet); --- 1215,1219 ---- { x->x_run = 1; ! x->x_count = (int)f; while (x->x_run && x->x_count) x->x_count--, outlet_bang(x->x_obj.ob_outlet);
Index: x_gui.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/x_gui.c,v retrieving revision 1.3.4.1.2.5.2.2 retrieving revision 1.3.4.1.2.5.2.3 diff -C2 -d -r1.3.4.1.2.5.2.2 -r1.3.4.1.2.5.2.3 *** x_gui.c 19 Dec 2006 18:35:11 -0000 1.3.4.1.2.5.2.2 --- x_gui.c 3 Jan 2007 07:12:01 -0000 1.3.4.1.2.5.2.3 *************** *** 44,48 **** static void openpanel_symbol(t_openpanel *x, t_symbol *s) { ! char *path = (s && s->s_name) ? s->s_name : """"; sys_vgui("pdtk_openpanel {%s} {%s}\n", x->x_s->s_name, path); } --- 44,48 ---- static void openpanel_symbol(t_openpanel *x, t_symbol *s) { ! const char *path = (s && s->s_name) ? s->s_name : """"; sys_vgui("pdtk_openpanel {%s} {%s}\n", x->x_s->s_name, path); } *************** *** 106,110 **** // x->x_path = s; // savepanel_bang(x); ! char *path = (s && s->s_name) ? s->s_name : """"; sys_vgui("pdtk_savepanel {%s} {%s}\n", x->x_s->s_name, path); } --- 106,110 ---- // x->x_path = s; // savepanel_bang(x); ! const char *path = (s && s->s_name) ? s->s_name : """"; sys_vgui("pdtk_savepanel {%s} {%s}\n", x->x_s->s_name, path); }