From 79f870896e74b27bd093dca36b90e5ea3182ce92 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Fri, 19 Sep 2008 00:06:43 +0000 Subject: [PATCH] more svn:eol-style = native and header fixes SVN-Revision: 5778 --- src/addon/addon.cpp | 3 +++ src/addon/addon.hpp | 8 ++++---- src/addon/addon_manager.cpp | 8 +++++--- src/addon/md5.hpp | 5 +++++ src/object/lantern.hpp | 2 +- src/object/magicblock.hpp | 4 ++-- src/object/pushbutton.hpp | 4 ++-- src/scripting/camera.hpp | 1 + src/scripting/squirrel_util.cpp | 2 +- src/tinygettext/findlocale.cpp | 2 +- 10 files changed, 25 insertions(+), 14 deletions(-) diff --git a/src/addon/addon.cpp b/src/addon/addon.cpp index 4e8c9f6f6..377116140 100644 --- a/src/addon/addon.cpp +++ b/src/addon/addon.cpp @@ -23,6 +23,9 @@ #include #include #include +#include "lisp/lisp.hpp" +#include "lisp/writer.hpp" +#include "lisp/parser.hpp" #include "addon/addon.hpp" #include "addon/addon_manager.hpp" #include "log.hpp" diff --git a/src/addon/addon.hpp b/src/addon/addon.hpp index a63043581..a07be26de 100644 --- a/src/addon/addon.hpp +++ b/src/addon/addon.hpp @@ -23,11 +23,11 @@ #include #include -#include "lisp/parser.hpp" -#include "lisp/lisp.hpp" -#include "lisp/writer.hpp" -class Addon; +namespace lisp { +class Writer; +class Lisp; +} #include "addon/addon_manager.hpp" diff --git a/src/addon/addon_manager.cpp b/src/addon/addon_manager.cpp index cf7ab809e..9d45ae9b1 100644 --- a/src/addon/addon_manager.cpp +++ b/src/addon/addon_manager.cpp @@ -28,17 +28,19 @@ #include #include #include "addon/addon_manager.hpp" +#include "addon/addon.hpp" #include "config.h" #include "log.hpp" #include "lisp/parser.hpp" #include "lisp/lisp.hpp" #include "lisp/list_iterator.hpp" +#include "lisp/writer.hpp" #include "physfs/physfs_stream.hpp" #ifdef HAVE_LIBCURL -#include -#include -#include +#include +#include +#include #endif #ifdef HAVE_LIBCURL diff --git a/src/addon/md5.hpp b/src/addon/md5.hpp index 6d1e9216f..f6aa930d0 100644 --- a/src/addon/md5.hpp +++ b/src/addon/md5.hpp @@ -41,6 +41,9 @@ // documentation and/or software. // +#ifndef SUPERTUX_ADDON_MD5_HPP +#define SUPERTUX_ADDON_MD5_HPP + #include #include #include @@ -92,3 +95,5 @@ class MD5 { static inline void II(uint32_t& a, uint32_t b, uint32_t c, uint32_t d, uint32_t x, uint32_t s, uint32_t ac); }; + +#endif /*SUPERTUX_ADDON_MD5_HPP*/ diff --git a/src/object/lantern.hpp b/src/object/lantern.hpp index b8498a3db..7daed4ba1 100644 --- a/src/object/lantern.hpp +++ b/src/object/lantern.hpp @@ -18,7 +18,7 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef __SUPERTUX_LANTERN_H__ -#define __SUPERTUX_LANTERN_H___ +#define __SUPERTUX_LANTERN_H__ #include "object/moving_sprite.hpp" #include "object/rock.hpp" diff --git a/src/object/magicblock.hpp b/src/object/magicblock.hpp index 64d9add1a..43b0a18a9 100644 --- a/src/object/magicblock.hpp +++ b/src/object/magicblock.hpp @@ -24,8 +24,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef SUPERTUX_TRAMPOLINE_H -#define SUPERTUX_TRAMPOLINE_H +#ifndef SUPERTUX_MAGICBLOCK_H +#define SUPERTUX_MAGICBLOCK_H #include "moving_sprite.hpp" #include "lisp/lisp.hpp" diff --git a/src/object/pushbutton.hpp b/src/object/pushbutton.hpp index 55f3fc792..a615e8500 100644 --- a/src/object/pushbutton.hpp +++ b/src/object/pushbutton.hpp @@ -17,8 +17,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef SUPERTUX_BUTTON_H -#define SUPERTUX_BUTTON_H +#ifndef SUPERTUX_PUSHBUTTON_H +#define SUPERTUX_PUSHBUTTON_H #include "moving_sprite.hpp" #include "lisp/lisp.hpp" diff --git a/src/scripting/camera.hpp b/src/scripting/camera.hpp index 558c207b8..9d65cf366 100644 --- a/src/scripting/camera.hpp +++ b/src/scripting/camera.hpp @@ -23,6 +23,7 @@ #ifndef SCRIPTING_API class Camera; typedef Camera _Camera; +#include #endif namespace Scripting diff --git a/src/scripting/squirrel_util.cpp b/src/scripting/squirrel_util.cpp index e25887df6..a5b1c1dda 100644 --- a/src/scripting/squirrel_util.cpp +++ b/src/scripting/squirrel_util.cpp @@ -31,7 +31,7 @@ #include "log.hpp" #include "level.hpp" #include "physfs/physfs_stream.hpp" -#include "../random_generator.hpp" +#include "random_generator.hpp" #ifdef ENABLE_SQDBG #include diff --git a/src/tinygettext/findlocale.cpp b/src/tinygettext/findlocale.cpp index dbcb961e1..2042b40bf 100644 --- a/src/tinygettext/findlocale.cpp +++ b/src/tinygettext/findlocale.cpp @@ -182,7 +182,7 @@ canonize_fl(FL_Locale *l) { #define RML(pn,sn) MAKELANGID(LANG_##pn, SUBLANG_##sn) typedef struct { LANGID id; - char* code; + const char* code; } IDToCode; static const IDToCode both_to_code[] = { {ML(ENGLISH,US), "en_US.ISO_8859-1"}, -- 2.11.0