style: identifiers separation
This commit is contained in:
+8
-2
@@ -415,7 +415,10 @@ void state_parse_config(StateConfig *state_config, const ConfigFile *config) {
|
|||||||
void state_midi_event(SharedContext *context, const StateConfig *state_config,
|
void state_midi_event(SharedContext *context, const StateConfig *state_config,
|
||||||
const MidiDevice *midi, unsigned char code,
|
const MidiDevice *midi, unsigned char code,
|
||||||
unsigned char value, bool trace_midi) {
|
unsigned char value, bool trace_midi) {
|
||||||
unsigned int i, j, k, part;
|
unsigned int i;
|
||||||
|
unsigned int j;
|
||||||
|
unsigned int k;
|
||||||
|
unsigned int part;
|
||||||
bool found;
|
bool found;
|
||||||
|
|
||||||
found = false;
|
found = false;
|
||||||
@@ -564,7 +567,10 @@ bool state_background_write(SharedContext *context,
|
|||||||
const StateConfig *state_config,
|
const StateConfig *state_config,
|
||||||
const MidiDevice *midi) {
|
const MidiDevice *midi) {
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
bool beat_active, last_active, change, last_change;
|
bool beat_active;
|
||||||
|
bool last_active;
|
||||||
|
bool change;
|
||||||
|
bool last_change;
|
||||||
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if (pid < 0) {
|
if (pid < 0) {
|
||||||
|
|||||||
+2
-1
@@ -59,7 +59,8 @@ bool string_is_number(const char *value) {
|
|||||||
|
|
||||||
char *string_replace_at(const char *src, unsigned int from, unsigned int to,
|
char *string_replace_at(const char *src, unsigned int from, unsigned int to,
|
||||||
const char *rpl) {
|
const char *rpl) {
|
||||||
unsigned long src_len, rpl_len;
|
unsigned long src_len;
|
||||||
|
unsigned long rpl_len;
|
||||||
char *dst;
|
char *dst;
|
||||||
|
|
||||||
src_len = strnlen(src, STR_LEN * STR_LEN);
|
src_len = strnlen(src, STR_LEN * STR_LEN);
|
||||||
|
|||||||
+2
-1
@@ -18,7 +18,8 @@ bool timer_inc(Timer *timer) {
|
|||||||
|
|
||||||
double timer_reset(Timer *timer) {
|
double timer_reset(Timer *timer) {
|
||||||
struct timeval stop;
|
struct timeval stop;
|
||||||
double secs, per_secs;
|
double secs;
|
||||||
|
double per_secs;
|
||||||
|
|
||||||
gettimeofday(&stop, NULL);
|
gettimeofday(&stop, NULL);
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -121,7 +121,8 @@ void window_events() { glfwPollEvents(); }
|
|||||||
double window_get_time() { return glfwGetTime(); }
|
double window_get_time() { return glfwGetTime(); }
|
||||||
|
|
||||||
void window_use(Window *window, SharedContext *context) {
|
void window_use(Window *window, SharedContext *context) {
|
||||||
int width, height;
|
int width;
|
||||||
|
int height;
|
||||||
|
|
||||||
glfwMakeContextCurrent(window);
|
glfwMakeContextCurrent(window);
|
||||||
glfwGetFramebufferSize(window, &width, &height);
|
glfwGetFramebufferSize(window, &width, &height);
|
||||||
|
|||||||
Reference in New Issue
Block a user