ref: f1b5bedb72022c5e0ca8b9808bad89c0865e5be1
parent: beeb85720e59861cd9f726752b119c8a52e47fde
author: cancel <cancel@cancel.fm>
date: Mon Jan 13 06:34:03 EST 2020
Cleanup
--- a/bank.h
+++ b/bank.h
@@ -13,11 +13,7 @@
typedef struct {
U8 oevent_type;
- U8 channel;
- U8 octave;
- U8 note;
- U8 velocity;
- U8 bar_divisor;
+ U8 channel, octave, note, velocity, bar_divisor;
} Oevent_midi;
enum { Oevent_osc_int_count = 16 };
@@ -46,8 +42,7 @@
typedef struct {
Oevent *buffer;
- Usz count;
- Usz capacity;
+ Usz count, capacity;
} Oevent_list;
void oevent_list_init(Oevent_list *olist);
--- a/field.h
+++ b/field.h
@@ -8,8 +8,7 @@
typedef struct {
Glyph *buffer;
- U16 height;
- U16 width;
+ U16 width, height;
} Field;
void field_init(Field *field);
--- a/osc_out.h
+++ b/osc_out.h
@@ -34,8 +34,7 @@
typedef struct {
Susnote *buffer;
- Usz count;
- Usz capacity;
+ Usz count, capacity;
} Susnote_list;
void susnote_list_init(Susnote_list *sl);
--- a/tui_main.c
+++ b/tui_main.c
@@ -311,13 +311,11 @@
typedef struct Undo_node {
Field field;
Usz tick_num;
- struct Undo_node *prev;
- struct Undo_node *next;
+ struct Undo_node *prev, *next;
} Undo_node;
typedef struct {
- Undo_node *first;
- Undo_node *last;
+ Undo_node *first, *last;
Usz count;
Usz limit;
} Undo_history;
@@ -763,9 +761,7 @@
PmError portmidi_init_if_necessary(void) {
if (portmidi_is_initialized)
return 0;
- // U64 t0 = stm_now();
PmError e = Pm_Initialize();
- // fprintf(stderr, "ms: %f\n", stm_sec(stm_since(t0)) * 1000);
if (e)
return e;
portmidi_is_initialized = true;