diff --git a/src/ParseExp.cpp b/src/ParseExp.cpp
index e51b553..9f1d157 100644
--- a/src/ParseExp.cpp
+++ b/src/ParseExp.cpp
@@ -66,7 +66,7 @@ enum {DOUBLE_POINTED=1, INVALID_CHAR, INVALID_PARENTHESIS, INVALID_OPERATION};
#define P(x)
#endif
-double atof(char* s, int size)
+static double atof(char* s, int size)
{
int neg = 0;
double res = 0;
@@ -94,7 +94,7 @@ double atof(char* s, int size)
return res;
}
-void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
+void ParseExp::ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
{
char* temp;
bool pointed = false;
@@ -256,7 +256,7 @@ void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
return ;
}
-double EvaluateExpr(struct parse_opt* root, bool del)
+double ParseExp::EvaluateExpr(struct parse_opt* root, bool del)
{
double l, r;
char type;
@@ -304,6 +304,7 @@ double EvaluateExpr(struct parse_opt* root, bool del)
}
#ifdef DEBUG
+using namespace ParseExp;
int main()
{
diff --git a/src/ParseExp.h b/src/ParseExp.h
index 41bb170..a6e42c8 100644
--- a/src/ParseExp.h
+++ b/src/ParseExp.h
@@ -17,6 +17,8 @@
along with KissCount. If not, see .
*/
+namespace ParseExp {
+
struct parse_opt {
struct parse_opt* root;
char type;
@@ -27,3 +29,5 @@ struct parse_opt {
void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis);
double EvaluateExpr(struct parse_opt* root, bool del);
+
+};
diff --git a/src/controller/KissCount.cpp b/src/controller/KissCount.cpp
index fcfc8e7..3029b3e 100644
--- a/src/controller/KissCount.cpp
+++ b/src/controller/KissCount.cpp
@@ -17,7 +17,13 @@
along with KissCount. If not, see .
*/
+#include
+#include
+#include
+
#include "KissCount.h"
+
+#include
std::vector * KissCount::_importEngines;
std::vector * KissCount::_exportEngines;
diff --git a/src/controller/KissCount.h b/src/controller/KissCount.h
index 98eb08f..1ae0554 100644
--- a/src/controller/KissCount.h
+++ b/src/controller/KissCount.h
@@ -20,17 +20,16 @@
#ifndef KISSCOUNT_H
#define KISSCOUNT_H
-#include
-#include
#include
#include
#include
#include
-#include
#include
+#include
+
#define APP_VERSION "0.3"
#define ESCAPE_CHARS(s) { \
diff --git a/src/main.cpp b/src/main.cpp
index 5d211be..f53c439 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -17,7 +17,8 @@
along with KissCount. If not, see .
*/
-#include "main.h"
+#include
+#include
class MyApp: public wxApp
{
diff --git a/src/main.h b/src/main.h
deleted file mode 100644
index 68b9370..0000000
--- a/src/main.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- Copyright 2010-2011 Grégory Soutadé
-
- This file is part of KissCount.
-
- KissCount is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- KissCount is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with KissCount. If not, see .
-*/
-
-#ifndef MAIN_H
-#define MAIN_H
-
-#include
-#include
-
-#endif
diff --git a/src/model/Database.cpp b/src/model/Database.cpp
index dba7158..9198f08 100644
--- a/src/model/Database.cpp
+++ b/src/model/Database.cpp
@@ -17,6 +17,11 @@
along with KissCount. If not, see .
*/
+#include
+#include
+#include
+#include
+
#include "Database.h"
static inline wxString DoubleToString(double d)
diff --git a/src/model/Database.h b/src/model/Database.h
index 68488ba..0619387 100644
--- a/src/model/Database.h
+++ b/src/model/Database.h
@@ -20,15 +20,9 @@
#ifndef DATABASE_H
#define DATABASE_H
-#include
-#include
#include
#include
#include
-#include
-#include
-#include
-#include
#include
#include "model.h"
diff --git a/src/model/User.cpp b/src/model/User.cpp
index c897644..7dcf688 100644
--- a/src/model/User.cpp
+++ b/src/model/User.cpp
@@ -17,6 +17,8 @@
along with KissCount. If not, see .
*/
+#include
+#include
#include "User.h"
User::User(Database* db) : _db(db)
diff --git a/src/model/User.h b/src/model/User.h
index c13c4c5..e58cf12 100644
--- a/src/model/User.h
+++ b/src/model/User.h
@@ -23,7 +23,6 @@
#include