Commit Graph

55 Commits

Author SHA1 Message Date
Matthew Woehlke
a7e4804e52 Fix build for C++20
Remove template argument list from constructor names. It has never been
necessary, and is forbidden in C++20 (n.b. CWG 2237¹). This has also
been independently fixed upstream in r449².

Fixes #10952.

¹ https://cplusplus.github.io/CWG/issues/2237.html
² https://sourceforge.net/p/cxx/code/449/
2023-10-09 10:46:05 +02:00
marioalexis
6cb9bdd23a src: Add descriptor protocol support for Python C++ extension modules 2023-04-10 16:53:51 +02:00
wmayer
94f1534350 PyCXX: remove export macro from iterator classes to fix linking error with MSVC 2022-11-03 17:48:15 +01:00
wmayer
38b34fb26a PyCXX: [skip ci] fix linking error with MinGW/MSYS 2022-08-02 17:25:40 +02:00
wmayer
60112e7618 PyCXX: change typedef of PyCxx_ssize_t to fix compiler warnings with MSVC 2022-08-02 16:58:25 +02:00
wmayer
5b83b15b63 PyCXX: update to version 7.1.7 2022-08-01 18:55:51 +02:00
wmayer
114b5be981 PyCXX: update to version 7.1.0 2022-08-01 17:28:23 +02:00
wmayer
a2f509087e PyCXX: update to version 7.0.0 2022-08-01 16:39:26 +02:00
wmayer
04615798ab PyCXX: update to version 6.3.0 2022-08-01 14:53:23 +02:00
wmayer
c6ddc47733 PyCXX: [skip ci] harmonize whitespaces with upstream 2022-08-01 12:36:07 +02:00
mosfet80
d162d9371c Remove old msc ver. Freecad 0.20 require 64 bit and windows 7 or higher. For this reason, msc libraries less than 1800 will no longer be used. (#7036)
* remove msc<1800
2022-06-28 00:42:33 +02:00
wmayer
4547e989ea PyCXX: remove use of std::iterator that is deprecated since C++17 2022-03-12 22:22:00 +01:00
Uwe
bd3f45a208 [CXX] uniform inconsistent line endings 2022-03-12 18:29:51 +01:00
Uwe
426fdbd502 [CXX] fix typos found the spell CI 2022-03-12 18:25:35 +01:00
Uwe
0777b23055 [CXX] fix typos found by the spellchecker CI 2022-03-12 02:19:48 +01:00
Uwe
4087dd6a92 [CXX] fix typos reported by the spellchecker CI 2022-03-12 02:07:38 +01:00
wmayer
4ca4204340 PyCXX: fix warning with function casts for METH_VARARGS or METH_KEYWORDS functions 2022-02-05 14:12:24 +01:00
wmayer
e211b89cf8 port to MSYS2/clang 2021-09-19 19:49:44 +02:00
Aapo
107ed94d8f CXX, Objects.hxx: Python 3.9 Unicode compilation warning fixes suggested by wmayer on the FC forum. 2020-12-23 13:51:52 +01:00
wmayer
52c2e7eff6 PyCXX: In Python 3.9 Unicode API are being deprecated
Taken from https://sourceforge.net/p/cxx/code/430/
2020-12-22 13:05:59 +01:00
wmayer
994d29c9b5 PyCXX: harmonize PyCXX with Python C API 2020-11-30 16:02:54 +01:00
wmayer
a16eec8a7b PyCXX: [skip ci] fix SeqBase<>::max_size() by returning the max. value of a Py_ssize_t instead of -1 2020-11-26 10:17:25 +01:00
wmayer
038b0b6f07 PyCXX: [skip ci] avoid MSVC build failure (still needs a proper fix) 2020-11-25 22:11:32 +01:00
wmayer
ef583e6582 PyCXX: harmonize PyCXX with Python C API 2020-11-25 14:35:59 +01:00
wmayer
3f212ad8ac Porting Py3.8/Py3.9:
Since Py3.3: 'Py_ssize_t PyUnicode_GetSize(PyObject*)' is deprecated [-Wdeprecated-declarations]
Since Py3.9: 'PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)' is deprecated [-Wdeprecated-declarations]
Since Py3.9: 'void PyEval_InitThreads()' is deprecated [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
ae641dc527 Python: [skip ci] tp_print slot has been replaced with tp_vectorcall_offset in Py3.8 2020-06-07 12:53:47 +02:00
wmayer
b50b21576e core system
force strict ISO C++ (-Wpedantic)
TODO: still a lot of variadic macros are not valid ISO C++
2019-09-18 01:01:14 +02:00
Yorik van Havre
8048f93627 Cleanup in doxygen stuff 2019-07-15 23:20:52 -03:00
wmayer
e0db5b62be workaround in PyCXX classes due to removed support of old-style classes 2019-06-25 18:15:10 +02:00
wmayer
3c205946e2 fixes #0003993: Memory leak with Python3 2019-06-24 14:30:12 +02:00
Michal Ulianko
faf8834484 py3.7 fix
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
wmayer
68f6c82eb1 fix -Wcast-function-type 2018-08-19 13:11:08 +02:00
wmayer
5a7bc3376d disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions 2018-04-29 11:00:28 +02:00
wmayer
01a26172c2 disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions 2018-04-18 19:45:07 +02:00
wmayer
a29e8725b4 fix compiler warnings with Py3 2018-04-16 13:51:04 +02:00
wmayer
8ce343291b py3: fox compiler warnings
issue 0000995
2017-06-04 00:17:57 +02:00
looooo
852a984195 py3: CXX: remaining diff:
win: exernalize missing CXX-functions
define PYCXX_PYTHON_2TO3
2017-05-27 20:00:57 -03:00
wmayer
2fe7c2864a comment out unused variables to fix warnings created by clang 2016-12-18 14:20:27 +01:00
wmayer
95768acf65 declare some PyCXX functions for export, add PyCXX wrapper for Vector2dPy class 2016-11-24 15:25:48 +01:00
wmayer
14594dde32 add simple Python wrapper for Vector2d class 2016-11-21 22:01:34 +01:00
wmayer
1d84eac025 fix -Wextra in MeshPart 2016-09-24 00:42:52 +02:00
wmayer
f408f3180b fix -Wextra in FreeCADBase 2016-09-21 15:02:02 +02:00
wmayer
03304ab08d add comment to missing function in original PyCXX sources 2016-08-10 13:22:28 +02:00
wmayer
50ca24fd55 upgrade PyCXX from v6.2.5 to v6.2.8 2016-08-10 11:55:23 +02:00
wmayer
e25a5b7fca fix -Wmismatched-new-delete 2016-08-10 10:04:37 +02:00
Yorik van Havre
8d2e08ffa0 Little fixes to allow pycxx to compile with python3 2014-10-05 17:31:17 -03:00
Yorik van Havre
f87bd2ac35 Patched PyCXX 6.2.5 with original FreeCAD changes made in 6.2.0 2014-09-24 18:19:26 -03:00
Yorik van Havre
69c4b37fe6 Fixed relativepaths in PyCXX 2014-09-24 18:19:25 -03:00
Yorik van Havre
ad3908cca6 Upgraded PyCXX to version 6.2.5 2014-09-24 18:19:25 -03:00
jriegel
c1f0f70b88 Merge remote-tracking branch 'refs/remotes/origin/jriegel/NewWinBuild' into jriegel/review-NewLibPack
Conflicts:
	src/3rdParty/salomesmesh/CMakeLists.txt
2014-08-27 15:39:00 +02:00