aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-12-06 15:10:35 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-12-06 15:10:35 -0500
commit987e841c859e247a11086d42ed87851cfd1b49f2 (patch)
tree7b8324e64f700acd031523c8551ba6eb2f84831e
parent1f8380814aff5429d3c1d27a3b9b82aa6102b764 (diff)
downloadspmc-987e841c859e247a11086d42ed87851cfd1b49f2.tar.gz
Consolidate includes
-rw-r--r--config.c4
-rw-r--r--spm.c11
-rw-r--r--spm.h13
3 files changed, 13 insertions, 15 deletions
diff --git a/config.c b/config.c
index c07c16a..c6417f6 100644
--- a/config.c
+++ b/config.c
@@ -1,10 +1,6 @@
/**
* @file config.c
*/
-#include <ctype.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
#include "spm.h"
/// Remove leading whitespace from a string
diff --git a/spm.c b/spm.c
index 4fb9ed8..f62b804 100644
--- a/spm.c
+++ b/spm.c
@@ -3,17 +3,6 @@
* @file spm.c
*/
-#include <ctype.h>
-#include <errno.h>
-#include <glob.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <limits.h>
-#include <stdarg.h>
-#include <string.h>
-#include <unistd.h>
-#include <time.h>
-#include "config.h"
#include "spm.h"
/**
diff --git a/spm.h b/spm.h
index 4b033d0..53fc83b 100644
--- a/spm.h
+++ b/spm.h
@@ -1,6 +1,19 @@
#ifndef SPM_SPM_H
#define SPM_SPM_H
+#include <ctype.h>
+#include <errno.h>
+#include <glob.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <limits.h>
+#include <stdarg.h>
+#include <string.h>
+#include <unistd.h>
+#include <time.h>
+
+#include "config.h"
+
// spm.c
#define SYSERROR stderr, "%s:%s:%d: %s\n", __FILE__, __FUNCTION__, __LINE__, strerror(errno)
#define DIRSEP_WIN32 '\\'