Commit Graph

1452 Commits

Author SHA1 Message Date
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
Guenter Obiltschnig
60f5d630b3 fixed a unused warning 2016-09-06 15:25:41 +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
Günter Obiltschnig
1683dd18ae Revert "GH #1050 Util tests: fix gcc -Wshadow warnings" 2016-09-05 08:27:13 +02:00
Guenter Obiltschnig
7150a6da00 style fix 2016-08-27 08:34:46 +02:00
Günter Obiltschnig
63b3e23049 Merge pull request #1361 from CosminCremarenco-Murex/tilde-expansion
Shell expansion rules say that tilde must be replaced with $HOME before calling getpwuid
2016-08-27 08:27:38 +02:00
Guenter Obiltschnig
6b85acab07 added Poco::SingletonHolder::reset() 2016-08-27 08:23:27 +02:00
CREMARENCO Cosmin
9d81f54067 Shell expansion rules say that tilde must be replaced with HOME if it exists and only after that we can look at getpwuid 2016-08-24 12:16:47 +02:00
Guenter Obiltschnig
64635f7c8b - prefer clock_getttime() over gettimeofday() if available
- use CLOCK_MONOTONIC for POSIX condition in Poco::Event and Poco::Semaphore if supported
2016-08-11 13:00:22 +02:00
Guenter Obiltschnig
a1b8f96111 fixed a potential buffer overrun in Path_WIN32U.cpp (noncritical, as the failing code should never be reached) 2016-08-03 17:25:36 +08:00
Guenter Obiltschnig
8e7018df90 #1319: remove call to poco_unexpected() 2016-08-02 13:11:04 +08:00
Günter Obiltschnig
cab7142a4e Merge pull request #1319 from ObjSal/develop
Fixes an issue in DirectoryWatcher where it stops listening for events
2016-08-02 13:07:14 +08:00
Salvador Guerrero
5be13279cb Fixes an issue in DirectoryWatcher where it stops listening for events after a batch deletion 2016-07-19 23:24:18 -06: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
Guenter Obiltschnig
b3e2bdede9 added test for ws/wss schemes 2016-07-03 11:59:16 +02:00
Guenter Obiltschnig
4bc95aaedf fixed GH #1304: URI doesn't know ws:/ or wss:// schemes 2016-07-03 11:20:48 +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
Miklos Vajna
4421048c78 GH #1050 Util tests: fix gcc -Wshadow warnings 2016-05-11 09:55:43 +02:00
Miklos Vajna
e170400bfd Foundation: fix memory leaks in Logger sample 2016-05-09 21:15:41 +02: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
Aleksandar Fabijanic
4b6c11242c Merge pull request #1245 from aaron0x/develop
implement startsWith and endsWith.
2016-04-23 14:04:20 -05:00
Guenter Obiltschnig
a8962bb3b3 fixed GH #1253: ListMap does not maintain insertion order if key already exists
Conflicts:
	Foundation/include/Poco/ListMap.h
2016-04-21 09:34:13 +02:00
Benoît Bleuzé
76254ca055 Improves timestamp resolution on Unix systems
Adds microsecond precision when possible on Linux,
BSD and Apple systems.

Uses platform specific `struct stat`, and `utimes()`,
instead of `utime()`.
2016-04-17 20:20:34 +02:00
aaron0x
43d96a5bcb implement startsWith and endsWith. 2016-04-18 01:14:13 +08:00
Guenter Obiltschnig
9710a828a3 style fixes (something messed up if-else formatting) 2016-04-16 09:39:24 +02:00
Günter Obiltschnig
3e0d788162 fixes for compatibility 2016-04-15 17:40:09 +02:00
Tony Abbott
1db7811ce5 GH #1222 Escape command line arguments passed to Process::launch() on Windows 2016-04-15 16:45:41 +02:00
Aleksandar Fabijanic
3c735ff6b0 remove comment 2016-04-04 20:17:52 -05:00
Jörg Krause
30159aea4b GNU version of strerror_r not available on musl
The GNU version of glibc' `strerror_r` is non-portable.

