Cleaned up std includes because std is no longer private to fs.

This commit is contained in:
2016-06-25 18:49:39 -05:00
parent 1c428aa1f3
commit d61ff44910
10 changed files with 50 additions and 10 deletions
+1 -2
View File
@@ -7,8 +7,7 @@
*/
#pragma once
#include <ox/std/_memops.hpp>
#include <ox/std/_types.hpp>
#include <ox/std/std.hpp>
namespace ox {
namespace fs {
+1 -3
View File
@@ -7,9 +7,7 @@
*/
#pragma once
#include <ox/std/_memops.hpp>
#include <ox/std/_strops.hpp>
#include <ox/std/_types.hpp>
#include <ox/std/std.hpp>
#include "filestore.hpp"
namespace ox {
+1 -1
View File
@@ -5,7 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <ox/std/_strops.hpp>
#include <ox/std/std.hpp>
#include <ox/fs/filestore.hpp>
using namespace ox::fs;
+6 -4
View File
@@ -2,14 +2,16 @@ cmake_minimum_required(VERSION 2.8)
add_library(
OxStd
_memops.cpp
_strops.cpp
memops.cpp
strops.cpp
)
install(
FILES
_memops.hpp
_strops.hpp
memops.hpp
strops.hpp
std.hpp
types.hpp
DESTINATION
include/ox/std
)
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright 2015 - 2016 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "memops.hpp"
namespace ox {
namespace std {
void memcpy(void *dest, void *src, int size) {
char *srcBuf = (char*) src;
char *dstBuf = (char*) dest;
for (int i = 0; i < size; i++) {
dstBuf[i] = (char) srcBuf[i];
}
}
void memset(void *ptr, char val, int size) {
char *buf = (char*) ptr;
for (int i = 0; i < size; i++) {
buf[i] = val;
}
}
}
}
+12
View File
@@ -0,0 +1,12 @@
/*
* Copyright 2015 - 2016 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "memops.hpp"
#include "strops.hpp"
#include "types.hpp"