mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-23 03:54:12 +02:00
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.
This commit is contained in:
parent
3068bc7384
commit
b8d757732f
117 changed files with 981 additions and 929 deletions
|
@ -22,18 +22,20 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <uniconv.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef HAVE_SCHED_H
|
||||
# include <sched.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#ifdef TIME_WITH_SYS_TIME
|
||||
# include <sys/time.h>
|
||||
# include <time.h>
|
||||
|
@ -45,53 +47,46 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef LIBC_H_WITH_UNISTD_H
|
||||
#include <libc.h>
|
||||
# include <libc.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
# include <pwd.h>
|
||||
#endif
|
||||
#ifdef HAVE_IO_H
|
||||
#include <io.h>
|
||||
# include <io.h>
|
||||
#endif
|
||||
|
||||
#include "gsubr.h"
|
||||
#include "pairs.h"
|
||||
#include "async.h"
|
||||
#include "dynwind.h"
|
||||
#include "extensions.h"
|
||||
#include "finalizers.h"
|
||||
#include "fports.h"
|
||||
#include "list.h"
|
||||
#include "bitvectors.h"
|
||||
#include "scmsigs.h"
|
||||
#include "feature.h"
|
||||
#include "modules.h"
|
||||
#include "numbers.h"
|
||||
#include "strings.h"
|
||||
#include "srfi-13.h"
|
||||
#include "srfi-14.h"
|
||||
#include "symbols.h"
|
||||
#include "syscalls.h"
|
||||
#include "vectors.h"
|
||||
#include "values.h"
|
||||
|
||||
#include "posix.h"
|
||||
#include "gettext.h"
|
||||
#include "threads.h"
|
||||
|
||||
|
||||
#ifdef __MINGW32__
|
||||
# include "posix-w32.h"
|
||||
#endif
|
||||
|
||||
#include "async.h"
|
||||
#include "bitvectors.h"
|
||||
#include "dynwind.h"
|
||||
#include "extensions.h"
|
||||
#include "feature.h"
|
||||
#include "finalizers.h"
|
||||
#include "fports.h"
|
||||
#include "gettext.h"
|
||||
#include "gsubr.h"
|
||||
#include "list.h"
|
||||
#include "modules.h"
|
||||
#include "numbers.h"
|
||||
#include "pairs.h"
|
||||
#include "scmsigs.h"
|
||||
#include "srfi-13.h"
|
||||
#include "srfi-14.h"
|
||||
#include "strings.h"
|
||||
#include "symbols.h"
|
||||
#include "syscalls.h"
|
||||
#include "threads.h"
|
||||
#include "values.h"
|
||||
#include "vectors.h"
|
||||
|
||||
#include "posix.h"
|
||||
|
||||
#if HAVE_SYS_WAIT_H
|
||||
# include <sys/wait.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue