summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e046c7)
raw | patch | inline | side by side (parent: 0e046c7)
author | Max Kellermann <max.kellermann@gmail.com> | |
Tue, 21 Mar 2017 20:42:52 +0000 (21:42 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Tue, 21 Mar 2017 20:42:52 +0000 (21:42 +0100) |
src/colors.c | patch | blob | history | |
src/colors.h | patch | blob | history |
diff --git a/src/colors.c b/src/colors.c
index 2c1a2d04922571224e11bf3d7cff1f762b16b365..1cf4c973cfc63c933b221b4384041764eb51beac 100644 (file)
--- a/src/colors.c
+++ b/src/colors.c
return NULL;
}
-static int
+static void
colors_update_pair(enum color id)
{
assert(id > 0 && id < COLOR_END);
init_pair(id,
(fg < 0 ? -1 : fg),
(bg < 0 ? -1 : bg));
- return 0;
}
int
return 0;
}
-
-int
+void
colors_start(void)
{
if (has_colors()) {
g_list_free(color_definition_list);
color_definition_list = NULL;
}
-
- return 0;
}
#endif
-int
+void
colors_use(WINDOW *w, enum color id)
{
color_entry_t *entry = &colors[id];
#ifdef ENABLE_COLORS
}
#endif
-
- return 0;
}
diff --git a/src/colors.h b/src/colors.h
index 1ccf50d2f9ca1b210256aa0fa8a868b691d380e6..c166c363be4378e7c774eff76cc099a1b50a78a0 100644 (file)
--- a/src/colors.h
+++ b/src/colors.h
#ifdef ENABLE_COLORS
int colors_assign(const char *name, const char *value);
int colors_define(const char *name, short r, short g, short b);
-int colors_start(void);
+
+void
+colors_start(void);
#endif
-int colors_use(WINDOW *w, enum color id);
+void
+colors_use(WINDOW *w, enum color id);
#endif /* COLORS_H */