Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Rationalize type and function usage in native parts of DNX #1603

@moozzyk

Description

@moozzyk

Currently we mix different aliases of types across the code e.g. WCHAR*, LPWSTR, LPTSTR are used all over the place (e.g. bool GetTrustedPlatformAssembliesList(WCHAR* szDirectory, bool bNative, LPWSTR pszTrustedPlatformAssemblies, size_t cchTrustedPlatformAssemblies))
even though they are basically the same type.

Similarly we mix usage of _T and L macros and also mix string functions like _tcs* and wcs* and
_tprintf_s vs. wprintf_s

We should just use one alias or ideally - switch to STL and not use them at all.

We could consider creating our own alias for std::string and std::wstring (like dnx::string_t) type that would be used across the codebase regardless of what platform we are using.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions