From bdeaac64ec3b5c260733f84e25c65502b8f5ad01 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Thu, 24 Oct 2013 20:44:52 +0200 Subject: Minor header file reorganization --- src/uscxml/Interpreter.h | 3 +-- src/uscxml/server/HTTPServer.cpp | 14 +++++++++----- src/uscxml/server/HTTPServer.h | 15 +++++++++------ test/src/test-cmdline-parsing.cpp | 2 ++ test/src/test-stress.cpp | 1 + test/src/test-w3c.cpp | 2 ++ 6 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h index 25c89a2..eaedeb1 100644 --- a/src/uscxml/Interpreter.h +++ b/src/uscxml/Interpreter.h @@ -26,8 +26,7 @@ #include "uscxml/URL.h" -#include - +#include #include #include #include diff --git a/src/uscxml/server/HTTPServer.cpp b/src/uscxml/server/HTTPServer.cpp index 9432c56..ce403ee 100644 --- a/src/uscxml/server/HTTPServer.cpp +++ b/src/uscxml/server/HTTPServer.cpp @@ -25,8 +25,6 @@ #endif #include "uscxml/server/HTTPServer.h" -#include "uscxml/Message.h" -#include "uscxml/Factory.h" #include #include @@ -35,7 +33,6 @@ extern "C" { #include #include #include -#include #include #include #include @@ -45,8 +42,12 @@ extern "C" { #include #ifndef _WIN32 -#include -#include +#include // for INADDR_ANY +#include // for uint16_t +#include // for NULL, free +#include // for gethostname +//#include +//#include #endif #if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND) @@ -57,6 +58,9 @@ extern "C" { #include #endif +#include "uscxml/Message.h" +#include "uscxml/Convenience.h" // for toStr + #ifdef BUILD_AS_PLUGINS #include #endif diff --git a/src/uscxml/server/HTTPServer.h b/src/uscxml/server/HTTPServer.h index 0b82947..581181c 100644 --- a/src/uscxml/server/HTTPServer.h +++ b/src/uscxml/server/HTTPServer.h @@ -20,17 +20,20 @@ #ifndef HTTPSERVER_H_AIH108EG #define HTTPSERVER_H_AIH108EG -#include -#include +#include // for NULL -#include "uscxml/Common.h" +#include // for map, map<>::iterator, etc +#include // for string, operator< extern "C" { -#include +#include "event2/util.h" // for evutil_socket_t +#include // for evhttp_request } -#include "uscxml/concurrency/tinythread.h" -#include "uscxml/Message.h" +#include "uscxml/Common.h" // for USCXML_API +#include "uscxml/Message.h" // for Data, Event +#include "uscxml/concurrency/tinythread.h" // for recursive_mutex, etc +#include "uscxml/config.h" // for OPENSSL_FOUND namespace uscxml { diff --git a/test/src/test-cmdline-parsing.cpp b/test/src/test-cmdline-parsing.cpp index a610248..25ffb44 100644 --- a/test/src/test-cmdline-parsing.cpp +++ b/test/src/test-cmdline-parsing.cpp @@ -2,6 +2,8 @@ #include "uscxml/Interpreter.h" #include +#include + int main(int argc, char** argv) { using namespace uscxml; diff --git a/test/src/test-stress.cpp b/test/src/test-stress.cpp index 4f15bc3..996e0ee 100644 --- a/test/src/test-stress.cpp +++ b/test/src/test-stress.cpp @@ -3,6 +3,7 @@ #include #include "uscxml/plugins/invoker/filesystem/dirmon/DirMonInvoker.h" +#include #ifdef HAS_SIGNAL_H #include diff --git a/test/src/test-w3c.cpp b/test/src/test-w3c.cpp index 768f6be..f99e969 100644 --- a/test/src/test-w3c.cpp +++ b/test/src/test-w3c.cpp @@ -1,6 +1,7 @@ #include "uscxml/config.h" #include "uscxml/Interpreter.h" #include +#include #ifdef HAS_SIGNAL_H #include @@ -18,6 +19,7 @@ #include "XGetopt.h" #endif + #ifdef HAS_EXECINFO_H void printBacktrace(void** array, int size) { char** messages = backtrace_symbols(array, size); -- cgit v0.12