More header inclusion cleanup

This commit is contained in:
Matthias Clasen 2010-09-05 00:23:03 -04:00
parent 19972a1b57
commit f13d561211
9 changed files with 38 additions and 16 deletions

View File

@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#include "glib.h" #include "gatomic.h"
gint gint
g_atomic_int_exchange_and_add (volatile gint G_GNUC_MAY_ALIAS *atomic, g_atomic_int_exchange_and_add (volatile gint G_GNUC_MAY_ALIAS *atomic,

View File

@ -27,7 +27,7 @@
#include <sched.h> #include <sched.h>
#endif #endif
#include "glib.h" #include "gatomic.h"
#include "gthreadprivate.h" #include "gthreadprivate.h"
/** /**

View File

@ -26,8 +26,10 @@
#include "config.h" #include "config.h"
#include "glib.h" #include "gerror.h"
#include "gstrfuncs.h"
#include "gtestutils.h"
/** /**
* g_error_new_valist: * g_error_new_valist:

View File

@ -24,10 +24,10 @@
* Modified by the GLib Team and others 1997-2000. See the AUTHORS * Modified by the GLib Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GLib Team. See the ChangeLog * file for a list of people on the GLib Team. See the ChangeLog
* files for a list of changes. These files are distributed with * files for a list of changes. These files are distributed with
* GLib at ftp://ftp.gtk.org/pub/gtk/. * GLib at ftp://ftp.gtk.org/pub/gtk/.
*/ */
/* /*
* MT safe * MT safe
*/ */
@ -43,7 +43,11 @@
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include "glib.h" #include "giochannel.h"
#include "gerror.h"
#include "gfileutils.h"
#include "gtestutils.h"
/* /*
* Unix IO Channels * Unix IO Channels

View File

@ -27,7 +27,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include "glib.h"
#include "gprintf.h" #include "gprintf.h"
#include "gprintfint.h" #include "gprintfint.h"

View File

@ -20,8 +20,6 @@
#include "config.h" #include "config.h"
#include "gslice.h"
#if defined HAVE_POSIX_MEMALIGN && defined POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS #if defined HAVE_POSIX_MEMALIGN && defined POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS
# define HAVE_COMPLIANT_POSIX_MEMALIGN 1 # define HAVE_COMPLIANT_POSIX_MEMALIGN 1
#endif #endif
@ -32,10 +30,7 @@
#include <stdlib.h> /* posix_memalign() */ #include <stdlib.h> /* posix_memalign() */
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "gmem.h" /* gslice.h */
#include "gthreadprivate.h"
#include "glib.h"
#include "glib_trace.h"
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> /* sysconf() */ #include <unistd.h> /* sysconf() */
#endif #endif
@ -46,6 +41,14 @@
#include <stdio.h> /* fputs/fprintf */ #include <stdio.h> /* fputs/fprintf */
#include "gslice.h"
#include "gmem.h" /* gslice.h */
#include "gutils.h"
#include "gtestutils.h"
#include "gthread.h"
#include "gthreadprivate.h"
#include "glib_trace.h"
/* the GSlice allocator is split up into 4 layers, roughly modelled after the slab /* the GSlice allocator is split up into 4 layers, roughly modelled after the slab
* allocator and magazine extensions as outlined in: * allocator and magazine extensions as outlined in:

View File

@ -41,7 +41,12 @@
#include <sys/resource.h> #include <sys/resource.h>
#endif /* HAVE_SYS_RESOURCE_H */ #endif /* HAVE_SYS_RESOURCE_H */
#include "glib.h" #include "gspawn.h"
#include "gmem.h"
#include "gstring.h"
#include "gtestutils.h"
#include "gutils.h"
#include "glibintl.h" #include "glibintl.h"
static gint g_execute (const gchar *file, static gint g_execute (const gchar *file,

View File

@ -23,8 +23,9 @@
#include <stdlib.h> #include <stdlib.h>
#include "glib.h" #include "gunicode.h"
#include "gunidecomp.h" #include "gunidecomp.h"
#include "gmem.h"
#include "gunicomp.h" #include "gunicomp.h"
#include "gunicodeprivate.h" #include "gunicodeprivate.h"

View File

@ -57,9 +57,17 @@
*/ */
#define G_IMPLEMENT_INLINES 1 #define G_IMPLEMENT_INLINES 1
#define __G_UTILS_C__ #define __G_UTILS_C__
#include "glib.h" #include "gutils.h"
#include "gfileutils.h"
#include "ghash.h"
#include "gslist.h"
#include "gprintfint.h" #include "gprintfint.h"
#include "gthread.h"
#include "gthreadprivate.h" #include "gthreadprivate.h"
#include "gtestutils.h"
#include "gunicode.h"
#include "gstrfuncs.h"
#include "glibintl.h" #include "glibintl.h"
#ifdef MAXPATHLEN #ifdef MAXPATHLEN