Commit Graph

1408 Commits

Author SHA1 Message Date
Günter Obiltschnig
64a733f27f added POCO_NO_DEPRECATED to disarm POCO_DEPRECATED macro 2017-09-08 12:18:39 +02:00
Günter Obiltschnig
5ff8bdafdd added POCO_DEPRECATED macro 2017-09-08 11:46:59 +02:00
Alex Fabijanic
e59fba4ddd fix exception message 2017-09-04 10:47:03 -05:00
Alex Fabijanic
b4c62584c7 fix exception message 2017-09-04 10:38:04 -05:00
Yasuhiro Horimoto
9ea7000533 Modify validation check in Poco::DateTime (#1859)
* Modify validation check in Poco::DateTime

* Modify exception message
2017-09-04 10:30:57 -05:00
Günter Obiltschnig
6689e3d7c9 fixes for QNX from 1.7.9 2017-09-01 20:41:52 +02:00
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
Jochen Sprickerhof
9ab7295108 Add support for m68000 (#1856)
Originally taken from

da11179623
2017-08-23 09:50:51 -05:00
zosrothko
59e2043652 Add missing parenthesis (#1855) 2017-08-20 16:15:38 -05:00
Alexander B
b94ffc7211 fix : rename test testExpandUnix to testExpandVariableFromPath, add usecases for windows (#1850) 2017-08-15 13:36:58 -05:00
Alex Fabijanic
e99e6126f4 solaris macros fix 2017-08-14 20:21:35 -05:00
Cosmin Cremarenco
0e3230aabf statfs not available on Solaris, replace with statvfs (#1428) 2017-08-14 20:13:37 -05:00
zosrothko
88634c0c1e Restore HOME/Path::home() in testExpandUnix (#1846) 2017-08-14 16:23:12 -05:00
Rangel Reale
6cd8f3f73c * Emscripten build support (#1845) 2017-08-14 14:03:07 -05:00
Alex Fabijanic
8cdd129d7e use TMPDIR for unix path expansion test 2017-08-14 12:58:30 -05:00
Alexander B
453d5248f1 Poco Path and simbol $ (#1800)
* fix : loop on sessionimpl->close if impl is sqlite and sqlite_close return SQLITE_BUSY

* fix : loop on sessionimpl->close if impl is sqlite and sqlite_close return SQLITE_BUSY, try 50 times with 100ms sleeping

* bug : into current implementation od path_unix.cpp I can't use simbol $ like a simbol, not a variable prefix, for example,
I need to use path /home/user/O1$$/folder. I propose to use escape sequence for this, for ex., if I want to use Poco::Glob, I can do
std::set<std::string> files;
std::string path = "/home/user/O1$$/folder"
Poco::replaceInPlace(path, "$", "\\$");
Poco::Glob::glob(path, files);

* fix : loop on sessionimpl->close if impl is sqlite and sqlite_close return SQLITE_BUSY, try 50 times with 100ms sleeping (fix code style)

bug : into current implementation od path_unix.cpp I can't use simbol $ like a simbol, not a variable prefix, for example,
I need to use path /home/user/O1$$/folder. I propose to use escape sequence for this, for ex., if I want to use Poco::Glob, I can do
std::set<std::string> files;
std::string path = "/home/user/O1$$/folder"
Poco::replaceInPlace(path, "$", "\\$");
Poco::Glob::glob(path, files);

add test

* fix : try to finalize stmt if its busy (on close session)

* fix : try to finalize stmt if its busy (on close session)
2017-08-10 10:00:06 +02: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
komainu8
b59d74cfb5 Improve launchImpl in Process_WIN32.cpp (#1799) 2017-07-17 14:11:43 +02:00
komainu8
1e4ee012a2 Improve convert to big-endian from little-endian (#1804) (#1815) 2017-07-17 09:59:28 +02:00
Craig Scott
035177e1d2 Add POCO_VERBOSE_MESSAGES option (#1679)
Allows informational logging to be turned off. All find-related messages,
warnings, errors, etc. are still always logged. The option is ON by default
to preserve existing behaviour.
2017-07-06 15:56:39 +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
Alex Fabijanic
128c5c57eb rename 'separator' to 'frac'; develop: PostgreSQLTest: missing ExecUtil class #1788 2017-07-05 11:55:05 +02:00
Marian Krivoš
7f193697db Try to save the type for Var with Json serialize/deserialize (#1703)
* Fix JSON to Var parsing (save the type)

* fix formatting

* remove redundant include <iostream>

* fix c++98 compatibility
2017-07-03 23:33:32 +02:00
Alex Fabijanic
3ec9316ab0 localtime_r is not part of C++ #1746 2017-07-03 22:37:32 +02:00
Alex Fabijanic
72b826651f src/Var.cpp: 2 * sanity check in wrong place ? #1784 2017-07-03 21:03:50 +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
Alex Fabijanic
848d510fae simplify g++ check 2017-06-27 12:59:06 +02:00
Alex Fabijanic
4b4adb4459 fix clang warning 2017-06-27 11:58:50 +02:00
Alex Fabijanic
1f27dcf5c0 fix init order warning 2017-06-26 21:02:14 +02:00
Alex Fabijanic
18a5a380d2 additional tests for #1042 and #1642 2017-06-21 16:45:39 +02:00
proller
6a49c94d18 Allow link application with double_conversion (#1560)
Without this linking fails with duplicate function names errors
2017-06-08 20:52:09 +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
Günter Obiltschnig
bcd148281f Merge pull request #1692 from Kampbell/honor-export-CXX-g++-4.8
Honor export cxx g++ 4.8
2017-06-02 18:27:40 +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
Francis ANDRE
cf1c7bd2fe Merge branch 'develop' of https://github.com/kampbell/poco into fix-gitignore 2017-04-15 11:27:48 +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
Alex Fabijanic
566d114ab4 fix -Wreorder 2017-04-04 23:55:59 -05:00
Transporter
ecaa7887a1 Add SHA3 and BLAKE2 hashing algorithm 2017-04-01 12:41:14 +02:00
Francis ANDRE
a823c68693 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2017-03-31 13:30:53 +02:00
Francis ANDRE
ad5e674e1f restore adding pcre_utf8_objects when build unbundled poco 2017-03-29 17:36:33 +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