commit 8b0cfaab71528fe330416ca034232a83ab3ba4c8
parent f606b3071219be1e8d30cd8cd059a513b668ab03
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 5 Jun 2018 16:42:43 +0200
Cleanup common.h
Remove asprintf, it's only used in sacc.c (for now).
Reorder function declarations alphabetically.
Diffstat:
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/common.h b/common.h
@@ -23,19 +23,16 @@ struct dir {
size_t curline;
};
-#ifdef NEED_ASPRINTF
-int asprintf(char **s, const char *fmt, ...);
-#endif /* NEED_ASPRINTF */
+void die(const char *fmt, ...);
+size_t mbsprint(const char *s, size_t len);
#ifdef NEED_STRCASESTR
char *strcasestr(const char *h, const char *n);
#endif /* NEED_STRCASESTR */
-void die(const char *fmt, ...);
-size_t mbsprint(const char *s, size_t len);
const char *typedisplay(char t);
-void uidisplay(Item *entry);
-Item *uiselectitem(Item *entry);
-void uistatus(char *fmt, ...);
void uicleanup(void);
+void uidisplay(Item *entry);
char *uiprompt(char *fmt, ...);
+Item *uiselectitem(Item *entry);
void uisetup(void);
void uisigwinch(int signal);
+void uistatus(char *fmt, ...);