Michael Hansen
15728bbfb5
Add an hsDeprecated macro for declaring APIs deprecated
11 years ago
Adam Johnson
83b8f6c10b
Fix invalid sizeof expressions in HeadSpin.cpp
11 years ago
Michael Hansen
d8c3769143
Fix it for standards-complient compilers (GCC/Clang).
...
Unfortunately, this means that all formatters must be declared in the
same place now, as they must be declared BEFORE the template which uses
them is declared (not just before it was instantiated, which MSVC allows).
11 years ago
Michael Hansen
7d76cae10f
Make life simpler. Make life less stupid. Make life work.
11 years ago
Michael Hansen
a53f425e38
Fixes for plFormat on GCC/Clang:
...
- int64_t is a typedef of long on Linux/x86_64 -- don't redefine its specialization
- Properly forward-declare the unspecialized variadic template form of _IFormat
11 years ago
Michael Hansen
933ae6ec17
Provide some sample conversions to plFormat for testing and copying
11 years ago
Michael Hansen
2cb19d3308
Oops - bits parameter isn't actually used any more
11 years ago
Michael Hansen
b199cb5ff0
Add better documentation, and fix some floating point flag stuff
11 years ago
Michael Hansen
63557352f2
Add support for bool formatting
11 years ago
Michael Hansen
1baefdd0f2
Properly handle zero
11 years ago
Michael Hansen
2048b641d3
Take advantage of some custom formatter shortcuts
11 years ago
Michael Hansen
3f92409a21
Provide implementations of most built-in types (excluding floating point)
11 years ago
Michael Hansen
ad5bef6671
Add framework for plFormat
11 years ago
Michael Hansen
34b2eb1836
More std::atomic and friends
11 years ago
Michael Hansen
23a071860e
pnUtRef started at zero refs instead of one, and this is simpler
...
than finding and removing all the extra Ref() calls.
11 years ago
Michael Hansen
d713a13dbe
Merge pnUtRef with hsRefCnt, and remove the former
11 years ago
Michael Hansen
b48963b904
Make it compile and work in GCC / Linux
11 years ago
Michael Hansen
e929708a3b
Use std::atomic_int for hsSafeRefCnt, and move it to hsRefCnt.h/cpp
11 years ago
Christian Walther
8c5286400a
Use premultiplied alpha for plDynamicTextMaps on GUI controls.
...
This fixes the irregular dark fringes around light text when not exactly pixel-aligned that are caused by independent interpolation of color and alpha. It also makes calculations simpler for things to come.
11 years ago
Darryl Pogue
d615f47dc4
Improve clarity of stat/_wstat64 return value.
11 years ago
Darryl Pogue
87e2150948
Remove unneeded register keyword.
...
In modern compilers, the register keyword has no effect. On clang, it
generates warnings.
11 years ago
Darryl Pogue
b66a2ba9e3
Fix an uninitialized value in hsBounds.
11 years ago
Darryl Pogue
5e8d75169c
Use pointers instead of array syntax.
11 years ago
Darryl Pogue
c8d77714b9
Remove plFileSystem::GetTempFileName.
...
It was unused and on *nix used the deprecated mktemp function.
11 years ago
Darryl Pogue
f5e99ba9a3
Fixes for semaphores on *nix.
11 years ago
Michael Hansen
a58e9c643c
Clean up some warnings, and make the CRT ones more relevant
11 years ago
Darryl Pogue
a1e3fa6faf
Various MinGW compile fixes.
11 years ago
Michael Hansen
3d1bcf1988
Whoops-a-birdy
11 years ago
Michael Hansen
05567a2881
Help Coverity figure out how auto string sizes work, and fix 64-bit
...
portability at the same time
11 years ago
Michael Hansen
387e23061a
Minor changes to hash and hash_i to avoid making a copy of the string data
11 years ago
Adam Johnson
249f26c53f
plString Hash for unordered containers
11 years ago
Michael Hansen
d7fdf10455
Convert ReadSafe(W)String* to the plString variants, and remove the now
...
unneeded _TEMP variants. All safe strings read from hsStreams are
now plStringified :)
11 years ago
Michael Hansen
862a05cbd5
Remove name from hsReaderWriterLock, since nobody was using it.
11 years ago
Michael Hansen
5b6b886b55
Clean up DisplaySystemVersion() to avoid hsStrcpy, and add Windows 8.1
...
to the known versions decoder.
11 years ago
Adam Johnson
8cedb69e9e
Fix some invalid heap ops found by Dr Memory
11 years ago
Michael Hansen
901525d600
Remove some unused string stuff
11 years ago
Darryl Pogue
786f06eafc
Fix plString ssize_t undefined errors.
11 years ago
Joseph Davies
c0d6556aa3
Use std::regex instead of PCRE.
11 years ago
Adam Johnson
3299267976
Integrate SecurePreloader into pfPatcher
11 years ago
Adam Johnson
346b6f8ac8
Implement pfPatcher backend
11 years ago
Michael Hansen
c69d546c69
Fix a VC++2013 compile error
11 years ago
Darryl Pogue
f1767ebabe
Fix some *nix compiler errors.
12 years ago
Adam Johnson
dd35878465
Begin killing off sprintf
12 years ago
Adam Johnson
470ed86187
Let's use `vsnprintf` for those legacy methods...
12 years ago
Adam Johnson
48f232c3a0
Aligned matrix loading
12 years ago
Michael Hansen
8e7505b8ce
Don't use CPUID call on targets that don't support it
12 years ago
Michael Hansen
dde3be140c
Support negative substring indexes from the right side of the string
12 years ago
Michael Hansen
04ecc27e8e
Fix a plFileSystem::CreateDir failure when called with a trailing slash
...
and requesting the whole tree to be created.
12 years ago
Adam Johnson
fc43c62174
CoreLib Precompiled Header
...
NOTE: I used a different header name this time because CoreLib headers are
visible top-level to the rest of the codebase.
12 years ago
Adam Johnson
3fb5f33517
Add plQuality entry for Shader Model 3
12 years ago