22 Commits

Author SHA1 Message Date
bce73bc2ea Bump Copyright year
Signed-off-by: Simon Rozman <simon@rozman.si>
2024-01-06 10:54:53 +01:00
512451ec0e Support for C++17
Signed-off-by: Simon Rozman <simon@rozman.si>
2023-11-07 08:53:06 +01:00
db23a5a984 Bump copyright year
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-12-29 11:09:06 +01:00
3b110f7dc5 Update documentation
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-03-07 13:00:17 +01:00
b21f2efa91 Doxygen: Unify group definitions and add \files
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-03-07 10:10:16 +01:00
ad76305ce9 Remove deprecated methods
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-03-03 15:51:13 +01:00
24f11e5253 Deprecate helper methods of "smart-pointer" classes
The helper methods, which are so simple they merely assign the pointer/
handle to the class instance, were simply marked depreciated.

The helper methods, which require extra variable to store the output
pointer/handle before assigning it to the class instance, were replaced
with function overloads named by the original function helpers initially
wrapped. This allows easy porting of the legacy code to use WinStd
classes.

This commit also splits the helper functions to A and W (_UNICODE)
variants.

Signed-off-by: Simon Rozman <simon@rozman.si>
2022-03-02 15:26:27 +01:00
21c1bf5084 Doxygen: Address warnings
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-02-04 14:37:04 +01:00
921aa9f4e9 Discontinue forward declarations
They are pain to maintain. We'll use them only if really needed (cyclic
dependencies).

Signed-off-by: Simon Rozman <simon@rozman.si>
2022-02-04 13:06:34 +01:00
04c2f9b9c3 Reuse free_internal() when destructing the handle<> implementations
Depending on the settings, compiler inlines the free_internal() call
inside the destructor. No need to copy&paste code.

Signed-off-by: Simon Rozman <simon@rozman.si>
2022-02-04 09:18:45 +01:00
918cdb9cd6 Switch to MIT license
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-02-03 15:39:44 +01:00
465c52f0a0 Discontinue manual inline hinting
Compiler knows better than we do.

Signed-off-by: Simon Rozman <simon@rozman.si>
2022-02-03 15:05:30 +01:00
6e34783ed5 Make code portable
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-02-03 11:53:45 +01:00
7882064e0b Add WINSTD_ prefix to some macro names
This minimizes name collisions with other projects.

Signed-off-by: Simon Rozman <simon@rozman.si>
2022-01-27 09:47:58 +01:00
0d56d79c35 Update Copyright year
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-01-07 11:20:07 +01:00
eb73ce92ed Switch to SPDX license notice
Signed-off-by: Simon Rozman <simon@rozman.si>
2021-11-22 12:59:00 +01:00
51b262b382 Cleanup WINSTD_API and WINSTD_NOVTABLE
WINSTD_API: the WinStd is never compiled as DLL any more. No public
function or class needs __declspec(dllexport)/__declspec(dllimport) any
more.

WINSTD_NOVTABLE: inlined

Signed-off-by: Simon Rozman <simon@rozman.si>
2021-03-30 11:59:18 +02:00
96e1882405 Copyright: Bump year
Signed-off-by: Simon Rozman <simon@rozman.si>
2021-03-25 08:32:57 +01:00
7196b4298e Add UTF-8 BOM markers
MSVC needs them to use correct charset when Language for non-Unicode
programs is set to Windows-1252 or anything different than UTF-8.

Signed-off-by: Simon Rozman <simon@rozman.si>
2020-11-19 10:53:10 +01:00
73619821ee Address code analysis warnings
Signed-off-by: Simon Rozman <simon@rozman.si>
2020-02-12 19:27:07 +01:00
542d20fccb Update Copyright year
Signed-off-by: Simon Rozman <simon@rozman.si>
2020-01-03 12:13:42 +01:00
f47faea71b Pull changes from downstream
- Drop Visual Studio 2010 support
- Update SAL
- New and updated classes and templates
- Copyright year update

Signed-off-by: Simon Rozman <simon@rozman.si>
2019-01-21 10:54:38 +01:00