Commit Graph

4807 Commits (5695d7f445b6b2feb2d9a8b8b04c0d4de6e1b998)

Author SHA1 Message Date
Marius Kintel 77887bc2f8 Added surface not found tests 2014-11-27 19:19:02 -05:00
Marius Kintel 9c628225aa Added some nullspace tests 2014-11-27 19:09:54 -05:00
Marius Kintel 096ba7026d Added test for dxf file not found 2014-11-27 18:52:23 -05:00
Marius Kintel 23f1c4ac3f Updated test results 2014-11-27 17:21:23 -05:00
Marius Kintel 1b9d62c907 Added test for mixing empty 2D and 3D objects 2014-11-27 17:19:01 -05:00
Marius Kintel 4d6db2caa7 fixes crash when intersecting 3 or more 2d objects which results in an empty polygon 2014-11-27 15:27:09 -05:00
Torsten Paul a820487032 Simple implementation of tail-recursion elimination. 2014-11-26 22:53:10 +01:00
Marius Kintel 819f5d085f Moved Polygon typedef out of PolySet class 2014-11-26 15:22:15 -05:00
Marius Kintel 0b58b7d2b3 Compile fix: Don't include Carbon as it pollutes the global namespace with e.g. 'Polygon' 2014-11-26 15:02:44 -05:00
Marius Kintel ecbaec0849 Updated ClipperLib to 6.2.1 2014-11-25 17:41:08 -05:00
Marius Kintel b621287610 C++11 build fix 2014-11-25 17:40:49 -05:00
Marius Kintel 2e8d93d5be Some Expression refactoring 2014-11-25 17:08:14 -05:00
Marius Kintel 74475395f4 Merge remote-tracking branch 'origin/master' into stack-size-hack
Conflicts:
	src/expr.cc
2014-11-25 17:02:58 -05:00
Marius Kintel b03345ec18 bugfix: dump of list comprehension if expression was buggy 2014-11-25 17:01:10 -05:00
Marius Kintel d99dea1db2 bugfix after merging master - dynamic memory caused contexts not to be destructed 2014-11-25 15:53:44 -05:00
Marius Kintel 8ca812ac1a Added infinite module recursion test 2014-11-25 15:28:48 -05:00
Marius Kintel 32bc6ae516 inlined stack pointer retrieval to silence compiler warning 2014-11-25 15:06:20 -05:00
Marius Kintel 2644b19ce7 Reimplemented serialization of expression to string after last refactoring 2014-11-25 15:05:36 -05:00
Marius Kintel 259d1b6435 Initialize StackCheck for all test drivers 2014-11-25 15:04:00 -05:00
Marius Kintel 09d85c79ac Merge branch 'stack-size-hack' of github.com:openscad/openscad into stack-size-hack 2014-11-25 14:48:04 -05:00
Marius Kintel 247b8db57f Merge remote-tracking branch 'origin/master' into stack-size-hack 2014-11-25 14:44:53 -05:00
Torsten Paul 5680dfc0e4 Fix test build. 2014-11-25 20:41:32 +01:00
Marius Kintel 0fa6154bbb Updated test results of all* tests 2014-11-25 14:35:23 -05:00
Marius Kintel df49d9e1a8 Added missing moduledump tests for list comprehension and let 2014-11-25 14:31:54 -05:00
Marius Kintel 07284b86ff Added missing moduledump tests for offset and text 2014-11-25 14:30:03 -05:00
Marius Kintel d73565f59f Added missing moduledump tests for chr, concat, norm, cross, parent_module 2014-11-25 14:28:17 -05:00
Marius Kintel be9b0ee925 indentation 2014-11-25 11:26:14 -05:00
Marius Kintel 4cd712d24d Merge remote-tracking branch 'origin/master' into stack-size-hack
Conflicts:
	src/context.h
	src/control.cc
	src/evalcontext.h
	src/localscope.cc
	src/module.cc
2014-11-25 11:25:37 -05:00
Marius Kintel 945be0020f Updated tests 2014-11-25 00:45:19 -05:00
Marius Kintel 23c9dee265 bugfix: Correctly handle else scopes, handle overrides inside assign scopes 2014-11-25 00:45:00 -05:00
Marius Kintel d195d05008 Test assignment in if, else and assign scopes 2014-11-25 00:44:12 -05:00
Marius Kintel 5072f0752a Don't use assign now that it's deprecated 2014-11-25 00:43:48 -05:00
Marius Kintel 697944c4ef Merge pull request #1022 from openscad/issue347
Support variable assignment in local blocks.
2014-11-24 22:09:15 -05:00
Marius Kintel 6b61e9b1a7 sync 2014-11-24 21:57:36 -05:00
Marius Kintel 3612db6a2f Fixes crash during the second run of a failing recursive module 2014-11-24 20:44:39 -05:00
Marius Kintel f1b29e1db9 Removed old stack measurement code 2014-11-24 18:54:51 -05:00
Marius Kintel 15835271c2 Implemented stackLimit() for Mac OS X 2014-11-24 18:29:13 -05:00
Marius Kintel d8010a0659 Take a copy of the name of the recursive component, don't use a pointer to a temporary string 2014-11-24 18:25:38 -05:00
Marius Kintel e0fbeb8d95 Use StackCheck to detect module recursion 2014-11-24 18:12:58 -05:00
Torsten Paul aa586136ae Remove duplicate warning message. 2014-11-24 23:52:07 +01:00
Torsten Paul c206fab087 Merge branch 'stack-size-hack' of github.com:openscad/openscad into stack-size-hack 2014-11-24 23:46:57 +01:00
Torsten Paul 241723dd8f Merge branch 'stack-size-hack' of github.com:openscad/openscad into stack-size-hack
Conflicts:
	src/expr.cc
2014-11-24 23:46:39 +01:00
Marius Kintel 5debac7de0 Throw and catch RecursionException on module recursion 2014-11-24 17:44:39 -05:00
Marius Kintel edc64bdbe9 forgot exceptions.h 2014-11-24 17:43:13 -05:00
Torsten Paul dc8f559b85 Use class hierarchy for the different types of expressions. 2014-11-24 23:37:42 +01:00
Torsten Paul 756f8079d8 Add class to determine the current stack size. 2014-11-24 23:36:29 +01:00
Torsten Paul ba4c50c631 Add function to retrieve the maximum stack size. 2014-11-24 23:34:57 +01:00
Marius Kintel ab96a82629 Minor cleanup of recursion exception handling 2014-11-24 17:30:05 -05:00
Marius Kintel 54a111472f Initial experiment with using exceptions to handle stack overflows 2014-11-24 12:54:14 -05:00
Torsten Paul 6ed14dafb0 Remove big switch statement from expression evaluation.
The switch statement causes a huge stack overhead that is very bad for
evaluating recursive functions.
2014-11-24 00:53:46 +01:00