summaryrefslogtreecommitdiff
path: root/read_cfg.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-12-28 15:04:49 -0800
committerlouie <lshprung@yahoo.com>2020-12-28 15:04:49 -0800
commit9fa266e62dc0782f7c2125f18fed2668ea414b29 (patch)
tree03c6d839fcb373a8877a4d66fc0c077bd629d90a /read_cfg.c
parentd7fa91b54c7dcce8dedbe32f37cf849f530f8864 (diff)
Cleaned up headers
Diffstat (limited to 'read_cfg.c')
-rw-r--r--read_cfg.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/read_cfg.c b/read_cfg.c
index 8a4f902..78df6a4 100644
--- a/read_cfg.c
+++ b/read_cfg.c
@@ -1,32 +1,21 @@
+#include <assert.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#if defined _WIN32 || defined _WIN64
#include "windows/read_cfg.h"
#else
#include "unix/read_cfg.h"
#endif
-#include <assert.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "entry.h"
#include "group.h"
-#define BUF_LEN 1024
+#include "read_cfg.h"
#define MAX_ARGS 5
#define OPTION_CNT 14
-//public
-void cfg_interp(char *path);
-bool get_sort();
-bool get_case_sensitivity();
-void refer_to_doc();
-void addme(char *path, char *group, bool force, char *name);
-int search_ch(char *str, char c);
-int search_last_ch(char *str, char c);
-int wild_cmp(char *wild, char *literal);
-char *strip_quotes(char *str);
-void error_mes(int ln, char *message);
-
//private
void check_line(char *buffer, char **options, int ln);
int check_option(char *arg, char **options);