From 27eaddb6b9524b43448f4e5c88ac74bbe8fdb3a5 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 5 Feb 2020 22:49:56 -0500 Subject: Use getopt_config to load options I'm really getting a lot of use out of this config.c huh. --- chat.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 9317843..57d4ba6 100644 --- a/chat.h +++ b/chat.h @@ -15,6 +15,7 @@ */ #include +#include #include #include #include @@ -139,6 +140,12 @@ void edit(size_t id, enum Edit op, wchar_t ch); char *editHead(void); char *editTail(void); +FILE *configOpen(const char *path, const char *mode); +int getopt_config( + int argc, char *const *argv, + const char *optstring, const struct option *longopts, int *longindex +); + static inline enum Color hash(const char *str) { if (*str == '~') str++; uint32_t hash = 0; -- cgit 1.4.1 >
summary refs log tree commit diff
Commit message (Collapse)Author
2022-02-10Correct diminishing shine, I thinkJune McEnroecEnroe
2022-02-10Correct diminishing shine, I thinkJune McEnroea1f95c05d0f82544977af8&follow=1'>Add deflateBound.3June McEnroe
2018-11-11Add deflateTune.3June McEnroe
2018-11-10Add deflateParams.3June McEnroe
2018-11-10Add deflateReset.3June McEnroe
2018-11-10Add deflateCopy.3June McEnroe
2018-11-10Add deflateSetDictionary.3June McEnroe
2018-11-10Remove initial deflate(3) reference in deflateInit2.3June McEnroe
2018-11-10Remove trailing whitespaceJune McEnroe
2018-11-10Add deflateInit2.3June McEnroe
2018-11-10Refer to deflate(3) for z_streamp typeJune McEnroe
2018-11-10Document z_stream fields in deflate.3June McEnroe
2018-11-10Add inflate.3June McEnroe
2018-11-09Use Pq/Po/Pc moreJune McEnroe
2018-11-09Add FreeBSD MakefileJune McEnroe
2018-11-09Add deflate.3June McEnroe