Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.12)
if (MSVC)
set (CMAKE_SYSTEM_VERSION 10.0.22000.0)
endif (MSVC)
project (LowLevel VERSION 3.18.1.7 DESCRIPTION "Low Level Structures Library")
project (LowLevel VERSION 3.18.1.8 DESCRIPTION "Low Level Structures Library")

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 11)
Expand Down Expand Up @@ -31,15 +31,19 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG -DDEBUG")
add_library(LowLevel STATIC
cpp/AfxIniSettings.cpp
cpp/colors.c
cpp/comcodes.cpp
cpp/convert.cpp
cpp/cpoints.cpp
cpp/Dlgcnvt.cpp
cpp/Exprtopt.cpp
cpp/hresult.cpp
cpp/htree.cpp
cpp/linklist.cpp
cpp/linklist.noclang.cpp
cpp/misc.c
cpp/objectcache.cpp
cpp/pevents.cpp
cpp/propsysreplacement.cpp
cpp/str_printf.cpp
cpp/tstring.cpp
cpp/validation_object.cpp
Expand Down Expand Up @@ -84,6 +88,7 @@ set_target_properties(LowLevel PROPERTIES
PUBLIC_HEADER include/boost_compression.h
PUBLIC_HEADER include/boost_ll_config.h
PUBLIC_HEADER include/colors.h
PUBLIC_HEADER include/comcodes.h
PUBLIC_HEADER include/cpoints.h
PUBLIC_HEADER include/COMInit.h
PUBLIC_HEADER include/ConversionFactors.h
Expand All @@ -105,6 +110,8 @@ set_target_properties(LowLevel PROPERTIES
PUBLIC_HEADER include/objectcache.inl
PUBLIC_HEADER include/out_helper.h
PUBLIC_HEADER include/propagate_const.h
PUBLIC_HEADER include/propsysreplacement.h
PUBLIC_HEADER include/StatsConfig.h
PUBLIC_HEADER include/stdchar.h
PUBLIC_HEADER include/str_printf.h
PUBLIC_HEADER include/tstring.h
Expand Down
2 changes: 1 addition & 1 deletion cpp/AfxIniSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <sys/types.h>
#include "filesystem.hpp"

#include "boost/property_tree/info_parser.hpp"
#include <boost/property_tree/info_parser.hpp>

namespace tree = boost::property_tree;

Expand Down
360 changes: 360 additions & 0 deletions cpp/Dlgcnvt.cpp

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions cpp/comcodes.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// ComCodes.cpp
//
// Started: March 24, 2006
// Last Modified: September 19, 2006
// By Robert W. Bryce

#include "hresult.h"
#include <errno.h>
#ifdef _MSC_VER
#include <winerror.h>
#endif
#include "comcodes.h"


HRESULT ComError(int _errno_) {
switch (_errno_) {
case EACCES: return ERROR_ACCESS_DENIED | ERROR_SEVERITY_WARNING;
case EBADF: return ERROR_INVALID_HANDLE | ERROR_SEVERITY_WARNING;
case EEXIST: return ERROR_FILE_EXISTS | ERROR_SEVERITY_WARNING;
case EINVAL: return ERROR_INVALID_PARAMETER | ERROR_SEVERITY_WARNING;
case EMFILE: return ERROR_TOO_MANY_OPEN_FILES | ERROR_SEVERITY_WARNING;
case ENOENT: return ERROR_FILE_NOT_FOUND | ERROR_SEVERITY_WARNING;
case ENOMEM: return E_OUTOFMEMORY;
case ENOSPC: return ERROR_HANDLE_DISK_FULL | ERROR_SEVERITY_WARNING;
}
return ERROR_SEVERITY_WARNING; // failure but not exactly sure why...
}
2 changes: 1 addition & 1 deletion cpp/cpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ If using in your applications, please mention author in credits for your app.
class CRenderTarget;
#include <afx.h>
#endif
#if defined(__INTEL_COMPILER) || defined(__INTEL_LLVM_COMPILER)
#include "intel_check.h"
#if __has_include(<mathimf.h>)
#include <mathimf.h>
#else
#include <cmath>
Expand Down
Loading