[gjs/wip/xulrunner-1.9.3-rebase6: 2/8] xulrunner 1.9.3: Consistently include compat.h



commit ee9276c26f1f2a756df0e6f2751a86d634c70f7e
Author: Colin Walters <walters verbum org>
Date:   Fri Sep 17 19:37:28 2010 -0400

    xulrunner 1.9.3: Consistently include compat.h

 gi/arg.c                        |    1 +
 gi/boxed.c                      |    1 +
 gi/closure.c                    |    1 +
 gi/enumeration.c                |    1 +
 gi/foreign.c                    |    1 +
 gi/function.c                   |    1 +
 gi/keep-alive.c                 |    1 +
 gi/ns.c                         |    1 +
 gi/object.c                     |    1 +
 gi/param.c                      |    1 +
 gi/repo.c                       |    1 +
 gi/union.c                      |    1 +
 gi/value.c                      |    1 +
 gjs/byteArray.c                 |    1 +
 gjs/console.c                   |    1 +
 gjs/context.c                   |    1 +
 gjs/importer.c                  |    1 +
 gjs/jsapi-private.cpp           |    1 +
 gjs/jsapi-util-array.c          |    1 +
 gjs/jsapi-util.c                |    1 +
 gjs/mem.c                       |    1 +
 gjs/native.c                    |    1 +
 gjs/profiler.c                  |    1 +
 gjs/stack.c                     |    1 +
 modules/cairo-context.c         |    1 +
 modules/cairo-gradient.c        |    1 +
 modules/cairo-image-surface.c   |    1 +
 modules/cairo-linear-gradient.c |    1 +
 modules/cairo-path.c            |    1 +
 modules/cairo-pattern.c         |    1 +
 modules/cairo-pdf-surface.c     |    1 +
 modules/cairo-ps-surface.c      |    1 +
 modules/cairo-radial-gradient.c |    1 +
 modules/cairo-solid-pattern.c   |    1 +
 modules/cairo-surface-pattern.c |    1 +
 modules/cairo-surface.c         |    1 +
 modules/cairo-svg-surface.c     |    1 +
 modules/cairo.c                 |    1 +
 modules/console.c               |    1 +
 modules/dbus-exports.c          |    1 +
 modules/dbus-values.c           |    1 +
 modules/dbus.c                  |    1 +
 modules/gettext-native.c        |    1 +
 modules/gi.c                    |    1 +
 modules/lang.c                  |    1 +
 modules/mainloop.c              |    1 +
 46 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/gi/arg.c b/gi/arg.c
index e9ec4e4..ede9650 100644
--- a/gi/arg.c
+++ b/gi/arg.c
@@ -31,6 +31,7 @@
 #include "value.h"
 #include "gjs/byteArray.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <util/log.h>
 
diff --git a/gi/boxed.c b/gi/boxed.c
index adc9bd7..7c8ffbb 100644
--- a/gi/boxed.c
+++ b/gi/boxed.c
@@ -29,6 +29,7 @@
 #include "arg.h"
 #include "object.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include "repo.h"
 #include "function.h"
 
diff --git a/gi/closure.c b/gi/closure.c
index 56de829..a8bcb17 100644
--- a/gi/closure.c
+++ b/gi/closure.c
@@ -30,6 +30,7 @@
 #include "closure.h"
 #include "keep-alive.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 typedef struct {
     GClosure base;
diff --git a/gi/enumeration.c b/gi/enumeration.c
index a8370c4..9bdc8a2 100644
--- a/gi/enumeration.c
+++ b/gi/enumeration.c
@@ -26,6 +26,7 @@
 #include <string.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include "repo.h"
 
 #include <util/log.h>
diff --git a/gi/foreign.c b/gi/foreign.c
index a64efb4..a921a15 100644
--- a/gi/foreign.c
+++ b/gi/foreign.c
@@ -25,6 +25,7 @@
 
 #include <string.h>
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <girepository.h>
 
 #include "arg.h"
