From b92f32ea01fa668de416170f8ae657291a29feb4 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 4 May 2011 12:55:00 +0100 Subject: [PATCH 1/3] Consistently include config.h in all non-generated .c files --- dbus/dbus-gidl.c | 2 ++ dbus/dbus-gloader-expat.c | 2 ++ dbus/dbus-gparser.c | 3 +++ dbus/dbus-gproxy.c | 3 +++ dbus/dbus-gthread.c | 2 ++ dbus/dbus-gtype-specialized.c | 2 ++ dbus/dbus-gvalue-parse-variant.c | 2 ++ dbus/examples/example-client.c | 2 ++ dbus/examples/example-service.c | 2 ++ dbus/examples/example-signal-emitter.c | 2 ++ dbus/examples/example-signal-recipient.c | 2 ++ dbus/examples/statemachine/statemachine-client.c | 2 ++ dbus/examples/statemachine/statemachine-server.c | 2 ++ dbus/examples/statemachine/statemachine.c | 2 ++ test/core/30574.c | 2 ++ test/core/5688.c | 2 ++ test/core/peer-client.c | 2 ++ test/core/peer-server.c | 2 ++ test/core/test-dbus-glib.c | 2 ++ test/core/test-gvariant.c | 2 ++ test/core/test-service-glib.c | 2 ++ test/core/test-thread-client.c | 2 ++ test/core/test-thread-server.c | 2 ++ test/core/test-types.c | 2 ++ test/core/test-variant-recursion.c | 2 ++ test/core/unregister.c | 2 ++ test/interfaces/test-client.c | 2 ++ test/interfaces/test-objects.c | 2 ++ test/interfaces/test-server.c | 2 ++ test/test-service.c | 2 ++ 30 files changed, 62 insertions(+), 0 deletions(-) diff --git a/dbus/dbus-gidl.c b/dbus/dbus-gidl.c index 6d93467..5d50ee7 100644 --- a/dbus/dbus-gidl.c +++ b/dbus/dbus-gidl.c @@ -22,6 +22,8 @@ * */ +#include + #include "dbus-gidl.h" #ifndef DOXYGEN_SHOULD_SKIP_THIS diff --git a/dbus/dbus-gloader-expat.c b/dbus/dbus-gloader-expat.c index 5804ef8..1c11e7b 100644 --- a/dbus/dbus-gloader-expat.c +++ b/dbus/dbus-gloader-expat.c @@ -21,6 +21,8 @@ * */ +#include + #include "dbus-gparser.h" #include #include diff --git a/dbus/dbus-gparser.c b/dbus/dbus-gparser.c index 87e156d..1b06c76 100644 --- a/dbus/dbus-gparser.c +++ b/dbus/dbus-gparser.c @@ -20,6 +20,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ + +#include + #include "dbus-gparser.h" #include "dbus/dbus-glib-lowlevel.h" #include "dbus-gidl.h" diff --git a/dbus/dbus-gproxy.c b/dbus/dbus-gproxy.c index c683b44..102610d 100644 --- a/dbus/dbus-gproxy.c +++ b/dbus/dbus-gproxy.c @@ -21,6 +21,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ + +#include + #include #include #include diff --git a/dbus/dbus-gthread.c b/dbus/dbus-gthread.c index 201a715..6d430ef 100644 --- a/dbus/dbus-gthread.c +++ b/dbus/dbus-gthread.c @@ -21,6 +21,8 @@ * */ +#include + /* #define G_DEBUG_LOCKS 1 */ #include diff --git a/dbus/dbus-gtype-specialized.c b/dbus/dbus-gtype-specialized.c index e1678cb..4964c4b 100644 --- a/dbus/dbus-gtype-specialized.c +++ b/dbus/dbus-gtype-specialized.c @@ -22,6 +22,8 @@ * */ +#include + #include "dbus-glib.h" #include "dbus-gtype-specialized-priv.h" #include "dbus-gvalue-utils.h" diff --git a/dbus/dbus-gvalue-parse-variant.c b/dbus/dbus-gvalue-parse-variant.c index a5a5781..3829d7c 100644 --- a/dbus/dbus-gvalue-parse-variant.c +++ b/dbus/dbus-gvalue-parse-variant.c @@ -25,6 +25,8 @@ * */ +#include + #include #include diff --git a/dbus/examples/example-client.c b/dbus/examples/example-client.c index dac1f82..fe310fd 100644 --- a/dbus/examples/example-client.c +++ b/dbus/examples/example-client.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/dbus/examples/example-service.c b/dbus/examples/example-service.c index a66855c..19d2efd 100644 --- a/dbus/examples/example-service.c +++ b/dbus/examples/example-service.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/dbus/examples/example-signal-emitter.c b/dbus/examples/example-signal-emitter.c index c60865d..0693dff 100644 --- a/dbus/examples/example-signal-emitter.c +++ b/dbus/examples/example-signal-emitter.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/dbus/examples/example-signal-recipient.c b/dbus/examples/example-signal-recipient.c index 86ba4c7..0ebd2d0 100644 --- a/dbus/examples/example-signal-recipient.c +++ b/dbus/examples/example-signal-recipient.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/dbus/examples/statemachine/statemachine-client.c b/dbus/examples/statemachine/statemachine-client.c index 88b2184..f0b0457 100644 --- a/dbus/examples/statemachine/statemachine-client.c +++ b/dbus/examples/statemachine/statemachine-client.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/dbus/examples/statemachine/statemachine-server.c b/dbus/examples/statemachine/statemachine-server.c index 8bea307..b92cb0e 100644 --- a/dbus/examples/statemachine/statemachine-server.c +++ b/dbus/examples/statemachine/statemachine-server.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/dbus/examples/statemachine/statemachine.c b/dbus/examples/statemachine/statemachine.c index c1d4b5d..239d38c 100644 --- a/dbus/examples/statemachine/statemachine.c +++ b/dbus/examples/statemachine/statemachine.c @@ -1,3 +1,5 @@ +#include + #include #include #include "statemachine.h" diff --git a/test/core/30574.c b/test/core/30574.c index bdfe15f..3cbe1b5 100644 --- a/test/core/30574.c +++ b/test/core/30574.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/test/core/5688.c b/test/core/5688.c index c08240d..98f8fc1 100644 --- a/test/core/5688.c +++ b/test/core/5688.c @@ -35,6 +35,8 @@ * DEALINGS IN THE SOFTWARE. */ +#include + #include #include diff --git a/test/core/peer-client.c b/test/core/peer-client.c index b3f9874..95a7db4 100644 --- a/test/core/peer-client.c +++ b/test/core/peer-client.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/test/core/peer-server.c b/test/core/peer-server.c index f1aa860..7e59625 100644 --- a/test/core/peer-server.c +++ b/test/core/peer-server.c @@ -1,3 +1,5 @@ +#include + #include #include diff --git a/test/core/test-dbus-glib.c b/test/core/test-dbus-glib.c index f86cba9..be3e8d9 100644 --- a/test/core/test-dbus-glib.c +++ b/test/core/test-dbus-glib.c @@ -1,3 +1,5 @@ +#include + /* -*- mode: C; c-file-style: "gnu" -*- */ #include #include diff --git a/test/core/test-gvariant.c b/test/core/test-gvariant.c index e5de852..fc1406e 100644 --- a/test/core/test-gvariant.c +++ b/test/core/test-gvariant.c @@ -25,6 +25,8 @@ * */ +#include + #include #include diff --git a/test/core/test-service-glib.c b/test/core/test-service-glib.c index fad2473..3355890 100644 --- a/test/core/test-service-glib.c +++ b/test/core/test-service-glib.c @@ -1,3 +1,5 @@ +#include + /* -*- mode: C; c-file-style: "gnu" -*- */ #include /* NOTE - outside of D-BUS core this would be diff --git a/test/core/test-thread-client.c b/test/core/test-thread-client.c index 985e6d5..ef8a3ef 100644 --- a/test/core/test-thread-client.c +++ b/test/core/test-thread-client.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/test/core/test-thread-server.c b/test/core/test-thread-server.c index 90e3b29..578b66d 100644 --- a/test/core/test-thread-server.c +++ b/test/core/test-thread-server.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/test/core/test-types.c b/test/core/test-types.c index 5241a9f..c6c6dd3 100644 --- a/test/core/test-types.c +++ b/test/core/test-types.c @@ -1,3 +1,5 @@ +#include + #include #include #include diff --git a/test/core/test-variant-recursion.c b/test/core/test-variant-recursion.c index 93b64d3..4229c2b 100644 --- a/test/core/test-variant-recursion.c +++ b/test/core/test-variant-recursion.c @@ -1,3 +1,5 @@ +#include + /* -*- mode: C; c-file-style: "gnu" -*- */ #include #include diff --git a/test/core/unregister.c b/test/core/unregister.c index 0091444..1749cb1 100644 --- a/test/core/unregister.c +++ b/test/core/unregister.c @@ -35,6 +35,8 @@ * DEALINGS IN THE SOFTWARE. */ +#include + #include #include "my-object.h" diff --git a/test/interfaces/test-client.c b/test/interfaces/test-client.c index 9c254cc..ae974ae 100644 --- a/test/interfaces/test-client.c +++ b/test/interfaces/test-client.c @@ -1,3 +1,5 @@ +#include + #include #include #include "dbus/dbus-gparser.h" diff --git a/test/interfaces/test-objects.c b/test/interfaces/test-objects.c index 66b90a8..e82fa08 100644 --- a/test/interfaces/test-objects.c +++ b/test/interfaces/test-objects.c @@ -1,3 +1,5 @@ +#include + #include "test-objects.h" #include "test-interfaces.h" diff --git a/test/interfaces/test-server.c b/test/interfaces/test-server.c index fcf1b09..d9c1d91 100644 --- a/test/interfaces/test-server.c +++ b/test/interfaces/test-server.c @@ -1,3 +1,5 @@ +#include + #include #include "dbus/dbus-glib.h" #include "tools/dbus-glib-bindings.h" diff --git a/test/test-service.c b/test/test-service.c index 8a092c2..424bcd2 100644 --- a/test/test-service.c +++ b/test/test-service.c @@ -1,3 +1,5 @@ +#include + #include #include #include -- 1.7.5.1