Commit Graph

889 Commits

Author SHA1 Message Date
Günter Obiltschnig
23aebd2d96 fixed GH #2738: Poco::AccessExpireStrategy::onGet() must not extend expiration time after expiration 2019-07-01 17:59:29 +02:00
Romain Geissler
34c9208a01 Fix warnings with release 1.9.0 and gcc 9:
/remote/intdeliv/components/osp/Poco/Foundation/19-0-0-2/include/Poco/Dynamic/VarHolder.h: In instantiation of ‘void Poco::Dynamic::VarHolder::checkUpperLimit(const F&) const [with F = short int; T = signed char]’:
/remote/intdeliv/components/osp/Poco/Foundation/19-0-0-2/include/Poco/Dynamic/VarHolder.h:327:4:   required from ‘void Poco::Dynamic::VarHolder::convertToSmaller(const F&, T&) const [with F = short int; T = signed char]’
/remote/intdeliv/components/osp/Poco/Foundation/19-0-0-2/include/Poco/Dynamic/VarHolder.h:913:29:   required from here
/remote/intdeliv/components/osp/Poco/Foundation/19-0-0-2/include/Poco/Dynamic/VarHolder.h:435:39: error: comparison of integer expressions of different signedness: ‘Poco::UInt64’ {aka ‘long unsigned int’} and ‘signed char’ [-Werror=sign-compare]
  435 |       static_cast<Poco::UInt64>(from) > std::numeric_limits<T>::max())
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-06-21 15:10:22 +00:00
Lyashenko Arsenii Maksimovich
223ce277bd Fix "redeclared without dllimport attribute..." warning for MinGW (#2433)
* Fix "redeclared without dllimport attribute..." warning for MinGW

* Use 'POCO_COMPILER_MSVC' instead of '_MSC_VER'.

* Define 'POCO_COMPILER_MINGW' with 'POCO_COMPILER_GCC' too

* Define 'POCO_UNUSED' for Clang too
2018-09-17 20:36:21 +02:00
tomaz-beltram
18f3a48fe7 Added static function for current OS thread ID. (#2466) 2018-09-17 16:07:40 +02:00
Cengizhan Pasaoglu
02b879d715 Using wrapper function for converting to string, instead of itself (#2445)
testIntToString() function has been updated regarding implementation changes
2018-09-04 15:18:19 +02:00
Alex Fabijanic
13eafbaaac Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2018-08-15 12:34:08 -05:00
Alex Fabijanic
5de2bf7ecf POCO Net build fails with clang-cl 6.00 on Windows #2428 2018-08-15 12:33:41 -05:00
Günter Obiltschnig
9d1fce93ac add optional support for SLpro and vanilla OpenSSL autolinking on Windows 2018-08-15 16:14:47 +02:00
Alex Fabijanic
290ed646fb fix VarHoderImpl long SFINAE 2018-08-01 21:37:36 -05:00
Alex Fabijanic
0e8e66c5d6 fix windows compile and reinstate VarHolder::convert(long) 2018-08-01 19:30:42 -05:00
Aleksandar Fabijanic
7a081c50d8 Preserve entries order in DynamicStruct #2410 (#2413)
* Preserve entries order in DynamicStruct #2410

* disable C++11 default

* ifdef C++11 code
2018-08-01 17:39:06 -05:00
Alex Fabijanic
9b59b8ac48 make DynamicStruct::toString() const 2018-08-01 17:24:10 -05:00
Alex Fabijanic
cca28df12b increase tuple sizes to 40
fix VarHolder (unsigned) long specialization (std::enable_if/is_same)
2018-08-01 17:17:10 -05:00
Alex Fabijanic
7371293547 Tuple assignment very slow #2383 2018-08-01 12:27:48 -05:00
Alex Fabijanic
273881b816 increase TypeList max size to 40 2018-08-01 12:25:07 -05:00
Marian Krivoš
9042fc7f6d Add note about source RFC into BaseXX (en)coders (#2396) 2018-07-18 08:00:22 -07:00
Feng Hao
fe973b440b change CountingStream counter type, previous max value is 2G. 2018-07-17 17:00:17 +08:00
Aleksandar Fabijanic
77889d6a8e Update RefCountedObject.h 2018-06-21 15:07:33 -05:00
Lyashenko Arsenii Maksimovich
0379a1e768 MinGW support (#2360)
* Add MinGW support (not full yet).

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Fix SQLs compilation (No rule to make target '${LIBNAME}.dll.a', needed by '${LIBNAME}.dll'.  Stop.)
* Fix crypto executables compilation
* Test static compilation
* Test MSVC compilation
* Add unicode support

See pocoproject/poco#2356

* Code rearrange.

Also fix PDF test runner.

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Add unicode support
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Normal "_DLL" definition for MinGW. Add missing "Crypto_API" for several implementations. Add "POCO_NO_MINGW_UNICODE" for "wmain".

TODO list:
* Check PostgreSQL and MySQL
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Test PostgreSQL. Fix message compiler problem.

See pocoproject/poco#2356

* Perform requested changes. Add WinCE check.

See pocoproject/poco#2360

* Perform requested changes #2. Delete WinCE check.

See pocoproject/poco#2360

* Perform requested changes #3. Net initializer should works now.

See pocoproject/poco#2360

* Fix invalid indent.

See pocoproject/poco#2360

* Correct definition of POCO_NO_MINGW_UNICODE.

See pocoproject/poco#2360

* Remove macro and set global linke flags for testing purpose

* Add -municode for mingw where wmain is used

* Delete "POCO_ENABLE_EXE_WMAIN". Add PollSet support.

See pocoproject/poco#2360

* Restore WinCE linker flags. Set _WIN32_WINNT in PollSet.cpp separately. Add var to disable MinGW wmain wrapper.

* Fix compilation.

* Fix missing argument name in functions "setEscapeUnicode" in JSON package.
2018-06-19 08:17:03 -07:00
Alex Fabijanic
d327577070 add struct tm support to DateTime #2365 2018-06-12 10:37:04 -05:00
Alex Fabijanic
29252e7bba force NaN not infinity on windows (consistent with std and other platforms) 2018-06-05 00:58:02 -05:00
Alex Fabijanic
11fa3db187 revert wrongly renamed exceptions 2018-05-28 20:10:47 -05:00
Alex Fabijanic
14d0c15fab gcc fixes 2018-05-25 15:24:23 -05:00
Alex Fabijanic
32bb6f956c allow copying of StringTokenizer 2018-05-25 14:45:46 -05:00
Francis ANDRE
f0a7a89902 Merge pull request #2334 from Kampbell/develop
Various fixes on Gradle & Cygwin
2018-05-15 17:59:10 +02:00
Aleksandar Fabijanic
30b6ed3e2f Update MemoryPool.h 2018-05-14 18:46:45 -05:00
Francis ANDRE
b87acb8ea5 Guard demangling code by POCO_HAS_BACKTRACE 2018-05-09 00:39:38 +02:00
Francis ANDRE
f20c87697d Avoid Cygwin for now. TODO 2018-05-09 00:30:09 +02:00
Francis ANDRE
5736ab060c Fix namespace __cxxabiv1 on Cygwin for __cxa_demangle 2018-05-09 00:08:14 +02:00
Francis ANDRE
ed04c97abe Support of arch riscv64 by Manuel A. Fernandez Montecelo
<mafm@debian.org>
2018-05-06 12:28:25 +02:00
Alex Fabijanic
2f44f7be83 ifdef windows pragmas 2018-05-04 13:20:12 -05:00
Marian Krivoš
42ef846651 Fix Visual Studio warnings at level /W4 (#2312)
* SharePtr fix for gcc 7.2

* Fix for Poco issue #2285

* Add missing fail() to sqlite test

* Fix for testIllegalFilePath

* Update SQLiteTest.cpp

* fixexes for Visual Studio and /W4 switch

* Fixed warnings for Foundation module

* Fixed warnings for JSON module

* Fixed warnings for XML module

* Fixed warnings for NET module

* Fix unfixable warning in VarHolder.h

* Fix Typo:

* Fixes for Net

* Fixes for Crypto

* Fixes for NetSSL

* Fixes for Zip

* Fixes for PDF

* Fixes for SQLite

* Fixes for SQLite

* Fixes for SQL

* Fixes for MongoDB

* Fixes for Redis

* Fixes for CppParser

* Fixes for CppUnit

* Fixes for PageCompiler

* Fixes for PostgreSQL

* Fixes for MySQL

* Fixes for SevenZip

* Last Warnings

* Fixes for ODBC

* fix std::type_info include
2018-05-04 08:47:40 -06:00
Alex Fabijanic
d821b0ca5a improve Any bad cast diagnostics 2018-05-04 03:33:25 +00:00
Aleksandar Fabijanic
4efaa99fff Add WeakRefPtr to Foundation #2246 (#2247)
* Logger & Channel classes now using AutoPtr<Channel> instead of Channel* (API improvement)

* fix CachingChannel

* more fixes

* Configuration: remove raw pointers from interfaces #2077

* Add WeakPtr to Foundation #2246

* Add WeakPtr to Foundation #2246 (buildsystems files)

* Add WeakPtr to Foundation #2246 (x64 VS project files)

* backtrace and Event fixes

* add ordered map

* add ordered set

* add sanitize makefiles

* update RefPtr doc

* fix AtomicCounter includes

* add ordered containers tests

* fix xml test compile error

* remove operator bool rom smart pointers

* Poco::strToInt<> fails for values right above the type's boundary / limit #2250

* add g++ -ftrapv config

* remove Version.h includes (now included from Config.h)

* comment out offending SQLite test (TODO)

* add AtomicFlag and SpinlockMutex

* remove RefCountedObject include from RefPtr and WeakRefPtr mutex template param

* add WeakRef SpinLockMutex threading test

* WeakRefPtr, backtrace, NDC, refcount DC fixes

* SQL fixes

* update RCO documentation

* XML/DOM: Remove raw pointers from public interfaces #2075

* few fixes

* PocoDoc - make logger non-static reference member

* remove path char array initialization

* Fix failing unit test, adding d in debug mode for TestApp and TestLibrary

* fix application config pointer

* fix some crypto warnings

* fix Process tests and consolidate TestApp name building

* define PathImpl::selfImpl for WinCE

* restore WinCE test app name extension

* attempt to passify 32 bit clang

* fix failing Active* tests

* Add POCO_OS_ANDROID support for Path::self()

* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build

* Remove to set LD_LIBRARY_PATH on foundation test

* revert to develop XML

* fix VS150 env not found (hardcode it)

* undef min/max
2018-05-02 16:04:39 -06:00
Aleksandar Fabijanic
77f7c6a9a2 Reactor pollset (#2309)
* SocketAcceptor::setReactor() is broken #2308

* Use PollSet in SocketReactor #2092 (windows tested)

* Use PollSet in SocketReactor #2092 (linux)

* fix reactor tests; add a test

* more test fixes

* fix windows

* minor test fix

* add PollSet::has/empty(); ParallelAcceptor: always use same reactor for a socket, if registered

* clang/gcc fixes

* PollSet behaves differently on windows #2313
2018-05-02 09:55:40 -06:00
zosrothko
4ef29eb041 Restore previous guards for the macro poco_debug() & poco_trace() 2018-04-14 11:36:04 +02:00
Aleksandar Fabijanic
7bb90d6704 fix the fix 2018-03-06 23:39:58 -06:00
Aleksandar Fabijanic
03bc311745 Fix AutoPtr move assignment 2018-03-06 23:16:11 -06:00
Günter Obiltschnig
8187b25264 fixed GH #2106: Undefined behavior in Delegate::equals() 2018-03-06 18:27:27 +01:00
Jörg-Christian Böhme
042ff32424 Add POCO_OS_ANDROID as platfrom definitons (#2186)
* Add POCO_OS_ANDROID as platform definition
2018-03-05 22:02:40 +01:00
Alex Fabijanic
417be8d4d1 Additional Functions for Dynamic::Struct (clear(), swap(), getVar()) #1330 2018-02-26 22:43:04 -06:00
TroudhuK
e317757f18 Manifest: explicitly set visibility for export (#1727)
Useful when using -fvisibility=hidden with GCC > 4!
2018-02-26 21:44:39 -06:00
Günter Obiltschnig
2870dd898c #2172: Add Poco::AutoPtr::reset() and Poco::SharedPtr::reset() 2018-02-21 17:58:05 +01:00
Günter Obiltschnig
fab94585bf reduce maximum character sequence length to 4, in accordance with UTF-8 2018-02-13 21:46:51 +01:00
Conor Burgess
af09a02a34 Stricter JSON standard conformance (#2153) 2018-02-13 07:15:53 -06:00
Aleksandar Fabijanic
2be0661a0b Json unicode escape (#2147)
Json unicode escape (#2142)
2018-02-08 18:42:30 -06:00
Aleksandar Fabijanic
df5968ce16 Json unicode escape && preserveOrder keys sync (#2145)
* Only escape compulsory characters for JSON by default

* add enable/disable unicode escaping flags to stringify #2137

* JSON::Object preserveOrder keys not synced on assignment #2142

* fix assignment preserveOrder and add object copy tests

* add object move tests

* fix comment

* enum for JSON::Object options
2018-02-08 09:08:42 -06:00
Aleksandar Fabijanic
b49ac67225 Data2sql (#2070)
* remove leftover progen files

* remove Data sources and turn headers into forwards

* add SQL files #2059

* Data2sql: adjust Travis, AppVeyor & Makefiles (#2069)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* fix header forwarding

* Data2sql: Fixes for complete Travis CI success (#2071)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Restore DataFormatException

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* construct RowFilter from RecordSet reference instead of pointer

* pass Container ref instead of ptr to Column

* elimitate g++ warnings

* SQL: remove raw pointers from interfaces #2094; add constness and move ops where appropriate

* tidy up Postgres

* ODBC fixes
2018-01-18 11:29:28 -06:00
Jacob Sologub
7726d024ab Fixing NumericString#check function name conflict with check macro on macosx10.12. (#2096)
https://github.com/pocoproject/poco/issues/1451
https://github.com/pocoproject/poco/issues/1693
2018-01-17 09:42:13 -06:00
Günter Obiltschnig
0fac99a3c6 remove volatile 2017-12-16 18:54:49 +01:00