Commit Graph

802 Commits

Author SHA1 Message Date
Günter Obiltschnig
0fefd7d03a fixed GH #1523: Long path names under Windows 2017-02-02 20:54:59 +01:00
Guenter Obiltschnig
4149062e7e upgraded bundled zlib to 1.2.11 2017-01-25 10:18:21 +01:00
Guenter Obiltschnig
28de783c96 only use <atomic> header if C++11 support is available 2017-01-13 15:42:46 +01:00
Günter Obiltschnig
f216c798bf Merge pull request #1535 from mkrivos/develop
Zlib 1.2.10
2017-01-12 20:25:31 +01:00
Guenter Obiltschnig
f42f17dd65 fixed GH #1536: Building with OS X 10.12 SDK and 10.7 deployment target without libc++ fails 2017-01-10 17:08:18 +01:00
Marian Krivos
f55e88c3f2 Update to zlib 1.2.10 2017-01-03 13:55:07 +01:00
Guenter Obiltschnig
13b062c786 fixed warnings and inconsistencies 2016-12-06 22:11:54 +01:00
Guenter Obiltschnig
955f409177 On Apple platforms, use std::atomic with MacOS 10.12 or iOS 10 SDK.
Conflicts:
	Foundation/include/Poco/AtomicCounter.h
2016-12-06 21:52:58 +01:00
Guenter Obiltschnig
feedbbbea5 more fixes related to GH #1453
Conflicts:
	Foundation/include/Poco/AtomicCounter.h
2016-12-06 21:50:21 +01:00
Guenter Obiltschnig
9c436860b3 ObjectPool: gracefully handle case if push_back() throws 2016-12-06 00:03:39 +01:00
vm2mv
780430487b Foundation: fixed exceptions handling in zlib-output-streams constructors 2016-11-22 13:55:36 +01:00
Tomaz Beltram
8265d1b28e GH #1488: fixed ObjectPool size handling 2016-11-16 14:17:17 +01:00
Guenter Obiltschnig
efdeadef2a fixed GH #990: Potential race condition in on Windows 2016-11-03 14:49:25 +01:00
Guenter Obiltschnig
8293f93f7a use std::unique_ptr instead of std::auto_ptr with C++11 or newer compilers to avoid std::auto_ptr deprecation warnings 2016-10-14 12:01:25 +02:00
Guenter Obiltschnig
8888d3daae added POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX configuration macro to disable *d.so, *d.dll suffix in SharedLibrary class 2016-10-10 12:07:58 +02:00
Guenter Obiltschnig
b02d8cecdb fixed GH #1431: Poco/FIFOBuffer.h copy issue 2016-10-07 21:27:46 +02:00
Günter Obiltschnig
5d8faa371e added URISyntaxException; better error handling in URIStreamOpener 2016-09-29 17:42:49 +02:00
Guenter Obiltschnig
18e594e7ff fixed issues reported by Klocwork 2016-09-26 19:22:47 +02:00
Guenter Obiltschnig
78f954f58f fixed issues reported by Klocwork 2016-09-26 19:22:32 +02:00
Guenter Obiltschnig
8935e19bbc fixed potential memory leak in out-of-memory situations 2016-09-26 19:19:14 +02:00
Guenter Obiltschnig
68e3676ddc fixed an unlikely potential memory leak if one of two new fails 2016-09-26 19:16:54 +02:00
Guenter Obiltschnig
ad1be5fe87 fixed GH #1418:Poco::Delegate assignment operator fails to compile for some specializations 2016-09-20 20:48:36 +02:00
Guenter Obiltschnig
dcdcee5afa minor fixes for style 2016-09-14 17:06:55 +02:00
Günter Obiltschnig
f0402f2773 Merge pull request #1315 from kimgr/bugcheck-abort
Redefine Poco assertions for static analysis
2016-09-14 16:49:27 +02:00
Günter Obiltschnig
47b4ef97db Merge pull request #1399 from CosminCremarenco-Murex/fix-starts-with-ends-with
Fix String.h startsWith/endsWith
2016-09-07 09:14:40 +02:00
CREMARENCO Cosmin
c0906ab5aa Fix failing testStartsWith: startsWith/endsWith will dereference invalid string iterator when the prefix/suffix is longer than the actual length of the string 2016-09-06 17:18:25 +02:00
Günter Obiltschnig
ff2d8b65c7 Revert "GH #1050 JSON: fix gcc -Wshadow warnings" 2016-09-05 08:37:47 +02:00
Günter Obiltschnig
7491374264 Revert "GH #1050 Net: fix gcc -Wshadow warnings" 2016-09-05 08:35:17 +02:00
Günter Obiltschnig
81b140e0a9 Revert "GH #1050 NetSSL_OpenSSL: fix gcc -Wshadow warnings" 2016-09-05 08:31:43 +02:00
Günter Obiltschnig
f7d3737526 Revert "GH #1050 Foundation-tests: fix gcc -Wshadow warnings" 2016-09-05 08:28:18 +02:00
Guenter Obiltschnig
6b85acab07 added Poco::SingletonHolder::reset() 2016-08-27 08:23:27 +02:00
Kim Grasman
dd4a3b583a Redefine Poco assertions for static analysis
Static analyzers typically don't do cross-translation unit analysis, so
they don't understand that most of the Poco::Bugcheck methods never
return.

