Commit Graph

779 Commits

Author SHA1 Message Date
Günter Obiltschnig
96ca6e865d fixed GH #1865: AbstractEvent::hasDelegates() is not thread-safe 2017-08-31 08:35:27 +02:00
Robin Lee
6714322122 Remove redundant memmove call in BasicFIFOBuffer::advance() (#1862)
The memmove call is redundant since begin() is always the same as
_buffer.begin().

And since the call to begin() is removed, this function will not move
the data to the start of the buffer.
2017-08-28 14:24:09 -05:00
zosrothko
0f6c528435 PocoDoc: support generation on Windows (#1854)
* PocoDoc: support generation on Windows

* Replace hard code path with variables:
VC should be set to the path of the C++ compiler (cl.exe)
WDK should be set to the Windows Development Kit

* Update CHANGELOG with the latest 1.7.8p4 one
2017-08-23 09:52:00 -05:00
Rangel Reale
6cd8f3f73c * Emscripten build support (#1845) 2017-08-14 14:03:07 -05:00
was4444
303e398803 [Format] add variable width support (#1743)
* add variable width test cases

* add variable width support

* update the documentation for variable width
2017-07-24 12:21:35 +02:00
zosrothko
7bf53d4f3f c++11 support: update the develop branch (#1819)
* Use appveyor.yaml from c++11 branch so that CI run ok.

* Use .travis.yml from the c++ branch so that Travis CI jobs run ok.

* Add c++11 scripts and Linux config so that Travis CI jobs are ok.

* Use mkdocumentation & mkrelease from c++11 branch.

* Use PocoDoc config files from c++11 branch.

* define POCO_ENABLE_C11 as the default

* CMake: ignore Crypto for now. To be fixed since it fails.

* Backport c++11 changes from the c++11 branch

* Add Cygwin config with c++11 setup.

* Update appveyor.yml from c++11 branch.
2017-07-23 21:09:22 +02:00
Stefan Weil
8ccee8928c Fix typos in comments, documentation and strings (#1615)
All of them were found using codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-07-06 00:17:38 +02:00
andred
a9598960e4 Error: simplify strerror_r() handling (#1647)
This is a simpler version of the existing strerror_r()
handling.

Idea borrowed from boost.asio:
  443bc17d13
2017-07-06 00:14:00 +02:00
Iskandar Safarov
d7d6b739a2 Exception in destructor (#1777)
* The destructor of BasicBufferedStreamBuf() calls Allocator::deallocate which can throw exceptions. In particular it throws Poco::SystemException when can't lock mutex.

* Added poco_unexpected(); into exception handler
2017-07-02 20:04:58 +02:00
Alex Fabijanic
41e3f38c06 ODBC RecordSet (internal extraction) broken #1775; some style fixes 2017-06-29 23:49:42 +02:00
Alex Fabijanic
12f61b8ccf Wrong limit check in Poco::Dynamic::Var #996 2017-06-27 18:33:48 +02:00
Günter Obiltschnig
6467bc5aad Merge pull request #1690 from zosrothko/patch-2
Publish poco_trace & poco_debug macro even in release mode
2017-06-02 18:28:31 +02:00
Aleksandar Fabijanic
e836f91d90 Log file fix (#1678)
* fix for RotateBySizeStrategy runaway when fstream bad #1676

* fix for LogFile does not recover after write error #1677

* remove unnecesary throw
2017-04-17 12:47:33 -05:00
zosrothko
ff7ec4cb68 Publish poco_trace & poco_debug macro even in release mode
A user of a prepackaged release versio of poco would have to add the constant POCO_DEBUG_LOG in order to get non empty  poco_trace and poco_debug macros. There is nothing removed or added to poco itself if those macros are published even in a release build. Publishing those macros by default make life easier for the poco's users.
2017-04-17 10:07:06 +02:00
Günter Obiltschnig
61f0bb2c2b Merge pull request #1650 from Kampbell/fix-mkdoc-excluded-files
Fix mkdoc excluded files
2017-04-13 15:25:30 +02:00
Günter Obiltschnig
8147ecf810 Merge pull request #1664 from OgreTransporter/develop
Add SHA3 and BLAKE2 hashing algorithm
2017-04-06 09:32:53 +02:00
Transporter
ecaa7887a1 Add SHA3 and BLAKE2 hashing algorithm 2017-04-01 12:41:14 +02:00
Francis ANDRE
42ae8f60b8 Add a new constant to avoid including <windows.h> on Linux 2017-03-23 17:14:57 +01:00
André Draszik
54777d7f18 fp: support environments without hardware floating point
| cd <build>/Foundation && \
|    mipsel-poky-linux-musl-g++   -DFoundation_EXPORTS -DHAVE_PTHREAD_SETAFFINITY_NP -DHAVE_THREE_PARAM_SCHED_SETAFFINITY \
|         -DPCRE_STATIC -DPOCO_HAVE_FD_EPOLL -DPOCO_NO_AUTOMATIC_LIBS -DPOCO_OS_FAMILY_UNIX -DPOCO_UNBUNDLED \
|         -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_XOPEN_SOURCE=500 \
|         -I<sysroot>/usr/include -I<poco>/Foundation/include -I<poco>/Foundation/src  \
|         -mel -mabi=32 -msoft-float -march=mips32r2 -mno-mips16  -minterlink-compressed -mtune=24kec -mdsp  \
|         --sysroot=<sysroot> -O2 -pipe -g -feliminate-unused-debug-types \
|         -fstack-protector-strong -pie -fpie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security \
|         -fvisibility-inlines-hidden  -mel -mabi=32 -msoft-float -march=mips32r2 -mno-mips16  -minterlink-compressed \
|         -mtune=24kec -mdsp  --sysroot=<sysroot> -O2 -g -DNDEBUG -fPIC   \
|         -o CMakeFiles/Foundation.dir/src/ArchiveStrategy.cpp.o \
|         -c <poco>/Foundation/src/ArchiveStrategy.cpp
| In file included from <poco>/Foundation/include/Poco/FPEnvironment.h:33:0,
|                  from <poco>/Foundation/include/Poco/NumericString.h:25,
|                  from <poco>/Foundation/include/Poco/NumberFormatter.h:24,
|                  from <poco>/Foundation/include/Poco/ArchiveStrategy.h:27,
|                  from <poco>/Foundation/src/ArchiveStrategy.cpp:17:
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:36:30: error: 'FE_DOWNWARD' was not declared in this scope
|    FP_ROUND_DOWNWARD_IMPL   = FE_DOWNWARD,
|                               ^~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:37:30: error: 'FE_UPWARD' was not declared in this scope
|    FP_ROUND_UPWARD_IMPL     = FE_UPWARD,
|                               ^~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:39:30: error: 'FE_TOWARDZERO' was not declared in this scope
|    FP_ROUND_TOWARDZERO_IMPL = FE_TOWARDZERO
|                               ^~~~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:43:28: error: 'FE_DIVBYZERO' was not declared in this scope
|    FP_DIVIDE_BY_ZERO_IMPL = FE_DIVBYZERO,
|                             ^~~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:44:28: error: 'FE_INEXACT' was not declared in this scope
|    FP_INEXACT_IMPL        = FE_INEXACT,
|                             ^~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:45:28: error: 'FE_OVERFLOW' was not declared in this scope
|    FP_OVERFLOW_IMPL       = FE_OVERFLOW,
|                             ^~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:46:28: error: 'FE_UNDERFLOW' was not declared in this scope
|    FP_UNDERFLOW_IMPL      = FE_UNDERFLOW,
|                             ^~~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:47:28: error: 'FE_INVALID' was not declared in this scope
|    FP_INVALID_IMPL        = FE_INVALID
|                             ^~~~~~~~~~

The reason is that some (notably FPU-less) architectures,
including mips*-nf, don't define/implement some of the
floating point constants, even though fenv.h is
available.

The key point is:
  A fully standards conforming fenv.h does not have to
  define any FE_* macros, and if it does define them,
  then it defines macros only for the FP exceptions it
  actually supports.

See similar issue in boost:
  https://svn.boost.org/trac/boost/ticket/11756
2017-03-22 11:10:28 +00:00
Transporter
bbce66e2de Bugfix for gcc and add copyright text 2017-03-21 16:35:16 +01:00
Transporter
2f66ecba38 Add license information to SHA2Engine 2017-03-21 14:14:00 +01:00
Transporter
a721b1cb47 Add SHA2 algorithm 2017-03-21 11:06:18 +01:00
Robert Acksel
8fd909a016 -change access from private to protected for shared ptr members. it allows to extend shared ptr to work together with derived classes. in other words it allows to extend shared ptr 2017-03-06 16:34:03 +01:00
Rudolf-Walter Kiss-Szakács
ed819feb83 Fix XDG Base Dir Spec implementation and remove tempHome. 2017-02-23 08:23:41 +02:00
Guenter Obiltschnig
c32e683b6c fixed GH #1260: URI encoding 2017-02-17 09:24:16 +01:00
Guenter Obiltschnig
76ab7c65a6 GH #1586: Upgrade bundled PCRE to 8.40 2017-02-11 12:14:02 +01:00
Guenter Obiltschnig
8557dc4469 fixed GH #1581: Cannot find 'pcre.h' when using POCO_UNBUNDLED, a non-system PCRE, and CMake
Conflicts:
	Foundation/include/Poco/RegularExpression.h
	Foundation/src/RegularExpression.cpp
2017-02-11 12:13:29 +01:00
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