diff --git a/gi/function.c b/gi/function.c
index 80c051a..d747225 100644
--- a/gi/function.c
+++ b/gi/function.c
@@ -29,6 +29,7 @@
 #include "boxed.h"
 #include "union.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <util/log.h>
 
diff --git a/gi/keep-alive.c b/gi/keep-alive.c
index 8d903f7..82ca8b6 100644
--- a/gi/keep-alive.c
+++ b/gi/keep-alive.c
@@ -26,6 +26,7 @@
 #include "keep-alive.h"
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <util/log.h>
 #include <util/glib.h>
diff --git a/gi/ns.c b/gi/ns.c
index 6d85241..1cdc8a0 100644
--- a/gi/ns.c
+++ b/gi/ns.c
@@ -27,6 +27,7 @@
 #include "repo.h"
 #include "param.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <util/log.h>
 
diff --git a/gi/object.c b/gi/object.c
index fadc780..299db99 100644
--- a/gi/object.c
+++ b/gi/object.c
@@ -34,6 +34,7 @@
 #include "gjs_gi_trace.h"
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <util/log.h>
 
diff --git a/gi/param.c b/gi/param.c
index fb826c6..0a16848 100644
--- a/gi/param.c
+++ b/gi/param.c
@@ -28,6 +28,7 @@
 #include "param.h"
 #include "repo.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <util/log.h>
 
diff --git a/gi/repo.c b/gi/repo.c
index 3dd8166..97e7e60 100644
--- a/gi/repo.c
+++ b/gi/repo.c
@@ -34,6 +34,7 @@
 #include "foreign.h"
 
 #include <gjs/mem.h>
+#include <gjs/compat.h>
 
 #include <util/log.h>
 #include <util/misc.h>
diff --git a/gi/union.c b/gi/union.c
index ff99568..77c70ce 100644
--- a/gi/union.c
+++ b/gi/union.c
@@ -32,6 +32,7 @@
 #include "arg.h"
 #include "object.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include "repo.h"
 #include "function.h"
 
diff --git a/gi/value.c b/gi/value.c
index f1b8a59..2abc2cd 100644
--- a/gi/value.c
+++ b/gi/value.c
@@ -33,6 +33,7 @@
 #include "boxed.h"
 #include "union.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <girepository.h>
 
diff --git a/gjs/byteArray.c b/gjs/byteArray.c
index 8a5993b..01e877b 100644
--- a/gjs/byteArray.c
+++ b/gjs/byteArray.c
@@ -26,6 +26,7 @@
 #include <glib.h>
 #include "byteArray.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <util/log.h>
 #include <jsapi.h>
 
diff --git a/gjs/console.c b/gjs/console.c
index f00631b..2fbd7cf 100644
--- a/gjs/console.c
+++ b/gjs/console.c
@@ -28,6 +28,7 @@
 
 #include <util/log.h>
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 static char **include_path = NULL;
 static char *command = NULL;
diff --git a/gjs/context.c b/gjs/context.c
index 9c20266..a4b51a2 100644
--- a/gjs/context.c
+++ b/gjs/context.c
@@ -29,6 +29,7 @@
 #include "profiler.h"
 #include "native.h"
 #include "byteArray.h"
+#include "compat.h"
 
 #include <util/log.h>
 #include <util/error.h>
diff --git a/gjs/importer.c b/gjs/importer.c
index d0c347a..e3733bf 100644
--- a/gjs/importer.c
+++ b/gjs/importer.c
@@ -29,6 +29,7 @@
 #include <jsapi.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <string.h>
 
diff --git a/gjs/jsapi-private.cpp b/gjs/jsapi-private.cpp
index ad47065..f1ac44e 100644
--- a/gjs/jsapi-private.cpp
+++ b/gjs/jsapi-private.cpp
@@ -29,6 +29,7 @@
 
 #include "jsapi-util.h"
 #include "jsapi-private.h"
+#include "compat.h"
 
 #include <string.h>
 #include <jscntxt.h>
