e331cbd4f7
ASSume that MSVC is the only compiler who uses the __declspec() syntax
2014-05-24 19:25:43 -07:00
688852e658
Put compiler checks in their own cmake module
2014-05-24 18:56:25 -07:00
15728bbfb5
Add an hsDeprecated macro for declaring APIs deprecated
2014-05-24 18:56:25 -07:00
83b8f6c10b
Fix invalid sizeof expressions in HeadSpin.cpp
2014-05-24 20:27:39 -04:00
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).
2014-05-22 19:49:07 -07:00
7d76cae10f
Make life simpler. Make life less stupid. Make life work.
2014-05-21 18:26:16 -07:00
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
2014-05-20 22:27:20 -07:00
c9c7350d36
Merge pull request #420 from zrax/plFormat
...
plFormat: a type-safe string formatter
2014-05-20 20:49:29 -04:00
69f1e2c511
Merge pull request #413 from zrax/qt_tools
...
Port GUI Tools to Qt5
2014-05-19 23:23:39 -04:00
933ae6ec17
Provide some sample conversions to plFormat for testing and copying
2014-05-19 18:12:50 -07:00
2cb19d3308
Oops - bits parameter isn't actually used any more
2014-05-19 18:12:50 -07:00
b199cb5ff0
Add better documentation, and fix some floating point flag stuff
2014-05-19 18:12:49 -07:00
63557352f2
Add support for bool formatting
2014-05-19 18:12:49 -07:00
1baefdd0f2
Properly handle zero
2014-05-19 18:12:48 -07:00
2048b641d3
Take advantage of some custom formatter shortcuts
2014-05-19 18:12:48 -07:00
3f92409a21
Provide implementations of most built-in types (excluding floating point)
2014-05-19 18:12:47 -07:00
ad5bef6671
Add framework for plFormat
2014-05-19 18:12:45 -07:00
34b2eb1836
More std::atomic and friends
2014-05-18 11:19:55 -07:00
23a071860e
pnUtRef started at zero refs instead of one, and this is simpler
...
than finding and removing all the extra Ref() calls.
2014-05-18 11:19:55 -07:00
d713a13dbe
Merge pnUtRef with hsRefCnt, and remove the former
2014-05-18 11:19:52 -07:00
b48963b904
Make it compile and work in GCC / Linux
2014-05-18 00:02:22 -07:00
e929708a3b
Use std::atomic_int for hsSafeRefCnt, and move it to hsRefCnt.h/cpp
2014-05-17 21:30:42 -07:00
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.
2014-04-26 21:14:50 +02:00
d615f47dc4
Improve clarity of stat/_wstat64 return value.
2014-04-20 17:12:59 -07:00
87e2150948
Remove unneeded register keyword.
...
In modern compilers, the register keyword has no effect. On clang, it
generates warnings.
2014-04-20 17:12:23 -07:00
b66a2ba9e3
Fix an uninitialized value in hsBounds.
2014-04-20 17:12:02 -07:00
5e8d75169c
Use pointers instead of array syntax.
2014-04-20 17:11:34 -07:00
9b46e8e739
Merge pull request #397 from zrax/warnings
...
Clean up some warnings, and make the CRT ones more relevant
2014-04-07 22:28:50 -04:00
c8d77714b9
Remove plFileSystem::GetTempFileName.
...
It was unused and on *nix used the deprecated mktemp function.
2014-04-05 20:40:51 -07:00
f5e99ba9a3
Fixes for semaphores on *nix.
2014-04-05 20:40:51 -07:00
a58e9c643c
Clean up some warnings, and make the CRT ones more relevant
2014-03-16 14:35:15 -07:00
a1e3fa6faf
Various MinGW compile fixes.
2014-02-19 23:31:43 -08:00
3d1bcf1988
Whoops-a-birdy
2014-01-22 20:59:25 -08:00
05567a2881
Help Coverity figure out how auto string sizes work, and fix 64-bit
...
portability at the same time
2014-01-21 21:23:48 -08:00
387e23061a
Minor changes to hash and hash_i to avoid making a copy of the string data
2014-01-21 15:21:32 -08:00
249f26c53f
plString Hash for unordered containers
2014-01-21 15:21:32 -08:00
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 :)
2014-01-21 15:21:32 -08:00
862a05cbd5
Remove name from hsReaderWriterLock, since nobody was using it.
2014-01-10 10:11:57 -08:00
5b6b886b55
Clean up DisplaySystemVersion() to avoid hsStrcpy, and add Windows 8.1
...
to the known versions decoder.
2014-01-10 10:11:50 -08:00
8cedb69e9e
Fix some invalid heap ops found by Dr Memory
2014-01-07 22:54:21 -05:00
901525d600
Remove some unused string stuff
2013-12-17 18:37:10 -08:00
de60a164d4
Merge pull request #355 from Deledrius/c11_regex
...
Use std::regex instead of PCRE.
2013-12-05 12:32:08 -08:00
786f06eafc
Fix plString ssize_t undefined errors.
2013-12-02 22:07:08 -08:00
c0d6556aa3
Use std::regex instead of PCRE.
2013-12-02 20:53:52 -08:00
3299267976
Integrate SecurePreloader into pfPatcher
2013-11-28 15:14:45 -05:00
346b6f8ac8
Implement pfPatcher backend
2013-11-28 15:12:03 -05:00
c69d546c69
Fix a VC++2013 compile error
2013-11-02 01:50:10 -07:00
f1767ebabe
Fix some *nix compiler errors.
2013-07-20 00:04:51 -07:00
dd35878465
Begin killing off sprintf
2013-07-09 21:30:42 -04:00
470ed86187
Let's use vsnprintf
for those legacy methods...
2013-07-09 21:30:41 -04:00