From 46c6f809e842ec50a8073a7ef7f94594955f4fe7 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 7 Mar 2022 20:30:10 -0500 Subject: Rename stuff in a cat-like manner :3 --- src/seq.c | 68 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'src') diff --git a/src/seq.c b/src/seq.c index 42c20f6..dbf5487 100644 --- a/src/seq.c +++ b/src/seq.c @@ -40,7 +40,7 @@ void xas_seq_destroy(xas_seq *seq) { free(seq); } -static int add_event(xas_seq *seq, xas_seq_event *ev) { +static int event_add(xas_seq *seq, xas_seq_event *ev) { xas_seq_event_list_item *item; if ((item = malloc(sizeof(*item))) == NULL) { @@ -100,13 +100,13 @@ int xas_seq_add_event_off(xas_seq *seq, ev->object = object; ev->timestamp = timestamp; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -127,13 +127,13 @@ int xas_seq_add_event_on(xas_seq *seq, ev->object = object; ev->timestamp = timestamp; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -156,13 +156,13 @@ int xas_seq_add_set_position(xas_seq *seq, ev->timestamp = timestamp; ev->point = point; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -185,13 +185,13 @@ int xas_seq_add_set_heading(xas_seq *seq, ev->timestamp = timestamp; ev->heading = heading; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -214,13 +214,13 @@ int xas_seq_add_set_speed(xas_seq *seq, ev->timestamp = timestamp; ev->speed = speed; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -243,13 +243,13 @@ int xas_seq_add_set_gain(xas_seq *seq, ev->timestamp = timestamp; ev->gain = gain; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -272,13 +272,13 @@ int xas_seq_add_set_bank(xas_seq *seq, ev->timestamp = timestamp; ev->index = index; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -301,13 +301,13 @@ int xas_seq_add_set_player_flags(xas_seq *seq, ev->timestamp = timestamp; ev->flags = flags; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -330,13 +330,13 @@ int xas_seq_add_set_synth_type(xas_seq *seq, ev->timestamp = timestamp; ev->synth_type = type; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -359,13 +359,13 @@ int xas_seq_add_set_frequency(xas_seq *seq, ev->timestamp = timestamp; ev->frequency = frequency; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: @@ -388,13 +388,13 @@ int xas_seq_add_phrase(xas_seq *seq, ev->timestamp = timestamp; ev->phrase = phrase; - if (add_event(seq, ev) < 0) { - goto error_add_event; + if (event_add(seq, ev) < 0) { + goto error_event_add; } return 0; -error_add_event: +error_event_add: free(ev); error_malloc_ev: -- cgit v1.2.3