diff options
author | Andy Wingo <wingo@pobox.com> | 2018-06-20 18:31:24 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-06-20 18:31:24 +0200 |
commit | b8d757732fae7c396d58327185f94e5d90846445 (patch) | |
tree | f7cc7ebe65b5722b74f519f0b4db8a0d95fbc528 /libguile/script.c | |
parent | 3068bc738429286db225b618607848a5a40f82ce (diff) | |
download | guile-b8d757732fae7c396d58327185f94e5d90846445.tar.gz |
Rationalize include order in C files
Include config.h first, then system includes, then libguile includes, in
alphabetical order, then the include for the file in question.
Diffstat (limited to 'libguile/script.c')
-rw-r--r-- | libguile/script.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/libguile/script.c b/libguile/script.c index 08f2aa0c7..9f014edd2 100644 --- a/libguile/script.c +++ b/libguile/script.c @@ -23,35 +23,33 @@ # include <config.h> #endif +#include <ctype.h> +#include <errno.h> #include <localcharset.h> -#include <stdlib.h> #include <stdio.h> -#include <errno.h> -#include <ctype.h> +#include <stdlib.h> +#include <string.h> #include <uniconv.h> +#include <unistd.h> /* for X_OK define */ + +#ifdef HAVE_IO_H +#include <io.h> +#endif -#include "pairs.h" #include "eval.h" #include "feature.h" #include "fluids.h" #include "load.h" #include "modules.h" +#include "pairs.h" #include "read.h" -#include "script.h" #include "strings.h" #include "strports.h" #include "version.h" #include "vm.h" -#ifdef HAVE_STRING_H -#include <string.h> -#endif - -#include <unistd.h> /* for X_OK define */ +#include "script.h" -#ifdef HAVE_IO_H -#include <io.h> -#endif /* Concatentate str2 onto str1 at position n and return concatenated string if file exists; 0 otherwise. */ |