Moved obstackpp.hpp to util/
authorgrumbel <grumbel@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Fri, 20 Nov 2009 03:33:58 +0000 (03:33 +0000)
committergrumbel <grumbel@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Fri, 20 Nov 2009 03:33:58 +0000 (03:33 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6065 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/lisp/parser.cpp
src/obstack/obstackpp.hpp [deleted file]
src/util/obstackpp.hpp [new file with mode: 0644]
src/video/drawing_context.cpp
src/video/gl/gl_lightmap.cpp

index 232cfc0..86609a6 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "lisp/lisp.hpp"
 #include "lisp/parser.hpp"
-#include "obstack/obstackpp.hpp"
+#include "util/obstackpp.hpp"
 #include "physfs/ifile_stream.hpp"
 #include "physfs/ifile_streambuf.hpp"
 #include "supertux/globals.hpp"
diff --git a/src/obstack/obstackpp.hpp b/src/obstack/obstackpp.hpp
deleted file mode 100644 (file)
index e73a247..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-//  SuperTux
-//  Copyright (C) 2007 Matthias Braun <matze@braunis.de>
-//
-//  This program 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.
-//
-//  This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
-
-#ifndef HEADER_SUPERTUX_OBSTACK_OBSTACKPP_HPP
-#define HEADER_SUPERTUX_OBSTACK_OBSTACKPP_HPP
-
-#include <obstack.h>
-
-inline void*
-operator new (size_t bytes, struct obstack& obst)
-{
-  return obstack_alloc(&obst, bytes);
-}
-
-inline void*
-operator new[] (size_t bytes, struct obstack& obst)
-{
-  return obstack_alloc(&obst, bytes);
-}
-
-static inline void* obstack_chunk_alloc(size_t size)
-{
-  return new char[size];
-}
-
-static inline void obstack_chunk_free(void* data)
-{
-  char* ptr = static_cast<char*> (data);
-  delete[] ptr;
-}
-
-#endif
-
-/* EOF */
diff --git a/src/util/obstackpp.hpp b/src/util/obstackpp.hpp
new file mode 100644 (file)
index 0000000..e73a247
--- /dev/null
@@ -0,0 +1,47 @@
+//  SuperTux
+//  Copyright (C) 2007 Matthias Braun <matze@braunis.de>
+//
+//  This program 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.
+//
+//  This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
+
+#ifndef HEADER_SUPERTUX_OBSTACK_OBSTACKPP_HPP
+#define HEADER_SUPERTUX_OBSTACK_OBSTACKPP_HPP
+
+#include <obstack.h>
+
+inline void*
+operator new (size_t bytes, struct obstack& obst)
+{
+  return obstack_alloc(&obst, bytes);
+}
+
+inline void*
+operator new[] (size_t bytes, struct obstack& obst)
+{
+  return obstack_alloc(&obst, bytes);
+}
+
+static inline void* obstack_chunk_alloc(size_t size)
+{
+  return new char[size];
+}
+
+static inline void obstack_chunk_free(void* data)
+{
+  char* ptr = static_cast<char*> (data);
+  delete[] ptr;
+}
+
+#endif
+
+/* EOF */
index 070cffb..d94ab64 100644 (file)
@@ -19,9 +19,9 @@
 
 #include "video/drawing_context.hpp"
 
-#include "obstack/obstackpp.hpp"
 #include "supertux/gameconfig.hpp"
 #include "supertux/globals.hpp"
+#include "util/obstackpp.hpp"
 #include "video/drawing_request.hpp"
 #include "video/lightmap.hpp"
 #include "video/renderer.hpp"
index 120aae6..4db7d0d 100644 (file)
 #include <physfs.h>
 #include <sstream>
 
-#include "obstack/obstackpp.hpp"
 #include "supertux/gameconfig.hpp"
 #include "supertux/globals.hpp"
-#include "video/lightmap.hpp"
+#include "util/obstackpp.hpp"
 #include "video/drawing_context.hpp"
 #include "video/drawing_request.hpp"
 #include "video/font.hpp"
 #include "video/gl/gl_surface_data.hpp"
 #include "video/gl/gl_texture.hpp"
 #include "video/glutil.hpp"
+#include "video/lightmap.hpp"
 #include "video/renderer.hpp"
 #include "video/surface.hpp"
 #include "video/texture_manager.hpp"