When the POSIX and GNU API collides musl always provides the POSIX API. That
being the case for `strerror_r` musl does only support the POSIX version,
despite of `_GNU_SOURCE`.
2016-04-04 21:02:17 +02: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
620d9e109d Merge remote-tracking branch 'pocoproject/develop' into IncreaseLoggerAdicity 2016-03-25 15:12:01 +01: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
liuluheng
8f7afd4c99 Update DirectoryIteratorStrategy.cpp 2016-03-25 08:48:33 +08:00
liuluheng
6d0e71e68d fix #1211
add try...catch to both DFS and BFS
2016-03-24 12:43:13 +08: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
Alex Fabijanic
2a80322ecb merge dev and resolve conflicts 2016-03-11 20:57:28 -08:00
Mathäus Mendel
473de6d1b1 Fixed compilation on IBM AIX due to name clash with UTF32Char
Both poco and AIX's system header <sys/types.h> defines UTF32Char
type which lead to a name clash and compilation error.
2016-03-11 10:21:40 -03: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
b245307780 Poco.Foundation now links with pthreads on Unix platforms
Some of the libraries relies on functions from Poco.Foundation that
are implemented using pthreads and were leading to link errors.
2016-03-11 10:14:43 -03:00
Alex Fabijanic
31d23d2d2a Merge branch 'develop' into pr/1113 2016-03-10 08:57:21 -08:00
Alex Fabijanic
84c2c5ea78 Merge branch 'develop' into pr/1113 2016-03-09 19:56:37 -08: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
Alex Fabijanic
e388c9baa0 Merge branch 'develop' into pr/1113 2016-03-08 14:08:11 -08: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
Aleksandar Fabijanic
c3041eefd5 Update TestSuite_vs120.vcxproj 2016-03-07 22:13:28 -08:00
Alex Fabijanic
3eb023132b Merge branch 'develop' into pr/1113
Conflicts:
	Foundation/testsuite/TestSuite_vs120.vcxproj
