Patch from Sven Neumann to make the include order consistent. (#71704)

Tue Dec  3 20:22:27 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/*.c: Patch from Sven Neumann to make the
        include order consistent. (#71704)
This commit is contained in:
Owen Taylor 2002-12-04 01:27:44 +00:00 committed by Owen Taylor
parent 6df677db74
commit bbbd329ff5
50 changed files with 146 additions and 85 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/*.c: Patch from Sven Neumann to make the
include order consistent. (#71704)
2002-12-03 Matthias Clasen <maclas@gmx.de> 2002-12-03 Matthias Clasen <maclas@gmx.de>
* configure.in: Check that strlcpy behaves as per the OpenBSD * configure.in: Check that strlcpy behaves as per the OpenBSD

View File

@ -1,3 +1,8 @@
Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/*.c: Patch from Sven Neumann to make the
include order consistent. (#71704)
2002-12-03 Matthias Clasen <maclas@gmx.de> 2002-12-03 Matthias Clasen <maclas@gmx.de>
* configure.in: Check that strlcpy behaves as per the OpenBSD * configure.in: Check that strlcpy behaves as per the OpenBSD

View File

@ -1,3 +1,8 @@
Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/*.c: Patch from Sven Neumann to make the
include order consistent. (#71704)
2002-12-03 Matthias Clasen <maclas@gmx.de> 2002-12-03 Matthias Clasen <maclas@gmx.de>
* configure.in: Check that strlcpy behaves as per the OpenBSD * configure.in: Check that strlcpy behaves as per the OpenBSD

View File

@ -1,3 +1,8 @@
Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/*.c: Patch from Sven Neumann to make the
include order consistent. (#71704)
2002-12-03 Matthias Clasen <maclas@gmx.de> 2002-12-03 Matthias Clasen <maclas@gmx.de>
* configure.in: Check that strlcpy behaves as per the OpenBSD * configure.in: Check that strlcpy behaves as per the OpenBSD

View File

@ -1,3 +1,8 @@
Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/*.c: Patch from Sven Neumann to make the
include order consistent. (#71704)
2002-12-03 Matthias Clasen <maclas@gmx.de> 2002-12-03 Matthias Clasen <maclas@gmx.de>
* configure.in: Check that strlcpy behaves as per the OpenBSD * configure.in: Check that strlcpy behaves as per the OpenBSD

View File

@ -1,3 +1,8 @@
Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/*.c: Patch from Sven Neumann to make the
include order consistent. (#71704)
2002-12-03 Matthias Clasen <maclas@gmx.de> 2002-12-03 Matthias Clasen <maclas@gmx.de>
* configure.in: Check that strlcpy behaves as per the OpenBSD * configure.in: Check that strlcpy behaves as per the OpenBSD

View File

@ -1,3 +1,8 @@
Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/*.c: Patch from Sven Neumann to make the
include order consistent. (#71704)
2002-12-03 Matthias Clasen <maclas@gmx.de> 2002-12-03 Matthias Clasen <maclas@gmx.de>
* configure.in: Check that strlcpy behaves as per the OpenBSD * configure.in: Check that strlcpy behaves as per the OpenBSD

View File

@ -28,9 +28,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -24,8 +24,11 @@
* MT safe * MT safe
*/ */
#include "config.h"
#include "glib.h" #include "glib.h"
struct _GAsyncQueue struct _GAsyncQueue
{ {
GMutex *mutex; GMutex *mutex;

View File

@ -29,9 +29,7 @@
* then * then
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include <signal.h> #include <signal.h>
#include <stdarg.h> #include <stdarg.h>

View File

@ -17,7 +17,7 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <config.h> #include "config.h"
#define G_IMPLEMENT_INLINES 1 #define G_IMPLEMENT_INLINES 1
#define __G_BSEARCHARRAY_C__ #define __G_BSEARCHARRAY_C__

View File

@ -28,6 +28,8 @@
* MT safe * MT safe
*/ */
#include "config.h"
#include "glib.h" #include "glib.h"

View File

@ -28,9 +28,13 @@
* MT safe * MT safe
*/ */
#include "glib.h" #include "config.h"
#include <string.h> #include <string.h>
#include "glib.h"
static void completion_check_cache (GCompletion* cmp, static void completion_check_cache (GCompletion* cmp,
gchar** new_prefix); gchar** new_prefix);

View File

@ -20,7 +20,7 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <config.h> #include "config.h"
#include <iconv.h> #include <iconv.h>
#include <errno.h> #include <errno.h>

View File

@ -31,9 +31,11 @@
* looked at yet. * looked at yet.
*/ */
#include <string.h> #include "config.h"
#include "glib.h"
#include <string.h>
#include "glib.h"
/* --- defines --- */ /* --- defines --- */

View File

@ -28,15 +28,13 @@
* MT safe * MT safe
*/ */
#include "config.h"
#define DEBUG_MSG(x) /* */ #define DEBUG_MSG(x) /* */
#ifdef G_ENABLE_DEBUG #ifdef G_ENABLE_DEBUG
/* #define DEBUG_MSG(args) g_message args ; */ /* #define DEBUG_MSG(args) g_message args ; */
#endif #endif
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "glib.h" #include "glib.h"
#include <time.h> #include <time.h>

View File

@ -24,8 +24,11 @@
* GLib at ftp://ftp.gtk.org/pub/gtk/. * GLib at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#include "config.h"
#include "glib.h" #include "glib.h"
static GError* static GError*
g_error_new_valist(GQuark domain, g_error_new_valist(GQuark domain,
gint code, gint code,

View File

@ -28,9 +28,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include "glib.h" #include "glib.h"

View File

@ -31,7 +31,9 @@
* MT safe * MT safe
*/ */
#include "glib.h" #include "config.h"
#include "glib.h"
/* --- defines --- */ /* --- defines --- */

View File

@ -32,7 +32,6 @@
*/ */
#include "config.h" #include "config.h"
#include "giochannel.h"
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
@ -45,6 +44,8 @@
#include "glib.h" #include "glib.h"
#include "giochannel.h"
#include "glibintl.h" #include "glibintl.h"
#define G_IO_NICE_BUF_SIZE 1024 #define G_IO_NICE_BUF_SIZE 1024

View File

@ -33,7 +33,6 @@
#include "config.h" #include "config.h"
#include "glib.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
@ -42,6 +41,8 @@
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include "glib.h"
/* /*
* Unix IO Channels * Unix IO Channels
*/ */

View File

@ -28,9 +28,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include "glib.h" #include "glib.h"

View File

@ -18,15 +18,15 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <config.h> #include "config.h"
#include "glib.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include "glib.h"
#include "glibintl.h" #include "glibintl.h"
GQuark GQuark

View File

@ -28,13 +28,12 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <signal.h> #include <signal.h>
#include "glib.h" #include "glib.h"

View File

@ -28,21 +28,20 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "glib.h"
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <signal.h> #include <signal.h>
#include <locale.h> #include <locale.h>
#include <errno.h> #include <errno.h>
#include "glib.h"
#include "gdebug.h" #include "gdebug.h"
#include "gprintfint.h" #include "gprintfint.h"

View File

@ -31,9 +31,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include "glib.h" #include "glib.h"

View File

@ -16,6 +16,11 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <string.h>
#include "gpattern.h" #include "gpattern.h"
#include "gmacros.h" #include "gmacros.h"
@ -23,7 +28,6 @@
#include "gmem.h" #include "gmem.h"
#include "gunicode.h" #include "gunicode.h"
#include "gutils.h" #include "gutils.h"
#include <string.h>
/* keep enum and structure of gpattern.c and patterntest.c in sync */ /* keep enum and structure of gpattern.c and patterntest.c in sync */
typedef enum typedef enum

View File

@ -28,8 +28,11 @@
* MT safe * MT safe
*/ */
#include "config.h"
#include "glib.h" #include "glib.h"
static const guint g_primes[] = static const guint g_primes[] =
{ {
11, 11,

View File

@ -32,10 +32,13 @@
* at ftp://ftp.gtk.org/pub/gtk/. * at ftp://ftp.gtk.org/pub/gtk/.
*/ */
#include "config.h"
#include <string.h> #include <string.h>
#include "glib.h" #include "glib.h"
/* Byte-wise swap two items of size SIZE. */ /* Byte-wise swap two items of size SIZE. */
#define SWAP(a, b, size) \ #define SWAP(a, b, size) \
do \ do \

View File

@ -24,9 +24,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include "glib.h" #include "glib.h"

View File

@ -36,10 +36,14 @@
* MT safe * MT safe
*/ */
#include <glib.h> #include "config.h"
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>
#include "glib.h"
G_LOCK_DEFINE_STATIC (global_random); G_LOCK_DEFINE_STATIC (global_random);
static GRand* global_random = NULL; static GRand* global_random = NULL;

View File

@ -27,10 +27,14 @@
* MT safe * MT safe
*/ */
#include "glib.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include "glib.h"
typedef struct _GRealTuples GRealTuples; typedef struct _GRealTuples GRealTuples;
struct _GRelation struct _GRelation

View File

@ -31,24 +31,23 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include "glib.h"
#include "gprintfint.h"
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <errno.h>
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
#include <io.h> /* For _read() */ #include <io.h> /* For _read() */
#endif #endif
#include "glib.h"
#include "gprintfint.h"
/* --- defines --- */ /* --- defines --- */
#define to_lower(c) ( \ #define to_lower(c) ( \
(guchar) ( \ (guchar) ( \

View File

@ -20,10 +20,11 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <config.h> #include "config.h"
#include <string.h>
#include "glib.h" #include "glib.h"
#include <string.h>
#ifdef _ #ifdef _
#warning "FIXME remove gettext hack" #warning "FIXME remove gettext hack"

View File

@ -28,9 +28,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include "glib.h" #include "glib.h"

View File

@ -19,11 +19,14 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#undef G_LOG_DOMAIN #undef G_LOG_DOMAIN
#include "glib.h" #include "glib.h"
#define GSPAWN_HELPER #define GSPAWN_HELPER
#include "gspawn-win32.c" /* For shared definitions */ #include "gspawn-win32.c" /* For shared definitions */
static GString *debugstring; static GString *debugstring;
static void static void

View File

@ -39,6 +39,8 @@
#include <config.h> #include <config.h>
#include "config.h"
#include "glib.h" #include "glib.h"
#include "gprintfint.h" #include "gprintfint.h"

View File

@ -20,9 +20,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <config.h> #include "config.h"
#include "glib.h"
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
@ -36,6 +35,8 @@
#include <sys/select.h> #include <sys/select.h>
#endif /* HAVE_SYS_SELECT_H */ #endif /* HAVE_SYS_SELECT_H */
#include "glib.h"
#include "glibintl.h" #include "glibintl.h"
static gint g_execute (const gchar *file, static gint g_execute (const gchar *file,

View File

@ -28,9 +28,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#define _GNU_SOURCE /* For stpcpy */ #define _GNU_SOURCE /* For stpcpy */
@ -44,6 +42,7 @@
#if !defined (HAVE_STRSIGNAL) || !defined(NO_SYS_SIGLIST_DECL) #if !defined (HAVE_STRSIGNAL) || !defined(NO_SYS_SIGLIST_DECL)
#include <signal.h> #include <signal.h>
#endif #endif
#include "glib.h" #include "glib.h"
#include "gprintfint.h" #include "gprintfint.h"

View File

@ -28,9 +28,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
@ -40,8 +38,10 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include "glib.h" #include "glib.h"
struct _GStringChunk struct _GStringChunk
{ {
GHashTable *const_table; GHashTable *const_table;

View File

@ -33,7 +33,6 @@
*/ */
#include "config.h" #include "config.h"
#include "glib.h"
#ifdef G_THREAD_USE_PID_SURROGATE #ifdef G_THREAD_USE_PID_SURROGATE
#include <sys/types.h> #include <sys/types.h>
@ -48,6 +47,9 @@
#include <string.h> #include <string.h>
#include "glib.h"
#if GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P #if GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P
# define g_system_thread_equal_simple(thread1, thread2) \ # define g_system_thread_equal_simple(thread1, thread2) \
((thread1).dummy_pointer == (thread2).dummy_pointer) ((thread1).dummy_pointer == (thread2).dummy_pointer)

View File

@ -24,8 +24,11 @@
* MT safe * MT safe
*/ */
#include "config.h"
#include "glib.h" #include "glib.h"
typedef struct _GRealThreadPool GRealThreadPool; typedef struct _GRealThreadPool GRealThreadPool;
struct _GRealThreadPool struct _GRealThreadPool

View File

@ -28,11 +28,8 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include "glib.h"
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif /* HAVE_UNISTD_H */ #endif /* HAVE_UNISTD_H */
@ -46,6 +43,9 @@
#include <windows.h> #include <windows.h>
#endif /* G_OS_WIN32 */ #endif /* G_OS_WIN32 */
#include "glib.h"
struct _GTimer struct _GTimer
{ {
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32

View File

@ -28,9 +28,7 @@
* MT safe * MT safe
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include "glib.h" #include "glib.h"

View File

@ -18,13 +18,13 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <config.h> #include "config.h"
#include <stdlib.h>
#include "glib.h" #include "glib.h"
#include "gunibreak.h" #include "gunibreak.h"
#include <stdlib.h>
#define TPROP(Page, Char) \ #define TPROP(Page, Char) \
((break_property_table[Page] >= G_UNICODE_MAX_TABLE_INDEX) \ ((break_property_table[Page] >= G_UNICODE_MAX_TABLE_INDEX) \

View File

@ -18,6 +18,8 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "config.h"
#include <locale.h> #include <locale.h>
#include <string.h> #include <string.h>
#ifdef __STDC_ISO_10646__ #ifdef __STDC_ISO_10646__

View File

@ -19,13 +19,14 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <config.h> #include "config.h"
#include <stdlib.h>
#include "glib.h" #include "glib.h"
#include "gunidecomp.h" #include "gunidecomp.h"
#include "gunicomp.h" #include "gunicomp.h"
#include <stdlib.h>
#define CC(Page, Char) \ #define CC(Page, Char) \
((combining_class_table[Page] >= G_UNICODE_MAX_TABLE_INDEX) \ ((combining_class_table[Page] >= G_UNICODE_MAX_TABLE_INDEX) \

View File

@ -19,15 +19,16 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <config.h> #include "config.h"
#include "glib.h"
#include "gunichartables.h"
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <locale.h> #include <locale.h>
#include "glib.h"
#include "gunichartables.h"
#define ATTTABLE(Page, Char) \ #define ATTTABLE(Page, Char) \
((attr_table[Page] == G_UNICODE_MAX_TABLE_INDEX) ? 0 : (attr_data[attr_table[Page]][Char])) ((attr_table[Page] == G_UNICODE_MAX_TABLE_INDEX) ? 0 : (attr_data[attr_table[Page]][Char]))

View File

@ -28,9 +28,7 @@
* MT safe for the unix part, FIXME: make the win32 part MT safe as well. * MT safe for the unix part, FIXME: make the win32 part MT safe as well.
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>

View File

@ -29,9 +29,7 @@
* MT safe for the unix part, FIXME: make the win32 part MT safe as well. * MT safe for the unix part, FIXME: make the win32 part MT safe as well.
*/ */
#ifdef HAVE_CONFIG_H #include "config.h"
#include <config.h>
#endif
#include "glibconfig.h" #include "glibconfig.h"