aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 6ecec1e..106767d 100644
--- a/main.c
+++ b/main.c
@@ -87,11 +87,11 @@ char *string_buffer = NULL; // A temporary buffer for localized actions. Pleas
size_t string_buffer_size = 0;
int size_x, size_y, pos_x, pos_y;
-void inline static trigger_autosave() {
+void trigger_autosave() {
countdown_to_autosave = 13375; // ms
}
-void inline static show_processing() {
+void show_processing() {
mvaddch(0, 0, ACS_DIAMOND);
refresh();
}
@@ -109,7 +109,7 @@ bool is_file_accessible(const char *path) {
}
// Returns true if string to_compare is equal to any of the other passed strings, false otherwise.
-bool inline static is_equal_to_any(const char *to_compare, const char *test_a, const char *test_b) {
+bool is_equal_to_any(const char *to_compare, const char *test_a, const char *test_b) {
return strncmp(to_compare, test_a, strlen(test_a)+1) == 0
|| strncmp(to_compare, test_b, strlen(test_b)+1) == 0;
}
@@ -1053,7 +1053,7 @@ void draw_tui(database_st *db, layout_st *layout) {
mvaddstr(y, x, string_buffer);
}
-static inline void *mem_alloc(size_t mem_size, const char *error_tag) {
+void *mem_alloc(size_t mem_size, const char *error_tag) {
void *mem_pointer = malloc(mem_size);
if(mem_pointer == NULL && mem_size > 0) {
fprintf(stderr, "Failed to allocate memory (%s): %s.\n", (error_tag == NULL ? "undefined" : error_tag), strerror(errno));
@@ -1124,7 +1124,7 @@ void read_input_to_string_buffer_with_space(int row, int column, int length, int
attroff(A_UNDERLINE);
}
-void static inline read_input_to_string_buffer(int row, int column, int length) {
+void read_input_to_string_buffer(int row, int column, int length) {
read_input_to_string_buffer_with_space(row, column, length, length);
}