Permalink
Browse files

Renamed files to a c++ convention

  • Loading branch information...
1 parent 87addce commit a103f3304e5fcff2d45b6ddd8661c47e88a8572b @udoprog committed Nov 10, 2010
View
@@ -8,7 +8,8 @@ set(C10T_VERSION "SNAPSHOT" CACHE STRING "C10t Version String")
set(C10T_SITE "http://github.com/udoprog/c10t")
set(C10T_CONTACT "Udoprog <johnjohn.tedro@gmail.com> et. al (see README)")
-configure_file(${CMAKE_SOURCE_DIR}/src/config.h.cmake ${CMAKE_BINARY_DIR}/src/config.h)
+configure_file(${CMAKE_SOURCE_DIR}/src/config.hpp.cmake
+ ${CMAKE_BINARY_DIR}/src/config.hpp)
include_directories(${CMAKE_BINARY_DIR}/src)
# output the binary to the build directory instead of in src/
File renamed without changes.
View
@@ -1,6 +1,6 @@
// Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
-#include "blocks.h"
+#include "blocks.hpp"
const int mc::MapX = 0x10;
const int mc::MapZ = 0x10;
File renamed without changes.
File renamed without changes.
View
@@ -1,6 +1,6 @@
// Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
-#include "common.h"
+#include "common.hpp"
#include <sstream>
#include <vector>
File renamed without changes.
File renamed without changes.
@@ -3,8 +3,8 @@
#include <boost/shared_ptr.hpp>
-#include "level.h"
-#include "world.h"
+#include "level.hpp"
+#include "world.hpp"
class engine_base {
protected:
View
@@ -1,5 +1,5 @@
// Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
-#include "fileutils.h"
+#include "fileutils.hpp"
File renamed without changes.
@@ -12,7 +12,7 @@
#include <string>
#include <set>
-#include "blocks.h"
+#include "blocks.hpp"
#include "image/color.hpp"
namespace fs = boost::filesystem;
View
@@ -8,7 +8,7 @@
#include "image/image_operations.hpp"
#include "image/color.hpp"
-#include "2d/cube.h"
+#include "2d/cube.hpp"
class image_base {
protected:
View
@@ -1,4 +1,4 @@
-#include "json.h"
+#include "json.hpp"
/*#include <iostream>
@@ -7,7 +7,7 @@
#include <ostream>
-#include "utf8.h"
+#include "utf8.hpp"
namespace json {
enum object_type {
View
@@ -2,12 +2,12 @@
// (C) Copyright 2010 John-John Tedro et al.
#include <assert.h>
-#include "global.h"
+#include "global.hpp"
-#include "level.h"
-#include "blocks.h"
-#include "2d/cube.h"
-#include "common.h"
+#include "level.hpp"
+#include "blocks.hpp"
+#include "2d/cube.hpp"
+#include "common.hpp"
#include "algorithm.hpp"
#include <boost/algorithm/string.hpp>
@@ -3,7 +3,7 @@
#ifndef _LEVEL_H_
#define _LEVEL_H_
-#include "global.h"
+#include "global.hpp"
#include <iostream>
#include <fstream>
@@ -16,11 +16,11 @@
#include <time.h>
#include <vector>
-#include "nbt/nbt.h"
+#include "nbt/nbt.hpp"
-#include "global.h"
-#include "blocks.h"
-#include "marker.h"
+#include "global.hpp"
+#include "blocks.hpp"
+#include "marker.hpp"
#include <boost/filesystem.hpp>
#include <boost/scoped_ptr.hpp>
View
@@ -21,22 +21,22 @@
#include <boost/tokenizer.hpp>
#include <boost/lexical_cast.hpp>
-#include "config.h"
-
-#include "threads/threadworker.h"
-#include "2d/cube.h"
-
-#include "global.h"
-#include "level.h"
-#include "cache.h"
-#include "blocks.h"
-#include "fileutils.h"
-#include "world.h"
-#include "players.h"
-#include "text.h"
-#include "marker.h"
-#include "json.h"
-#include "warps.h"
+#include "config.hpp"
+
+#include "threads/threadworker.hpp"
+#include "2d/cube.hpp"
+
+#include "global.hpp"
+#include "level.hpp"
+#include "cache.hpp"
+#include "blocks.hpp"
+#include "fileutils.hpp"
+#include "world.hpp"
+#include "players.hpp"
+#include "text.hpp"
+#include "marker.hpp"
+#include "json.hpp"
+#include "warps.hpp"
#include "image/image_base.hpp"
#include "image/memory_image.hpp"
@@ -3,7 +3,7 @@
#include <string>
-#include "text.h"
+#include "text.hpp"
struct marker {
public:
View
@@ -1,6 +1,6 @@
// Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
-#include "nbt.h"
+#include "nbt.hpp"
bool nbt::is_big_endian() {
int32_t i = 1;
File renamed without changes.
View
@@ -1,6 +1,6 @@
// Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
-#include "nbt/nbt.h"
+#include "nbt/nbt.hpp"
#include <iostream>
#include <iomanip>
View
@@ -1,6 +1,6 @@
// Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
-#include "players.h"
+#include "players.hpp"
void error_handler(player *p, size_t where, const char* why) {
p->grammar_error = true;
@@ -11,8 +11,8 @@
#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
-#include "global.h"
-#include "nbt/nbt.h"
+#include "global.hpp"
+#include "nbt/nbt.hpp"
namespace fs = boost::filesystem;
View
@@ -1,4 +1,4 @@
// Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
-#include "text.h"
+#include "text.hpp"
@@ -14,7 +14,7 @@
namespace fs = boost::filesystem;
#include "image/image_base.hpp"
-#include "utf8.h"
+#include "utf8.hpp"
#include <assert.h>
#include <iostream>
File renamed without changes.
View
@@ -3,7 +3,7 @@
* If you find it useful i would like to be given a notice as the original author.
* Please contact me at: johnjohn.tedro@gmail.com
*/
-#include "utf8.h"
+#include "utf8.hpp"
#include <stdlib.h>
#include <stdio.h>
File renamed without changes.
View
@@ -1,4 +1,4 @@
-#include "warps.h"
+#include "warps.hpp"
#include <iostream>
#include <fstream>
#include <boost/algorithm/string.hpp>
@@ -49,4 +49,4 @@ warps_db::warps_db(settings_t& s)
warps.push_back(w);
}
fp.close();
-}
+}
@@ -9,8 +9,8 @@
#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
-#include "global.h"
-#include "nbt/nbt.h"
+#include "global.hpp"
+#include "nbt/nbt.hpp"
namespace fs = boost::filesystem;
View
@@ -1,6 +1,6 @@
// Distributed under the BSD License, see accompanying LICENSE.txt
// (C) Copyright 2010 John-John Tedro et al.
-#include "world.h"
+#include "world.hpp"
void transform_world_xz(int& x, int& z, int rotation)
{
@@ -15,10 +15,10 @@
#include <boost/filesystem.hpp>
#include <boost/ptr_container/ptr_map.hpp>
-#include "fileutils.h"
-#include "global.h"
-#include "common.h"
-#include "level.h"
+#include "fileutils.hpp"
+#include "global.hpp"
+#include "common.hpp"
+#include "level.hpp"
namespace fs = boost::filesystem;
View
@@ -1,6 +1,6 @@
-#include "color.h"
-#include "image.h"
-#include "2d/cube.h"
+#include "color.hpp"
+#include "image.hpp"
+#include "2d/cube.hpp"
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE c10t_tests

0 comments on commit a103f33

Please sign in to comment.