Cleaned up std includes because std is no longer private to fs.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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