diff --git a/gjs/jsapi-util-array.c b/gjs/jsapi-util-array.c
index 6b77c44..2cef802 100644
--- a/gjs/jsapi-util-array.c
+++ b/gjs/jsapi-util-array.c
@@ -24,6 +24,7 @@
 #include <config.h>
 
 #include "jsapi-util.h"
+#include "compat.h"
 
 /* Maximum number of elements allowed in a GArray of rooted jsvals.
  * We pre-alloc that amount and then never allow the array to grow,
diff --git a/gjs/jsapi-util.c b/gjs/jsapi-util.c
index 3dc9178..572d543 100644
--- a/gjs/jsapi-util.c
+++ b/gjs/jsapi-util.c
@@ -29,6 +29,7 @@
 #include <util/misc.h>
 
 #include "jsapi-util.h"
+#include "compat.h"
 #include "jsapi-private.h"
 
 #include <string.h>
diff --git a/gjs/mem.c b/gjs/mem.c
index bae6271..5e5ff01 100644
--- a/gjs/mem.c
+++ b/gjs/mem.c
@@ -24,6 +24,7 @@
 #include <config.h>
 
 #include "mem.h"
+#include "compat.h"
 #include <util/log.h>
 
 #define GJS_DEFINE_COUNTER(name)             \
diff --git a/gjs/native.c b/gjs/native.c
index a1d162d..48175e3 100644
--- a/gjs/native.c
+++ b/gjs/native.c
@@ -28,6 +28,7 @@
 #include <util/log.h>
 
 #include "native.h"
+#include "compat.h"
 #include "jsapi-util.h"
 
 typedef struct {
diff --git a/gjs/profiler.c b/gjs/profiler.c
index dbcf9f1..c579400 100644
--- a/gjs/profiler.c
+++ b/gjs/profiler.c
@@ -25,6 +25,7 @@
 
 #include "profiler.h"
 #include <jsdbgapi.h>
+#include "compat.h"
 
 #include <signal.h>
 #include <sys/types.h>
diff --git a/gjs/stack.c b/gjs/stack.c
index 8e0e5ac..5a7a3a2 100644
--- a/gjs/stack.c
+++ b/gjs/stack.c
@@ -45,6 +45,7 @@
 #include <string.h>
 #include <jsdbgapi.h>
 #include "context.h"
+#include "compat.h"
 
 static const char*
 jsvalue_to_string(JSContext* cx, jsval val, gboolean* is_string)
diff --git a/modules/cairo-context.c b/modules/cairo-context.c
index cca2758..c5ca1a9 100644
--- a/modules/cairo-context.c
+++ b/modules/cairo-context.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <gi/foreign.h>
 
 #include <cairo.h>
diff --git a/modules/cairo-gradient.c b/modules/cairo-gradient.c
index 98c761f..dd89ae8 100644
--- a/modules/cairo-gradient.c
+++ b/modules/cairo-gradient.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-image-surface.c b/modules/cairo-image-surface.c
index 800f0dc..c69e1ce 100644
--- a/modules/cairo-image-surface.c
+++ b/modules/cairo-image-surface.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-linear-gradient.c b/modules/cairo-linear-gradient.c
index 3595185..bc18e82 100644
--- a/modules/cairo-linear-gradient.c
+++ b/modules/cairo-linear-gradient.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-path.c b/modules/cairo-path.c
index 8772823..d58841d 100644
--- a/modules/cairo-path.c
+++ b/modules/cairo-path.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-pattern.c b/modules/cairo-pattern.c
index 371d1ed..d459bcb 100644
--- a/modules/cairo-pattern.c
+++ b/modules/cairo-pattern.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-pdf-surface.c b/modules/cairo-pdf-surface.c
index 73df854..b19e48b 100644
--- a/modules/cairo-pdf-surface.c
+++ b/modules/cairo-pdf-surface.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-ps-surface.c b/modules/cairo-ps-surface.c
index 014ddab..05f1e90 100644
--- a/modules/cairo-ps-surface.c
+++ b/modules/cairo-ps-surface.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-radial-gradient.c b/modules/cairo-radial-gradient.c
index 9a4325e..fe54b70 100644
--- a/modules/cairo-radial-gradient.c
+++ b/modules/cairo-radial-gradient.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-solid-pattern.c b/modules/cairo-solid-pattern.c
index 313627a..1c1478c 100644
--- a/modules/cairo-solid-pattern.c
+++ b/modules/cairo-solid-pattern.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-surface-pattern.c b/modules/cairo-surface-pattern.c
index b34d066..47f36c4 100644
--- a/modules/cairo-surface-pattern.c
+++ b/modules/cairo-surface-pattern.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-surface.c b/modules/cairo-surface.c
index 8d92e57..ebdd029 100644
--- a/modules/cairo-surface.c
+++ b/modules/cairo-surface.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo-svg-surface.c b/modules/cairo-svg-surface.c
index 9a96065..f4c9637 100644
--- a/modules/cairo-svg-surface.c
+++ b/modules/cairo-svg-surface.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <cairo.h>
 #include "cairo-private.h"
 
diff --git a/modules/cairo.c b/modules/cairo.c
index 002d2c5..56a6e09 100644
--- a/modules/cairo.c
+++ b/modules/cairo.c
@@ -23,6 +23,7 @@
 #include <config.h>
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include "cairo-private.h"
 
diff --git a/modules/console.c b/modules/console.c
index 7410ee5..afb66c4 100644
--- a/modules/console.c
+++ b/modules/console.c
@@ -53,6 +53,7 @@
 #include <glib.h>
 #include <glib/gprintf.h>
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include "console.h"
 
diff --git a/modules/dbus-exports.c b/modules/dbus-exports.c
index 87889f9..2f9afab 100644
--- a/modules/dbus-exports.c
+++ b/modules/dbus-exports.c
@@ -27,6 +27,7 @@
 #include "gjs-dbus/dbus.h"
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <util/log.h>
 
diff --git a/modules/dbus-values.c b/modules/dbus-values.c
index 2a97046..45e3303 100644
--- a/modules/dbus-values.c
+++ b/modules/dbus-values.c
@@ -24,6 +24,7 @@
 #include "dbus-values.h"
 
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <gjs-dbus/dbus.h>
 #include <util/log.h>
diff --git a/modules/dbus.c b/modules/dbus.c
index 2f4b928..652c0d9 100644
--- a/modules/dbus.c
+++ b/modules/dbus.c
@@ -26,6 +26,7 @@
 #include "dbus-values.h"
 
 #include "../gjs/gjs.h"
+#include "../gjs/compat.h"
 #include "../gi/closure.h"
 
 #include <util/log.h>
diff --git a/modules/gettext-native.c b/modules/gettext-native.c
index 73f3550..0000f56 100644
--- a/modules/gettext-native.c
+++ b/modules/gettext-native.c
@@ -25,6 +25,7 @@
 #include "../gi/closure.h"
 #include <util/log.h>
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 #include <jsapi.h>
 #include <glib/gi18n.h>
 #include <gjs/compat.h>
diff --git a/modules/gi.c b/modules/gi.c
index a5a5db0..e807968 100644
--- a/modules/gi.c
+++ b/modules/gi.c
@@ -28,6 +28,7 @@
 #include <string.h>
 
 #include "gjs/native.h"
+#include "gjs/compat.h"
 #include "gi/repo.h"
 
 JSBool
diff --git a/modules/lang.c b/modules/lang.c
index 025d48f..481a998 100644
--- a/modules/lang.c
+++ b/modules/lang.c
@@ -23,6 +23,7 @@
 
 #include "lang.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include <glib.h>
 #include <jsapi.h>
diff --git a/modules/mainloop.c b/modules/mainloop.c
index 7208e45..d0df03f 100644
--- a/modules/mainloop.c
+++ b/modules/mainloop.c
@@ -23,6 +23,7 @@
 
 #include "mainloop.h"
 #include <gjs/gjs.h>
+#include <gjs/compat.h>
 
 #include "../gi/closure.h"
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]