tcommon: Move gopher type enum out of common header - sacc - sacc (saccomys): simple gopher client.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 6b0f1c92c58fcff0de4724a1c005264e86794244
 (DIR) parent cf707964fe31a4987713b4ae89eea96e63640c6a
 (HTM) Author: Quentin Rameau <quinq@fifth.space>
       Date:   Wed, 20 Jul 2022 23:27:03 +0200
       
       common: Move gopher type enum out of common header
       
       Diffstat:
         M common.h                            |      21 ---------------------
         M sacc.c                              |      22 ++++++++++++++++++++++
       
       2 files changed, 22 insertions(+), 21 deletions(-)
       ---
 (DIR) diff --git a/common.h b/common.h
       t@@ -3,27 +3,6 @@
        typedef struct item Item;
        typedef struct dir Dir;
        
       -enum {
       -        TXT,
       -        DIR,
       -        CSO,
       -        ERR,
       -        MAC,
       -        DOS,
       -        UUE,
       -        IND,
       -        TLN,
       -        BIN,
       -        MIR,
       -        IBM,
       -        GIF,
       -        IMG,
       -        URL,
       -        INF,
       -        UNK,
       -        BRK,
       -};
       -
        struct item {
                char type;
                char redtype;
 (DIR) diff --git a/sacc.c b/sacc.c
       t@@ -21,6 +21,28 @@
        #include "version.h"
        #include "common.h"
        #include "io.h"
       +
       +enum {
       +        TXT,
       +        DIR,
       +        CSO,
       +        ERR,
       +        MAC,
       +        DOS,
       +        UUE,
       +        IND,
       +        TLN,
       +        BIN,
       +        MIR,
       +        IBM,
       +        GIF,
       +        IMG,
       +        URL,
       +        INF,
       +        UNK,
       +        BRK,
       +};
       +
        #define NEED_CONF
        #include "config.h"
        #undef NEED_CONF