commit 505f1463eb4ea7593eece762e4818cd5fb572368
parent d637015c819a06a4891621294ebee71ee8c194be
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Tue, 29 Jun 2021 19:33:11 -0700
Move split to it's own file
I prefer to keep source files focused on a single task.
Diffstat:
5 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/aps/command.c b/aps/command.c
@@ -33,6 +33,7 @@
#include "player.h"
#include "queue.h"
#include "response.h"
+#include "split.h"
#include "util.h"
#include "aps.h"
diff --git a/aps/mkfile b/aps/mkfile
@@ -1,7 +1,7 @@
# Copyright 2021 Jacob R. Edwards
name = aps
-src = aps.c command.c player.c queue.c response.c util.c
+src = aps.c command.c player.c queue.c response.c split.c
obj = ${src:%.c=%.o}
cppflags = -I../lib
diff --git a/aps/util.c b/aps/split.c
diff --git a/aps/split.h b/aps/split.h
@@ -0,0 +1 @@
+int split(char **, int, char *, char *);
diff --git a/aps/util.h b/aps/util.h
@@ -1,5 +1,3 @@
#define ERET(E) { errno = E; return 1; }
#define ERROR(S) (write(2, S, sizeof(S) - 1) != sizeof(S) - 1)
#define LEN(X) (sizeof(X) / sizeof(*X))
-
-int split(char **, int, char *, char *);