Cleaned up std includes because std is no longer private to fs.
This commit is contained in:
@@ -7,8 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <ox/std/_memops.hpp>
|
#include <ox/std/std.hpp>
|
||||||
#include <ox/std/_types.hpp>
|
|
||||||
|
|
||||||
namespace ox {
|
namespace ox {
|
||||||
namespace fs {
|
namespace fs {
|
||||||
|
|||||||
@@ -7,9 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <ox/std/_memops.hpp>
|
#include <ox/std/std.hpp>
|
||||||
#include <ox/std/_strops.hpp>
|
|
||||||
#include <ox/std/_types.hpp>
|
|
||||||
#include "filestore.hpp"
|
#include "filestore.hpp"
|
||||||
|
|
||||||
namespace ox {
|
namespace ox {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/.
|
* 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>
|
#include <ox/fs/filestore.hpp>
|
||||||
|
|
||||||
using namespace ox::fs;
|
using namespace ox::fs;
|
||||||
|
|||||||
@@ -2,14 +2,16 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
add_library(
|
add_library(
|
||||||
OxStd
|
OxStd
|
||||||
_memops.cpp
|
memops.cpp
|
||||||
_strops.cpp
|
strops.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
FILES
|
FILES
|
||||||
_memops.hpp
|
memops.hpp
|
||||||
_strops.hpp
|
strops.hpp
|
||||||
|
std.hpp
|
||||||
|
types.hpp
|
||||||
DESTINATION
|
DESTINATION
|
||||||
include/ox/std
|
include/ox/std
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
Reference in New Issue
Block a user