From 9447967f12ca080eb8027d335136bb9b8054fe08 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 12 Mar 2018 20:12:23 -0500 Subject: [PATCH] Fully instantiate old FileStore and FileSystem --- deps/ox/src/ox/fs/filestore.cpp | 17 +++++++++++++++++ deps/ox/src/ox/fs/filestore.hpp | 4 ++++ .../src/ox/fs/filesystem/filesystemtemplate.hpp | 4 ++++ 3 files changed, 25 insertions(+) create mode 100644 deps/ox/src/ox/fs/filestore.cpp diff --git a/deps/ox/src/ox/fs/filestore.cpp b/deps/ox/src/ox/fs/filestore.cpp new file mode 100644 index 00000000..8c52ab5c --- /dev/null +++ b/deps/ox/src/ox/fs/filestore.cpp @@ -0,0 +1,17 @@ +/* + * Copyright 2015 - 2018 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 "filestore.hpp" + +namespace ox { + +template class FileStore>; +template class FileStore>; +template class FileStore>; + +} diff --git a/deps/ox/src/ox/fs/filestore.hpp b/deps/ox/src/ox/fs/filestore.hpp index 2ec0bcbe..a3760eaf 100644 --- a/deps/ox/src/ox/fs/filestore.hpp +++ b/deps/ox/src/ox/fs/filestore.hpp @@ -916,6 +916,10 @@ uint8_t *FileStore
::format(uint8_t *buffer, typename Header::FsSize_t si return (uint8_t*) buffer; } +extern template class FileStore>; +extern template class FileStore>; +extern template class FileStore>; + typedef FileStore> FileStore16; typedef FileStore> FileStore32; typedef FileStore> FileStore64; diff --git a/deps/ox/src/ox/fs/filesystem/filesystemtemplate.hpp b/deps/ox/src/ox/fs/filesystem/filesystemtemplate.hpp index 54433cc9..f7b4bec9 100644 --- a/deps/ox/src/ox/fs/filesystem/filesystemtemplate.hpp +++ b/deps/ox/src/ox/fs/filesystem/filesystemtemplate.hpp @@ -620,6 +620,10 @@ void FileSystemTemplate::walk(int(*cb)(const char*, uint64_t m_store->walk(cb); } +extern template class FileSystemTemplate; +extern template class FileSystemTemplate; +extern template class FileSystemTemplate; + typedef FileSystemTemplate FileSystem16; typedef FileSystemTemplate FileSystem32; typedef FileSystemTemplate FileSystem64;