Unfortunately, some of them also don't understand noreturn annotations
(see e.g. http://en.cppreference.com/w/cpp/language/attributes), so
decorating Bugcheck doesn't help.

Instead redefine all the Poco assertion macros to just call abort() iff
we're parsed by a known static analyzer.
2016-07-13 15:14:45 +02:00
Aleksandar Fabijanic
d6ebf591a6 Merge pull request #1286 from hakan-akan/patch-1
Update Platform_WIN32.h
2016-05-27 20:59:29 -05:00
Aleksandar Fabijanic
5e75f7db27 Merge pull request #1279 from hakan-akan/develop
Added preprocessor guards for "define"s.
2016-05-27 20:59:18 -05:00
hakan-akan
eec6f09f71 Update Platform_WIN32.h
Default move semantics are not supported with 2012 (1700).
2016-05-27 18:54:57 -07:00
hakan
49a4eb7eb6 Added preprocessor guards for "define"s. 2016-05-19 13:02:41 -07:00
Guenter Obiltschnig
5c1d0b8568 style fix 2016-05-05 10:54:02 +02:00
Günter Obiltschnig
ac4f0625fd Merge pull request #1131 from Kampbell/DynamicIgnoredToken
Make the Token ignore property a dynamic property.
2016-05-05 10:51:37 +02:00
Alex Fabijanic
95bb6bfeea Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2016-04-23 14:53:56 -06:00
Alex Fabijanic
0286d245ab Only escape string values in Poco::JSON::Stringifier::stringify() #1027 2016-04-23 14:52:03 -06:00
aaron0x
43d96a5bcb implement startsWith and endsWith. 2016-04-18 01:14:13 +08:00
Miklos Vajna
2b6eb3fd76 GH #1050 Foundation-tests: fix gcc -Wshadow warnings 2016-04-01 11:38:25 +02:00
Aleksandar Fabijanic
3bf6c38eee Update comment 2016-03-28 23:24:59 -07:00
FrancisANDRE
fd442f100e Remove unused code. Extends Logger::testFormatAny up to 15 args.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-03-25 10:04:42 +01:00
Aleksandar Fabijanic
884949a217 Merge pull request #1195 from vmiklos/netssl-openssl-wshadow-fixes
GH #1050 NetSSL_OpenSSL: fix gcc -Wshadow warnings
2016-03-14 23:25:35 -07:00
Miklos Vajna
617f2635ad GH #1050 NetSSL_OpenSSL: fix gcc -Wshadow warnings 2016-03-14 16:09:50 +01:00
Aleksandar Fabijanic
00a787e0cb Merge pull request #945 from aaron0x/RefactoryBinaryReaderWriter
Refactory BinaryReader and BinaryWriter
2016-03-13 23:08:44 -07:00
Mathäus Mendel
b3423e6601 Fixed compilation on IBM XLC due to incorrect function call
Templated functions dependent of a templated class must be prefixed with
the "template" keyword.
2016-03-11 10:17:33 -03:00
Mathäus Mendel
9332e886d0 Merge remote-tracking branch 'upstream/develop' into develop 2016-03-09 17:24:47 -03:00
Mathäus Mendel
ede77f46ee Removed unused variables
When compiling with higher warning levels the compiler warns about
these unused variables.
2016-03-09 17:20:37 -03:00
Guenter Obiltschnig
139649fd61 TaskManager::count() now returns std::size_t; release mutex before posting progress notification 2016-03-09 20:22:44 +01:00
Mathäus Mendel
7dda3867c6 Removed isnan and isinf from the namespace std for IBM XLC
Due to the implication of changing the standard library behavior on IBM XLC
when using the POCO Libraries, the functions from <cmath> previously added
to the namespace std are now guarded by #ifdef directives to cover only
the needed cases (IBM XLC compiler on AIX).
2016-03-08 09:53:46 -03:00
Mathäus Mendel
80ce6016dd Fixed compilation error due to missing functions from cmath
IBM XLC has no functions from <cmath> under the std namespace. Added
a workaround for XLC on AIX.
2016-03-07 16:39:18 -03:00
Mathäus Mendel
5f94a74886 Removed "using std::swap" directive from nested namespace
IBM XLC refuses to compile since it tries to instantiate all the possible
specializations for std::swap, right before one.
2016-03-07 16:33:59 -03:00
Mathäus Mendel
db95b94c8c Fixed compilation on IBM XLC due to incorrect function call
Templated functions dependent of a templated class must be prefixed with
the "template" keyword.
2016-03-07 16:28:02 -03:00
Guenter Obiltschnig
3517302572 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2016-03-07 06:58:14 +01:00
Guenter Obiltschnig
357aab1c7c bumped version of develop to 2.0 2016-03-07 06:57:52 +01:00
Aleksandar Fabijanic
fd070a39be Merge pull request #1154 from teminian/develop
Improved support for MinGW-w64
2016-03-06 19:13:00 -08:00
Günter Obiltschnig
5a1920c935 Merge pull request #1132 from TcT2k/FileDiskSpace
Add partition space information to File class
2016-03-05 15:01:28 +01:00
Guenter Obiltschnig
4e85aa4df2 fixed GH #1128: Poco::NumberFormatter::format(float, precision) rounding changed 2016-02-28 13:33:21 +01:00
Guenter Obiltschnig
a1d8591dfd fixed GH #1141: Poco::StringTokenizer::TOK_TRIM changes behavior between 1.4 and 1.6
Conflicts:
	Foundation/include/Poco/StringTokenizer.h
	Foundation/src/StringTokenizer.cpp
2016-02-27 16:19:25 +01:00
teminian
dd9c4e607e Improved support for MinGW-w64
Added following #defines which is not defined in MinGW header:
    #define _RC_CHOP 0x00000300
    #define _RC_UP 0x00000200
    #define _RC_DOWN 0x00000100
    #define _RC_NEAR 0x00000000

Use isfinite(), instead of _finite(), for isInfiniteImpl().
Use isnan(), instead of _isnan(), for isNaNImpl().
Use copysign(), instead of _copysign(), for copySignImpl().
2016-02-17 17:00:34 +09:00
Günter Obiltschnig
81e15f393f Merge pull request #1127 from vmiklos/data-wshadow-fixes
GH #1050 Data: fix gcc -Wshadow warnings
2016-02-16 10:03:08 +01:00
Guenter Obiltschnig
94dbc1f34c fix comment; don't send TaskProgressNotification if progress does not change 2016-02-13 20:22:02 +01:00
Scott Talbert
7c10b9f4da Add support PPC64LE (little endian)
PPC64 has both big and little endian variants; add support for LE.
2016-02-06 20:39:15 -05:00
Tobias Taschner
9972496811 Add partition space information to File class
Add File::totalSpaceImpl(), File::usableSpaceImpl() and File::freeSpaceImpl() to retrieve total, available and usable space in the filesystem for the specified path.
2016-01-22 09:58:40 +01:00
FrancisANDRE
1c826040e5 Make the Token ignore property a dynamic property.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-20 17:01:41 +01:00
Guenter Obiltschnig
b5572b3e59 add Path::PATH_URI for URI paths (same as PATH_UNIX) 2016-01-19 11:45:35 +01:00
Miklos Vajna
6d1a4f20ba GH #1050 Data: fix gcc -Wshadow warnings 2016-01-18 22:52:27 +01:00
Mike Gelfand
0425866486 Allow for process termination when polling with isRunning
On *NIX, one needs to call `waitpid()` in order for process to exit the
zombie state. If one uses `Process::isRunning()` to emulate non-blocking
wait for child process termination, process will stay zombie and function
will always return true.

This commit changes `Process::isRunning()` to call `waitpid()` with
`WNOHANG` instead of using `kill()` when checking for child process (i.e.
the one we have ProcessHandle for), which allows for process termination.
Additional trickery with mutex and event is needed to prevent exceptions
when `Process::isRunning()` and/or `Process::wait()` is called concurrently
on the same handle from different threads.

Fixes #1097.
2016-01-09 02:36:55 +03:00
Miklos Vajna
12d0699b5b GH #1050 Net: fix gcc -Wshadow warnings 2015-12-29 20:20:48 +01:00
Aleksandar Fabijanic
cfdf3e4134 Merge pull request #1082 from RangelReale/mscver
* Add VS2015 platform
2015-12-11 11:20:12 -06:00
Rangel Reale
132dc458f2 * Add VS2015 platform 2015-12-11 15:18:50 -02:00
Miklos Vajna
ce8fa7740c GH #1050 JSON: fix gcc -Wshadow warnings 2015-12-11 08:32:53 +01:00
Aleksandar Fabijanic
1483d0d112 Merge pull request #1073 from RangelReale/windowshleak
Don't leak <windows.h> (Poco/UnWindows.h) to library users
2015-12-10 21:11:05 -06:00
Guenter Obiltschnig
a80d2a5c9d fixed insert call 2015-12-10 18:48:18 +01:00
Rangel Reale
b47f38fc33 * Don't leak <windows.h> (Poco/Unwindows.h) to library users 2015-12-10 13:16:02 -02:00
Guenter Obiltschnig
dfe52ac11c fix ordering behavior of insert to match doc 2015-12-10 09:46:11 +01:00
fbraem
18b92b5b36 Use escape to correctly escape unicode characters 2015-12-07 17:33:10 +01:00
fbraem
7086d93324 Add escape/unescape functions 2015-12-07 17:31:49 +01:00
Miklos Vajna
b9cfd346a1 GH #1050 Foundation: fix gcc -Wshadow warnings 2015-11-30 15:49:07 +01:00
zosrothko
94bb16fdee Include <pcre.h> for an unbundled build. 2015-11-17 18:45:44 +01:00
Kim Grasman
883cdb7b14 Fix #928: Workaround to fix -Wswitch warning 2015-10-13 21:58:56 +02:00
Guenter Obiltschnig
92e2a19661 added EventChannel class (from macchina.io) 2015-09-30 11:03:03 +02:00
David Morán
8f1f678f76 Named substring support 2015-09-28 02:21:21 +02:00
aaron0x
0a64390399 Enhance FileChannel purge setting. 2015-09-26 23:31:30 +08:00
aaron0x
928a7ffce8 avoid redundant strlen. 2015-09-20 19:52:30 +08:00
aaron0x
3e7f722ca6 1. move flipBytes(float/double) to ByteOrder.
2. remove redundant code from BinaryWriter and BinaryReader.
2015-09-20 05:21:36 +08:00
FrancisANDRE
a4479552b6 add SharedLibrary::getOSName() to improve portability of shared library
real filename over different OS like Linux/Unix/Cygwin & Windows.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-09-19 08:28:26 +02:00
Guenter Obiltschnig
526ba5d0b3 added comments regarding encoding/decoding to getPath*() 2015-09-14 10:25:02 +02:00
Guenter Obiltschnig
2603c7a0d4 added comment regarding query strings (#767) 2015-09-14 10:19:08 +02:00
Guenter Obiltschnig
15f034cbbd fix GH #931: make strToInt() more strict in what it accepts 2015-09-09 11:14:29 +02:00
Guenter Obiltschnig
3eca77450c fix version no, style 2015-09-08 17:36:28 +02:00
Aleksandar Fabijanic
f6ab1fb925 Merge pull request #917 from zosrothko/develop
additionnal fixes for the Cygwin platform
2015-09-05 09:30:58 -05:00
Guenter Obiltschnig
249c064ec7 #921: better comment, provide workaround for MSVC only 2015-09-01 21:46:18 +02:00
Guenter Obiltschnig
22c7933fe5 another attempt at fixing #921 2015-09-01 08:31:16 +02:00
Guenter Obiltschnig
245a628d90 removed explicit template instantiations from header files (#921) 2015-08-30 08:26:13 +02:00
Guenter Obiltschnig
e769b8df87 needs to be marked for import/export #921 2015-08-29 22:40:58 +02:00
FrancisANDRE
7f01fbc3db add std::string SharedLibrary::prefix() for building library name that
complies with Cygwin standard.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-27 08:48:26 +02:00
FrancisANDRE
b0989b0828 replace duplicate define for HP_ACC by the COMPAQ one for DEC CXX
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-27 08:42:11 +02:00