diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-06 15:10:35 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-06 15:10:35 -0500 |
commit | 987e841c859e247a11086d42ed87851cfd1b49f2 (patch) | |
tree | 7b8324e64f700acd031523c8551ba6eb2f84831e | |
parent | 1f8380814aff5429d3c1d27a3b9b82aa6102b764 (diff) | |
download | spmc-987e841c859e247a11086d42ed87851cfd1b49f2.tar.gz |
Consolidate includes
-rw-r--r-- | config.c | 4 | ||||
-rw-r--r-- | spm.c | 11 | ||||
-rw-r--r-- | spm.h | 13 |
3 files changed, 13 insertions, 15 deletions
@@ -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 @@ -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" /** @@ -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 '\\' |