1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-24 12:20:20 +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:
Andy Wingo 2018-06-20 18:31:24 +02:00
parent 3068bc7384
commit b8d757732f
117 changed files with 981 additions and 929 deletions

View file

@ -21,26 +21,6 @@
#endif
#include <alloca.h>
#include "gsubr.h"
#include "pairs.h"
#include "boolean.h"
#include "extensions.h"
#include "feature.h"
#include "i18n.h"
#include "list.h"
#include "strings.h"
#include "chars.h"
#include "modules.h"
#include "numbers.h"
#include "dynwind.h"
#include "syscalls.h"
#include "smob.h"
#include "symbols.h"
#include "values.h"
#include "variable.h"
#include "threads.h"
#include <locale.h>
#include <string.h> /* `strcoll ()' */
#include <ctype.h> /* `toupper ()' et al. */
@ -48,6 +28,27 @@
#include <unicase.h>
#include <unistr.h>
#include "boolean.h"
#include "chars.h"
#include "dynwind.h"
#include "extensions.h"
#include "feature.h"
#include "gsubr.h"
#include "list.h"
#include "modules.h"
#include "numbers.h"
#include "pairs.h"
#include "posix.h" /* for `scm_i_locale_mutex' */
#include "smob.h"
#include "strings.h"
#include "symbols.h"
#include "syscalls.h"
#include "threads.h"
#include "values.h"
#include "variable.h"
#include "i18n.h"
#if defined HAVE_NEWLOCALE && defined HAVE_STRCOLL_L && defined HAVE_USELOCALE
/* The GNU thread-aware locale API is documented in ``Thread-Aware Locale
Model, a Proposal'', by Ulrich Drepper:
@ -65,8 +66,6 @@
# define USE_GNU_LOCALE_API
#endif
#include "posix.h" /* for `scm_i_locale_mutex' */
/* Use Gnulib's header, which also provides `nl_item' & co. */
#include <langinfo.h>