Seth Hillbrand
24f6cc99fa
Add missing cmake
5 years ago
Seth Hillbrand
256f259627
Fix PyBind11 _ usage to be compatible with i18n
5 years ago
Seth Hillbrand
81d58bcea9
Working python window
5 years ago
Mark Roszko
27bf45417a
Fix typo in arch name
5 years ago
Marek Roszko
db1f457ff9
Add msvc flag definition for ARM64
5 years ago
Marek Roszko
204e615b49
Fix wrong offset in msys2 x64 libcontext implementation not saving fiber data pointer
This should have/may have been causing random crashes on calls into win32 api. fiber data is located at offset 0x20 of the stack not 0x18.
5 years ago
Marek Roszko
ccaf352a5e
Add /safeseh for 32bit msvc libcontext
Special flag thats default for modern platforms already
5 years ago
Marek Roszko
2bf488e0c7
Add cmake option to enable win32 fibers
5 years ago
Marek Roszko
bdb141da0a
Fix fiber local storage offset (crashfix)
5 years ago
Marek Roszko
320b519278
Add assembly based libcontext implementation for MSVC builds
5 years ago
Jon Evans
24e375742b
Update nlohmann::json to 3.9.1
Release notes:
https://github.com/nlohmann/json/releases/tag/v3.9.1
5 years ago
Marek Roszko
907e282347
Silence some msvc warnings
- exception variables that were unused
- RAYSEG2D improperly foward declared with class instead of struct
- unused vars
5 years ago
Marek Roszko
627d321ec5
Remove questionable dropping of inline for msvc in markdown2html
5 years ago
Marek Roszko
9d0b16e814
bool/int type safety
5 years ago
Marek Roszko
b17ba9d632
Tiny tiny cleanup
5 years ago
Seth Hillbrand
1a3ab551cf
Cleanup
FindLineSegmentIntersection() was refactored in 2012 but there are a few
uses that didn't get updated. This finalizes the cleanup
Fixes https://gitlab.com/kicad/code/kicad/issues/7365
5 years ago
Jiajie Chen
ce8039c327
libcontext: Initial support for Apple Silicon
The assembly for apple_arm64 is adapted from linux_arm64 target with small modifications:
1. Re-enable FPU conditional save/restore as apple_x86_64 does
2. Workaround limitation in relocation in assembly for clang
5 years ago
Ian McInerney
580293c7fa
libcontext: Call exit instead of random memory address on MSW x86_64
The original call would jump to a meaningless low address on error,
but the upstream Boost context and 32bit version of this function
call exit to properly terminate the code when this error occurs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6820
5 years ago
Ian McInerney
31c5776fc0
Add missing header to rtree
Another GCC11 header change that broke the build
5 years ago
jean-pierre charras
20880268bf
fix a few Coverity warnings
5 years ago
jean-pierre charras
e5daac97c2
fix compil warrnings (shadowed vars)
5 years ago
Marek Roszko
6dfcc8a755
dxflib_qcad: add <cstring> to includes for strlen() prototype
upstream commit
d4ea687c4a
5 years ago
Marek Roszko
86d4daa591
dxflib_qcad: add support for flipped dimension arrows to dxflib
upstream: 2f8c19e2a4
5 years ago
Marek Roszko
d7e10c22c6
dxflib_qcad: match rename of DimAngularData to DimAngularData2L
upstream 1655be6c7d
5 years ago
Marek Roszko
baebf7036f
dxflib_qcad: Saving dimension with custom text position
upstream commit b4c74180a6
5 years ago
Marek Roszko
5ea6755594
dxflib_qcad: add dimscale support for leaders
upstream commit
049e1bf951
5 years ago
Marek Roszko
ac31cee0cc
dxflib_qcad: fix DL_POLYLINE3D flag definition
upstream commit
3504cddee2
5 years ago
Marek Roszko
4b890212ba
dxflib_qcad: fix LWPOLYLINE without Z values
upstream commit
715f02eee3
5 years ago
Marek Roszko
7fd37c39a1
dxflib_qcad: backport "cleanup"
upstream commits
6a43fa3c6d
f2db48daf1
722ee22230
5 years ago
Marek Roszko
1703eb8494
dxflib_qcad: cherry std::istream usage
upstream e0046e6dbf
5 years ago
Marek Roszko
e8ae7e91e2
Fix MSVC warnings in dl_dxf.cpp
5 years ago
Marek Roszko
d0e504f26e
Better name the include guard
5 years ago
Marek Roszko
f7065a2643
Add missing include guard in gzip-hpp
5 years ago
Marek Roszko
9115f6031f
Suppress msvc warning due to pragma gcc
5 years ago
Ian McInerney
11e6cac42b
Introduce EGL backend support for the OpenGL canvas
wxWidgets 3.1.5+ on Linux will compile with the Wayland EGL
canvas as the backend instead of the X11 backend. This requires a
version of GLEW compiled with the proper EGL defines and a different
header/code for certain parts that are X11 GLEW specific.
This introduces an in-tree version of GLEW that will be built with the
GLEW_EGL flag then statically linked into the KiCad executables when
EGL support is needed.
5 years ago
Jeff Young
a730478d5d
Fixes to Clipper fixes.
Clipper was only broken when rounding down, not when rounding up.
5 years ago
Jeff Young
791a50b493
Remove work-around in favour of real fix in Clipper.
5 years ago
Dominik Wernberger
6a93b523cf
Add const specifier
5 years ago
Ian McInerney
00058f79d1
Update lemon to most recent upstream version
This fixes a missing variable initialization.
5 years ago
Ian McInerney
2becd368d9
Thirdparty: Properly handle error condition in nanosvg
ftell() returns -1 on an error, so it must be a long return
type, and we should test for its failure.
(found by Coverity)
5 years ago
Ian McInerney
68985490c6
Update lemon and its template to most recent upstream version
This should fix some Coverity warnings about memory management
in the lemon tool (less critical), but also fix improper
memory accesses in the generated parsers (labeled critical
by Coverity).
Ref: https://sqlite.org/forum/forumpost/edecf32da3
5 years ago
Marek Roszko
f9e379c82a
Minor format
5 years ago
Marek Roszko
cb013604a9
jump_fcontext should set the outValue of fiber being switched to rather the one being switched from
Fixes #5162
5 years ago
Marek Roszko
3b1f1f7b6a
Use CreateFiberEx instead of CreateFiber, ConvertThreadToFiberEx instead of ConvertThreadToFiber
- Allows specifying FIBER_FLAG_FLOAT_SWITCH to save FP registers (it doesnt by default on win32 but does on win64)
- Specify a commit stack size one byte less than the reserve stack size or else Windows rounds up to the nearest allocation size above the desired size
5 years ago
Seth Hillbrand
a38c2aad1f
ADDED: Support compressed STEP and VRML files
This adds support for opening .stpZ, step.gz and .wrz files where the
files have been compressed using ZIP or gzip according to the "standard"
published by the MBx volunteer forum at
https://www.cax-if.org/documents/rec_prac_file_compression_v12.pdf
Fixes https://gitlab.com/kicad/code/kicad/issues/2479
5 years ago
Tomasz Wlostowski
8b716b2b5c
thirdparty/lemon: post-rebase fixes
5 years ago
Tomasz Wlostowski
4abe71d2ef
libeval_compiler: implemented unary +/- operators
5 years ago
Tomasz Wlostowski
c88c8102e5
libeval_compiler: fixed segfault for "(number)" expressions.
5 years ago
Tomasz Wlostowski
a5a06e3c89
libeval_compiler: general clean up of the Lemon grammar + some smart pointers + killed all memory leaks. WIP!
5 years ago
Seth Hillbrand
7c455f2357
First pass at DRC RTree functionality
This implements a copper-layer RTree with functions for iterating over
the elements in a copper layer and providing Nearest Neighbor returns
for BOARD_CONNECTED_ITEMS
5 years ago