2016-03-07 21:38:26 -08: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
d67c9ea6f2 On AIX, statfs takes a non-const char* as the first parameter. Fixing it.
Since the function does not change the content of the variable, it is safe
to remove the constness of the variable for UNIX platforms.
2016-03-07 16:31:07 -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
Alex Fabijanic
92225086a4 generated CppUnit and testsuites VS projects 2016-03-06 20:54:26 -08: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
c4c9bcb034 one more fix for #1002 2016-02-29 19:13:19 +01:00
Guenter Obiltschnig
ad492bdfcc added additional testcase for #1128 2016-02-29 10:43:41 +01:00
Alex Fabijanic
9fef0338ce Poco::NumberFormatter::format(float, precision) rounding changed #1128 (tests fix) 2016-02-28 23:02:51 -06:00
Alex Fabijanic
14a0872556 Poco::NumberFormatter::format(float, precision) rounding changed #1128 2016-02-28 22:59:29 -06:00
Alex Fabijanic
32f3f4a146 merge Data changes (ODBC Sybase, PostgreSQL etc) 2016-02-28 11:06:08 -06:00
Guenter Obiltschnig
4e85aa4df2 fixed GH #1128: Poco::NumberFormatter::format(float, precision) rounding changed 2016-02-28 13:33:21 +01:00
Guenter Obiltschnig
861303267e fixed GH #1002: ActiveDispatcher saves reference to event context after event was performed until it gets new event 2016-02-27 17:49:54 +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
Guenter Obiltschnig
53353d6ec1 support for Win8/Win10 2016-02-22 11:50:52 +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
Francis ANDRE
e52e172baf removed includes 2016-01-11 19:00:18 +01:00
Aleksandar Fabijanic
7206943c17 Merge pull request #1117 from vmiklos/cppunit-wshadow-fixes
GH #1050 CppUnit: fix gcc -Wshadow warnings
2016-01-11 10:21:07 -06:00
Miklos Vajna
c39c0aaf9d GH #1050 CppUnit: fix gcc -Wshadow warnings
Also in Foundation tests.
2016-01-11 09:11:46 +01:00
FrancisANDRE
ccf824a806 Merge remote-tracking branch 'pocoproject@github/develop' into PocoCppUnit 2016-01-10 11:57: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
FrancisANDRE
ce797f7700 Make CppUnit a component of Poco
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-08 00:17:13 +01:00
FrancisANDRE
bc22588895 .bashrc exists only with bash shell while .profile exists always
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-05 05:20:40 +01:00
Miklos Vajna
12d0699b5b GH #1050 Net: fix gcc -Wshadow warnings 2015-12-29 20:20:48 +01:00
FrancisANDRE
6e97a9f11b Split tests into samples & tests.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-19 17:15:55 +01:00
FrancisANDRE
d927b28b7e Exclude from the Debug build temporarly for AppVeyor stability. To be fixed later on.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 14:09:07 +01:00
FrancisANDRE
9039ae6b2f Merge remote-tracking branch 'pocoproject@github/develop' into develop
Conflicts:
	buildwin.ps1


Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 12:11:35 +01:00
FrancisANDRE
d15d8a604e Exclude from the Debug build temporarly for AppVeyor stability.To be restored later on.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 10:09:25 +01:00
FrancisANDRE
2f3230fdaf use VS macro instead of hard literal.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 19:20:23 +01:00
FrancisANDRE
3f1b573b04 No 'd' suffix for TestApp whatever the link mode release or debug
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 18:42:19 +01:00
FrancisANDRE
2c601fd12b Restore suffix for TestLibrary.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 15:34:51 +01:00
FrancisANDRE
48df5efc15 Remove the "d" suffix for TestApp binary.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:22:50 +01:00
FrancisANDRE
735689c38c Remove the suffix() from TestLibrary path.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:22:13 +01:00
FrancisANDRE
4027a0581b Reformat
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:20:33 +01:00
FrancisANDRE
07ba367dff Merge remote-tracking branch 'pocoproject@github/develop' into develop 2015-12-11 18:55:14 +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
FrancisANDRE
4e6bdab51d Merge remote-tracking branch 'pocoproject@github/develop' into develop 2015-12-11 16:49:53 +01:00
FrancisANDRE
0e6f735921 Merge remote-tracking branch 'pocoproject@github/develop' into develop 2015-12-11 11:08:46 +01:00
FrancisANDRE
0bb0361ffd Use Clock instead of Timestamp which is inaccurate on multicode CPU.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-11 10:29:14 +01: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
Mike Gelfand
2ea1d07c2c Unmask SIGINT when testing termination by signal
This will ensure that default signal handler is called (instead of possibly
ignoring the signal if it was masked by one of parent processes) and the
process is indeed terminated abnormally.
2015-12-10 21:47:52 +03: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
Guenter Obiltschnig
fbf10469b3 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2015-12-08 14:55:20 +01:00
Aleksandar Fabijanic
cf02d38986 Merge pull request #1066 from fbraem/develop
Escape Unicode in JSON
2015-12-07 11:56:49 -06: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
Alex Fabijanic
95f1a7c30d Process hangs on waitpid #1063 2015-12-06 23:18:29 -06:00
Alex Fabijanic
4499062f0d add rpath for test dynamic library; silence unused warnings for test 2015-12-06 22:08:18 -06:00
FrancisANDRE
3c2a83d2ee Use POCO_BASE for looking for test data directory.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-06 09:07:31 +01:00
Guenter Obiltschnig
dc2e299bef Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2015-12-05 11:54:07 +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
Guenter Obiltschnig
e896d92585 fix error handling in setThreadName (#1022) 2015-11-13 11:12:09 +01:00
Guenter Obiltschnig
825e99578a GH #1022: clean-up setThreadName 2015-11-10 10:07:48 +01:00
Kim Grasman
883cdb7b14 Fix #928: Workaround to fix -Wswitch warning 2015-10-13 21:58:56 +02:00
Günter Obiltschnig
c25d9f00e5 Merge pull request #973 from aaboyd/move-overwrite-on-windows
overwrite existing files on windows when moving files
2015-10-09 09:35:58 +02:00
Alex Boyd
7ef3c2e44c overwrite existing files on windows when moving files 2015-10-09 00:48:23 -04:00
Mike Gelfand
3abdb1fc23 Return non-zero from ProcessHandle::wait if killed by signal
Currently, ProcessHandle::wait (and transitively Process::wait) on *NIX
return zero if process was terminated as a result of unhandled signal.
Check if this is the case and return negative signal number instead to
indicate non-graceful process termination.
2015-10-03 15:32:15 +03:00
Guenter Obiltschnig
92e2a19661 added EventChannel class (from macchina.io) 2015-09-30 11:03:03 +02:00
Guenter Obiltschnig
5184a8526f tvOS support 2015-09-29 14:25:54 +02:00
Guenter Obiltschnig
06ab1e9820 setThreadName: abbreviate thread name if too long 2015-09-28 22:46:31 +02:00
David Morán
cd01fad478 Added regular expression test for named substrings 2015-09-28 12:13:59 +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
Mike Gelfand
cec5a43151 Change Foundation library version back to SHARED_LIBRARY_VERSION
Foundation is the only library using PROJECT_VERSION as library version,
the change accidentally introduced by commit b69fafb84c. This causes
difference in library being linked to (libPocoFoundation.31.dylib on Mac)
and library returned by $<TARGET_FILE:Poco::Foundation> for imported
target (libPocoFoundation.1.6.1.dylib), causing inconvenience. Also, this
differs from autoconf-based builds where only "31" (soversion) library is
being created and not "1.6.1" (project version) one.
2015-09-20 03:08:19 +03:00
aaron0x
7d079772ef add missing return. 2015-09-20 05:35:04 +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
Aleksandar Fabijanic
8aef165ed5 Merge pull request #938 from adasworks/develop
fix: cmake: set public compiler flags on library targets
2015-09-15 10:28:42 -05:00
Csaba Keszegh
61305c01ee fix: set public compiler flags on library targets
POCO_STATIC: has to be set when using poco as static library
POCO_NO_ATUMATIC_LIBS: CMake config module will find the correct libraries.
  Don't need to guess in headers.
2015-09-15 10:02:38 +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
e63c56cafb added testcase for #936 2015-09-11 14:01:10 +02:00
Guenter Obiltschnig
622d9d4c6c NumberParser::parseHex[64](): allow 0x/0X prefix 2015-09-09 14:38:08 +02:00
Guenter Obiltschnig
ea52ac5358 do not use of UINT64_C 2015-09-09 13:30:14 +02:00
Guenter Obiltschnig
f315dc603e fix for pre-C++11 compilers 2015-09-09 12:59:35 +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
FrancisANDRE
d75119648b Merge remote-tracking branch 'pocoproject/develop' into develop 2015-08-24 14:34:28 +02:00
FrancisANDRE
293e7c91f7 use /dev/tty instead /dev/console on Cygwin otherwise a file acces check
makes the test failing.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-22 09:54:29 +02:00
FrancisANDRE
d1a8c11f98 skip SharedMemoryTest for DPOCO_NO_SHAREDMEMORY platform
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:15:13 +02:00
FrancisANDRE
462deab58b condition assert for POCO_NO_FPENVIRONMENT platform
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:13:56 +02:00
FrancisANDRE
5354989f45 add a newline for clarity
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:12:27 +02:00
Aleksandar Fabijanic
23f8842a14 Merge pull request #903 from zosrothko/develop
Various fixes for Cygwin X86_64 port and additional minor fixes
2015-08-20 16:56:46 -05:00
Guenter Obiltschnig
ec71e76f0a PatternFormatter fix, added test 2015-08-20 20:23:13 +02:00
Guenter Obiltschnig
fafe691a04 fixes for style and consistency 2015-08-20 14:55:17 +02:00
Günter Obiltschnig
74ffb112bc Merge pull request #907 from dedvalson/develop
PatternFormatter Priority Name Enhancement
2015-08-20 14:48:36 +02:00
FrancisANDRE
c8abda6e4e change return type of getOsTid() const; from long to IntPtr
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-19 17:46:05 +02:00
Günter Obiltschnig
bc5d83cf5f Merge pull request #909 from mkrivos/develop
Some more runtime exceptions types
2015-08-19 09:07:14 +02:00
Marian Krivos
1b1c4416dd Added some more RuntimeExceptions - InterruptedException, IndexOutOfBoundsException, UnsupportedOperationException, EmptyStackException, StackOverflowException, ArithmeticException 2015-08-17 21:55:52 +02:00
FrancisANDRE
c869eb8cbc Use a C-style coercion cast for portability. Naither reinterpret_cast,
nor static_cast is working.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-17 10:11:43 +02:00
FrancisANDRE
a8743b7140 Fix invalid reinterpret_cast to static_cast.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-17 08:08:22 +02:00
FrancisANDRE
2f40cd5b59 With ptrhead, Thread::currentTid() returns a pointer to a struct which
leads to a compile error when assigning it to an long. Thus _ostid type
should be changed to IntPtr and the assignment should use a
reinterpret_cast.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-17 07:36:57 +02:00
Don Edvalson
5c20361005 Pattern Formatter Priority Name Enhancement
Added a property to allow the user to specify the actual names for the
priorities that will go into the log.
2015-08-14 09:16:05 -04:00
FrancisANDRE
4368a1fcfe add POCO_EXPORT_INTERFACE to ClassLibrary.h
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-08 11:27:12 +02:00
Mazyad Alabduljaleel
5cff648eea Added NotificationQueue::remove function
This includes appropriate tests, which pass on my Mac 10.4 machine
2015-08-06 14:13:11 +04:00
Guenter Obiltschnig
e438061ce7 fixed GH #722: Unicode Converter Test confuses string and char types 2015-07-31 10:23:16 +02:00
Guenter Obiltschnig
d2c64b4493 GH# 878: check for valid hex characters, support SHA-1 name-based UUIDs (v5) 2015-07-31 10:05:58 +02:00
Günter Obiltschnig
8b7b7cc818 again: VS2015: changed optimization for testsuite to custom, due to optimizer bug leading to crash in PBKDF2EngineTest 2015-07-30 18:58:52 +02:00
Günter Obiltschnig
b6ae5128ce added Visual Studio 2015 project files 2015-07-30 15:48:45 +02:00
Günter Obiltschnig
d10c43d0d5 VS2015: changed optimization for testsuite to custom, due to optimizer bug leading to crash in PBKDF2EngineTest 2015-07-30 13:46:00 +02:00
Günter Obiltschnig
6c09516fee Project files for Visual Studio 2015 2015-07-30 11:15:52 +02:00
Aleksandar Fabijanic
accf879682 Merge pull request #863 from cesar-carrasco/develop
Defined SYS_gettid to __NR_gettid when not already defined.
2015-06-23 21:31:27 -05:00
Aleksandar Fabijanic
22bb363260 FIFOBuffer::read(T*, std::size_t) documentation inaccurate #869, part II 2015-06-23 21:04:59 -05:00
Aleksandar Fabijanic
cc9fb56705 FIFOBuffer::read(T*, std::size_t) documentation inaccurate #869 2015-06-23 21:02:18 -05:00
Cesar Carrasco
7f52fda001 Defined SYS_gettid to __NR_gettid when not already defined. 2015-06-16 16:09:58 -04:00
Aleksandar Fabijanic
2d6fc27dd1 Var BadCastException #861 2015-06-10 09:03:12 -05:00
unknown
1c26b58452 Optional force scan for DirectoryWatcher #853 2015-06-03 14:55:05 -05:00
Matej Kenda
e26bb65a5b Logger: added %O to message format to display numeric thread id in logs. 2015-06-01 10:00:56 +02:00
Matej Kenda
f1e6cba313 Thread POSIX: tid is numeric OS thread ID on Linux and OSX instead of pthread_t. 2015-06-01 09:59:01 +02:00
Matej Kenda
01fc7f2e1c Added condition variable and timeout to ObjectPool::borrowObject/returnObject to block caller until an object is available. 2015-05-27 14:01:39 +02:00
Alex Boyd
c23f6f0b57 add 'log' to SYSLIBS when compiling Foundation for android 2015-05-26 15:37:36 -04:00
Alex Fabijanic
995832639e Merge branch 'develop' into OpenSSLBuild 2015-05-21 19:46:58 -05:00
Alex Fabijanic
af6c22c0ac simplify Crypto and NetSSL VS projects 2015-04-25 16:18:19 -05:00
Guenter Obiltschnig
25b446502b removed GCC_DIAG_OFF 2015-04-23 17:31:05 +02:00
Guenter Obiltschnig
1f1f828e29 fixed an unused warning 2015-04-23 16:08:16 +02:00
Guenter Obiltschnig
ac12cd4972 removed GCC_DIAG_OFF macro, fixed static_assert typedef to include __attribute__((unused)) for GCC 2015-04-21 19:03:55 +02:00