From 9690e7a910a0d11ddc201b978596dbd2df637835 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 16:57:36 +0100 Subject: Moved code --- FICS/utils.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/FICS/utils.c b/FICS/utils.c index 89a35c3..ceade5e 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -34,6 +34,21 @@ #include "rmalloc.h" #include "utils.h" +struct t_tree { + char name; + struct t_tree *left, *right; +}; + +struct t_dirs { + char name; + struct t_dirs *left, *right; + struct t_tree *files; + time_t mtime; +}; + +PRIVATE char** t_buffer = NULL; +PRIVATE int t_buffersize = 0; + PUBLIC int count_lines(FILE *fp) { int c, nl = 0; @@ -873,21 +888,6 @@ PUBLIC char *ratstrii(int rat, int reg) return tmp[on - 1]; } -struct t_tree { - struct t_tree *left, *right; - char name; /* Not just 1 char - space for whole name */ -}; /* is allocated. Maybe a little cheesy? */ - -struct t_dirs { - struct t_dirs *left, *right; - time_t mtime; /* dir's modification time */ - struct t_tree *files; - char name; /* ditto */ -}; - -PRIVATE char **t_buffer = NULL; /* pointer to next space in return buffer */ -PRIVATE int t_buffersize = 0; /* size of return buffer */ - /* * Fill 't_buffer' with anything matching "want*" in file tree */ -- cgit v1.2.3