9d67b96837
Fix some errors and warnings when compiling with Clang
2014-08-09 12:19:14 -07:00
a1303d6d23
Fix inconsistent line endings :(
2014-07-27 13:57:39 -07:00
474b54396b
Reintroduce (and enforce use of) hsLockFor{Reading,Writing}
2014-07-26 13:05:43 -07:00
5836af7268
Clean up hsReaderWriterLock
2014-07-26 12:47:54 -07:00
f83ec34c67
Move the old IPC-based semaphore to hsGlobalSemaphore, and provide a
...
"normal" (inter-thread only) semaphore class.
2014-07-26 11:09:15 -07:00
a669abf10e
Use C++11 threading for hsEvent, and clean up the API a bit
2014-07-26 11:06:46 -07:00
2947acb2c8
Replace hsMutex with std::mutex
2014-07-25 23:39:53 -07:00
5ed3e3205c
Add move semantics to plString and plStringStream
2014-07-25 18:20:25 -07:00
fa1bb779e5
Add explicit string literal overload to try to help Coverity (and
...
avoid a strlen call to boot).
2014-07-25 18:15:10 -07:00
a82c110a9a
Merge pull request #438 from zrax/plFormat_stream
...
Switch plFormat's accumulator to a plStringStream for better performance
2014-07-15 21:48:54 -04:00
d27f102166
Merge pull request #437 from zrax/hsRef
...
Clean up ref-counting
2014-07-15 21:33:18 -04:00
f93b37e152
Switch plFormat's accumulator to a plStringStream for better performance
2014-06-04 19:35:30 -07:00
aee2f7f7ca
Make hsRefCnt atomic, and merge with hsAtomicRefCnt
2014-06-01 13:34:19 -07:00
d283872da6
Unify leak checkers
2014-06-01 13:34:18 -07:00
39867610a2
Fix leak check race condition, and remove an unintentional circular ref
2014-06-01 13:34:18 -07:00
7f4701cc1a
Add a RefCnt leak debug tracker
2014-06-01 13:34:17 -07:00
d2a05929f8
Replace most vault *IncRef() API functions with hsRef versions
2014-06-01 13:34:16 -07:00
aa2a1de5d0
Provide an easier/safer way to manage hsRefCnt subclasses
2014-06-01 13:31:56 -07:00
9771baf7dd
Fix plStringBuffer constructor with explicit size to count chars, not bytes
2014-06-01 13:01:06 -07:00
8ca4af9a78
Merge pull request #430 from zrax/plFormat_stuff
...
Start taking over the world with plFormat
2014-05-28 22:25:39 -04:00
bf5623224c
Add plPrintf - a cstdio-directed version of plFormat
2014-05-28 18:10:26 -07:00
1debf8180b
Convert many of the now-deprecated plString::Format calls to plFormat
2014-05-28 18:10:24 -07:00
2c82cdf996
Fix for {.0f} precision in plFormat()
2014-05-28 18:03:07 -07:00
1a0420127c
Provide some plFormat samples with floats/doubles
2014-05-27 18:31:06 -07:00
d15f1557b6
Implement plFormat for floating-point types
2014-05-27 18:31:04 -07:00
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