Remove trailing whitespace.

This commit is contained in:
Johannes Maibaum 2016-09-11 18:23:21 +02:00
parent 4d57549bbb
commit bb80fe24b2
2 changed files with 33 additions and 33 deletions

View File

@ -152,7 +152,7 @@ int channel = 0;
void draw_note(int key);
void queue_message(struct MidiMessage *ev);
double
double
get_time(void)
{
double seconds;
@ -399,7 +399,7 @@ process_midi_output(jack_nframes_t nframes)
}
}
int
int
process_callback(jack_nframes_t nframes, void *notused)
{
#ifdef MEASURE_TIME
@ -440,7 +440,7 @@ queue_message(struct MidiMessage *ev)
g_warning("jack_ringbuffer_write failed, NOTE LOST.");
}
void
void
queue_new_message(int b0, int b1, int b2)
{
struct MidiMessage ev;
@ -524,7 +524,7 @@ update_connected_to_combo_async(gpointer notused)
return (FALSE);
}
void
void
draw_window_title(void)
{
int i, off = 0;
@ -577,7 +577,7 @@ update_window_title_async(gpointer notused)
return (FALSE);
}
int
int
graph_order_callback(void *notused)
{
g_idle_add(update_window_title_async, NULL);
@ -625,7 +625,7 @@ connect_to_input_port(const char *port)
g_warning("Cannot connect to %s.", port);
return (-4);
}
}
g_warning("Connected to %s.", port);
@ -725,19 +725,19 @@ connected:
free(connected_ports);
}
void
void
connect_to_next_input_port(void)
{
connect_to_another_input_port(1);
}
void
void
connect_to_prev_input_port(void)
{
connect_to_another_input_port(0);
}
void
void
init_jack(void)
{
int err;
@ -815,7 +815,7 @@ load_config_from_lash(void)
int value;
while ((config = lash_get_config(lash_client))) {
key = lash_config_get_key(config);
value = lash_config_get_value_int(config);
@ -1032,7 +1032,7 @@ velocity_event_handler(GtkRange *range, gpointer notused)
#ifdef HAVE_X11
int grab_x_error_handler(Display *dpy, XErrorEvent *notused)
int grab_x_error_handler(Display *dpy, XErrorEvent *notused)
{
keyboard_grabbed = 0;
@ -1085,7 +1085,7 @@ grab_keyboard(void)
XK_q, XK_w, XK_e, XK_r, XK_t, XK_y, XK_u, XK_i, XK_o, XK_p,
XK_a, XK_s, XK_d, XK_f, XK_g, XK_h, XK_j, XK_k, XK_l,
XK_z, XK_x, XK_c, XK_v, XK_b, XK_n, XK_m,
XK_Shift_L, XK_Shift_R, XK_Control_L, XK_Control_R, XK_space,
XK_Shift_L, XK_Shift_R, XK_Control_L, XK_Control_R, XK_space,
XK_Insert, XK_Delete, XK_Home, XK_End, XK_Page_Up, XK_Page_Down,
XK_KP_1, XK_KP_2, XK_KP_3, XK_KP_4, XK_KP_5, XK_KP_6, XK_KP_7, XK_KP_8, XK_KP_9, XK_KP_0,
XK_Num_Lock, XK_KP_Multiply, XK_KP_Divide, XK_KP_Subtract, XK_KP_Add, XK_KP_Enter,
@ -1169,7 +1169,7 @@ octave_event_handler(GtkSpinButton *spinbutton, gpointer notused)
piano_keyboard_set_octave(keyboard, octave);
}
void
void
panic(void)
{
int i;
@ -1314,7 +1314,7 @@ clip(int val, int lo, int hi)
return (val);
}
gint
gint
keyboard_event_handler(GtkWidget *widget, GdkEventKey *event, gpointer notused)
{
int tmp;
@ -1669,7 +1669,7 @@ init_gtk_2(void)
draw_window_title();
}
void
void
log_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer notused)
{
GtkWidget *dialog;
@ -1707,7 +1707,7 @@ usage(void)
exit(EX_USAGE);
}
int
int
main(int argc, char *argv[])
{
int ch, enable_keyboard_cue = 0, initial_channel = 1, initial_bank = 0, initial_program = 0, full_midi_keyboard = 0;
@ -1765,11 +1765,11 @@ main(int argc, char *argv[])
case 'l':
keyboard_layout = strdup(optarg);
break;
case 't':
time_offsets_are_zero = 1;
break;
case 'u':
send_program_change_at_reconnect = 1;
break;

View File

@ -74,7 +74,7 @@ draw_keyboard_cue(PianoKeyboard *pk)
h - 9, pk->notes[last_note_in_higher_row].x + w - 3, h - 9);
}
static void
static void
draw_note(PianoKeyboard *pk, int note)
{
if (note < pk->min_note)
@ -129,7 +129,7 @@ draw_note(PianoKeyboard *pk, int note)
widget->allocation.height);
}
static int
static int
press_key(PianoKeyboard *pk, int key)
{
assert(key >= 0);
@ -154,7 +154,7 @@ press_key(PianoKeyboard *pk, int key)
return (1);
}
static int
static int
release_key(PianoKeyboard *pk, int key)
{
assert(key >= 0);
@ -179,7 +179,7 @@ release_key(PianoKeyboard *pk, int key)
return (1);
}
static void
static void
stop_unsustained_notes(PianoKeyboard *pk)
{
int i;
@ -193,7 +193,7 @@ stop_unsustained_notes(PianoKeyboard *pk)
}
}
static void
static void
stop_sustained_notes(PianoKeyboard *pk)
{
int i;
@ -237,7 +237,7 @@ clear_notes(PianoKeyboard *pk)
g_array_set_size(pk->key_bindings, 0);
}
static void
static void
bind_keys_qwerty(PianoKeyboard *pk)
{
clear_notes(pk);
@ -291,7 +291,7 @@ bind_keys_qwerty(PianoKeyboard *pk)
bind_key(pk, 51, 45); /* yes, really, at least here... */
}
static gint
static gint
keyboard_event_handler(GtkWidget *mk, GdkEventKey *event, gpointer notused)
{
int note;
@ -319,7 +319,7 @@ keyboard_event_handler(GtkWidget *mk, GdkEventKey *event, gpointer notused)
return (TRUE);
}
static int
static int
get_note_for_xy(PianoKeyboard *pk, int x, int y)
{
int height, note;
@ -347,7 +347,7 @@ get_note_for_xy(PianoKeyboard *pk, int x, int y)
return (-1);
}
static gboolean
static gboolean
mouse_button_event_handler(PianoKeyboard *pk, GdkEventButton *event, gpointer notused)
{
int x, y, note;
@ -389,7 +389,7 @@ mouse_button_event_handler(PianoKeyboard *pk, GdkEventButton *event, gpointer no
return (TRUE);
}
static gboolean
static gboolean
mouse_motion_event_handler(PianoKeyboard *pk, GdkEventMotion *event, gpointer notused)
{
int note;
@ -400,7 +400,7 @@ mouse_motion_event_handler(PianoKeyboard *pk, GdkEventMotion *event, gpointer no
note = get_note_for_xy(pk, event->x, event->y);
if (note != pk->note_being_pressed_using_mouse && note >= 0) {
if (pk->note_being_pressed_using_mouse >= 0)
release_key(pk, pk->note_being_pressed_using_mouse);
press_key(pk, note);
@ -422,7 +422,7 @@ piano_keyboard_expose(GtkWidget *widget, GdkEventExpose *event)
return (TRUE);
}
static void
static void
piano_keyboard_size_request(GtkWidget *widget, GtkRequisition *requisition)
{
requisition->width = PIANO_KEYBOARD_DEFAULT_WIDTH;
@ -483,7 +483,7 @@ recompute_dimensions(PianoKeyboard *pk)
for (note = 0, white_key = -skipped_white_keys; note < NNOTES; note++) {
if (is_black(note)) {
/* This note is black key. */
pk->notes[note].x = pk->widget_margin +
pk->notes[note].x = pk->widget_margin +
(white_key * key_width) -
(black_key_width * black_key_left_shift(note));
pk->notes[note].w = black_key_width;
@ -531,7 +531,7 @@ piano_keyboard_class_init(PianoKeyboardClass *klass)
G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,
0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
widget_klass = (GtkWidgetClass*)klass;
widget_klass = (GtkWidgetClass*)klass;
widget_klass->expose_event = piano_keyboard_expose;
widget_klass->size_request = piano_keyboard_size_request;
@ -613,7 +613,7 @@ piano_keyboard_sustain_press(PianoKeyboard *pk)
}
}
void
void
piano_keyboard_sustain_release(PianoKeyboard *pk)
{
if (pk->maybe_stop_sustained_notes)