From 13bd35e020ef2508ab442a3fb5f02e875b76cdac Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 24 Jul 2014 18:16:08 +0200 Subject: [PATCH] Servatrice: add prototypes for local functions --- servatrice/src/main.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/servatrice/src/main.cpp b/servatrice/src/main.cpp index 37b750f4..c5bf9cde 100644 --- a/servatrice/src/main.cpp +++ b/servatrice/src/main.cpp @@ -37,6 +37,23 @@ RNG_Abstract *rng; ServerLogger *logger; QThread *loggerThread; +/* Prototypes */ + +void testRNG(); +void testHash(); +#if QT_VERSION < 0x050000 +void myMessageOutput(QtMsgType type, const char *msg); +void myMessageOutput2(QtMsgType type, const char *msg); +#else +void myMessageOutput(QtMsgType type, const QMessageLogContext &, const QString &msg); +void myMessageOutput2(QtMsgType type, const QMessageLogContext &, const QString &msg); +#endif +#ifdef Q_OS_UNIX +void sigSegvHandler(int sig); +#endif + +/* Implementations */ + void testRNG() { const int n = 500000;