commit 6b0f1c92c58fcff0de4724a1c005264e86794244
parent cf707964fe31a4987713b4ae89eea96e63640c6a
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(-)
diff --git a/common.h b/common.h
@@ -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;
diff --git a/sacc.c b/sacc.c
@@ -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