mirror of
https://gittea.dev/nova/th.git
synced 2025-10-21 18:30:15 -04:00
moving stuff around to avoid 'previous implicit declaration'
This commit is contained in:
@@ -188,14 +188,6 @@ int strcmp_offset(char *in0, char *in1, char offset){
|
|||||||
void quit_program(){
|
void quit_program(){
|
||||||
status = STATUS_QUIT_PROGRAM;
|
status = STATUS_QUIT_PROGRAM;
|
||||||
}
|
}
|
||||||
void toggle_selection(){
|
|
||||||
pthread_mutex_lock(&mutex_selection);
|
|
||||||
pthread_mutex_lock(&mutex_mid);
|
|
||||||
mid_content[selected_file_current].status ^= FILE_STATUS_SELECTED;
|
|
||||||
status |= (STATUS_UPDATE_SCREEN_MASK);
|
|
||||||
pthread_mutex_unlock(&mutex_mid);
|
|
||||||
pthread_mutex_unlock(&mutex_selection);
|
|
||||||
}
|
|
||||||
void select_all(){
|
void select_all(){
|
||||||
pthread_mutex_lock(&mutex_selection);
|
pthread_mutex_lock(&mutex_selection);
|
||||||
pthread_mutex_lock(&mutex_mid);
|
pthread_mutex_lock(&mutex_mid);
|
||||||
@@ -313,6 +305,15 @@ void toggle_hidden_files(){
|
|||||||
file_modifiers ^= FILE_MODIFIERS_HIDDEN_FILES;
|
file_modifiers ^= FILE_MODIFIERS_HIDDEN_FILES;
|
||||||
status |= (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_MASK | STATUS_RELOAD_DIRECTORY);
|
status |= (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_MASK | STATUS_RELOAD_DIRECTORY);
|
||||||
}
|
}
|
||||||
|
void toggle_selection(){
|
||||||
|
pthread_mutex_lock(&mutex_selection);
|
||||||
|
pthread_mutex_lock(&mutex_mid);
|
||||||
|
mid_content[selected_file_current].status ^= FILE_STATUS_SELECTED;
|
||||||
|
status |= (STATUS_UPDATE_SCREEN_MASK);
|
||||||
|
pthread_mutex_unlock(&mutex_mid);
|
||||||
|
pthread_mutex_unlock(&mutex_selection);
|
||||||
|
move_down(1);
|
||||||
|
}
|
||||||
void jump_bottom(){
|
void jump_bottom(){
|
||||||
pthread_mutex_lock(&mutex_selection);
|
pthread_mutex_lock(&mutex_selection);
|
||||||
selected_file_current = 0 - 1;
|
selected_file_current = 0 - 1;
|
||||||
|
Reference in New Issue
Block a user