static int capture_appendfloat(t_capture *x, float f, char *buf, int col) { /* CHECKED 80 columns */ col = capture_formatnumber(x, f, buf, col, 80); hammereditor_append(x->x_filehandle, buf); return (col); }
static int capture_appendfloat(t_capture *x, float f, char *buf, int col, int linebreak) { /* CHECKME 80 columns */ col = capture_formatfloat(x, f, buf, col, 80); hammereditor_append(x->x_filehandle, buf); if (linebreak) { if (col) { hammereditor_append(x->x_filehandle, "\n\n"); col = 0; } else hammereditor_append(x->x_filehandle, "\n"); } return (col); }
/* CHECKED not available, LATER full editing */ static void prob_click(t_prob *x, t_floatarg xpos, t_floatarg ypos, t_floatarg shift, t_floatarg ctrl, t_floatarg alt) { t_probtrans *state; char buf[64]; hammereditor_open(x->x_filehandle, 0, 0); for (state = x->x_translist; state; state = state->tr_nextstate) { t_probtrans *trans; for (trans = state->tr_nexttrans; trans; trans = trans->tr_nexttrans) { sprintf(buf, "%d %d %d\n", state->tr_value, trans->tr_value, trans->tr_count); hammereditor_append(x->x_filehandle, buf); } } }