Commit Graph

6061 Commits

Author SHA1 Message Date
Romain Goyet
9b177e8501 [poincare] use Poincare::ExceptionCheckpoint to handle exceptions 2018-09-12 14:11:20 +02:00
Romain Goyet
1f69558787 [poincare] Deal with Bison's global variable by using a static var
We will eventually clean the buffer on the next run if we got
interrupted
2018-09-12 14:11:20 +02:00
Romain Goyet
790793f145 [poincare] Add memory exhaustion tests 2018-09-12 14:11:20 +02:00
Romain Goyet
f1d3a39790 [poincare] Add move tests for TreeByReference 2018-09-12 14:11:20 +02:00
Romain Goyet
fba12dac72 [poincare] Fix freePoolFromNode 2018-09-12 14:11:20 +02:00
Romain Goyet
1728803ab9 [poincare] Actually use move semantics for TreeByReference 2018-09-12 14:11:20 +02:00
Émilie Feral
dd09e23262 [poincare] Fix Multiplication tests 2018-09-12 13:08:55 +02:00
Émilie Feral
974769714e [poincare] Clean Function tests 2018-09-12 12:02:32 +02:00
Émilie Feral
18f51b5429 [poincare] Add tests on Logarithm & fix Logarithm shallowReduce 2018-09-12 11:38:21 +02:00
Émilie Feral
50989c946c [poincare] Fix build of test/fraction_layout 2018-09-12 11:26:13 +02:00
Émilie Feral
9d19a2d8e5 [poincare] Test: assert()-->quiz_assert() 2018-09-12 11:25:33 +02:00
Émilie Feral
c7f19babee [poincare] Addition: add tests 2018-09-12 11:25:16 +02:00
Émilie Feral
276c086471 [poincare] Evaluation: forbid implicit conversion from MatrixComplex to
Complex
2018-09-12 11:09:09 +02:00
Émilie Feral
0c4a5594a0 [poincare] Clean warnings 2018-09-12 11:04:23 +02:00
Émilie Feral
29d0eb8009 [poincare] Power: fix getPolynomialCoefficients infinite loop 2018-09-12 10:51:17 +02:00
Émilie Feral
9dc210c9d8 [poincare] FractionLayout add parenthesis to all children when
serializing
2018-09-12 10:47:14 +02:00
Émilie Feral
81b62ae25e [poincare] SerializationHelperInterface: change
needsParenthesesWithParent for childNeedsParenthesis
2018-09-12 10:47:07 +02:00
Émilie Feral
e15437a5a5 [poincare] LayoutHelper: fix potential mistake 2018-09-12 09:49:34 +02:00
Émilie Feral
bb9583d6dd [solver] When resolving linear system, we count on the side effect of
rank which has thus to be done in-place
2018-09-11 17:50:20 +02:00
Émilie Feral
d2ed06e2dc [code] Add comment on how --code-script option is parsed 2018-09-11 17:03:04 +02:00
Émilie Feral
032db99754 [code] EditorController: avoid dynamic allocation 2018-09-11 17:03:04 +02:00
Émilie Feral
79740e72b0 [code] Avoid dynamic allocation and useless string copy by keeping the
importation status flag in the areaBuffer
2018-09-11 17:03:04 +02:00
Émilie Feral
db3cd16128 [ion] Storage: get rid of dynamic allocation 2018-09-11 17:03:04 +02:00
Léa Saviot
8244106dc2 [poincare] Fix missing cloning in Multiplication::factorizeSineAndCosine 2018-09-11 14:44:13 +02:00
Léa Saviot
68a0d26789 [poincare] Clean some code in multiplication 2018-09-11 14:11:09 +02:00
Léa Saviot
2698bfe30a [poincare] Fix use of removed child in Addition::shallowBeautify 2018-09-11 14:07:40 +02:00
Léa Saviot
8becf5610d [poincare] Assert that expression is child in TreeRef::replaceChild 2018-09-11 14:07:40 +02:00
Émilie Feral
33e491d962 [poincare] Tests: get rid of dynamic allocation in
convert_expression_to_text
2018-09-11 13:20:06 +02:00
Émilie Feral
3268a0cb41 [regression] Get rid of dynamic allocation in Store 2018-09-11 13:20:06 +02:00
Émilie Feral
0410e63e5b [poincare] Integer: add comment 2018-09-11 13:20:06 +02:00
Émilie Feral
880904bcbb [escher] Get rid of DynamicViewController 2018-09-11 13:20:06 +02:00
Léa Saviot
5879ccbb35 [poincare] Add Rational tests and fix those on OverflowedInt 2018-09-11 11:49:27 +02:00
Émilie Feral
86b3d366ca [apps] All apps are allocated in the same union 2018-09-11 11:32:29 +02:00
Émilie Feral
6d9f0c0f0b [apps] Get rid of DynamicViewController in FloatParameterController 2018-09-11 11:32:29 +02:00
Léa Saviot
5cb4258af6 [poincare] Fix RationalNode size computation (when overflow) 2018-09-11 10:58:06 +02:00
Léa Saviot
c482c86f72 [poincare] Fix Rational constructors
- Remove wrong parameter
- Compute the RationalNode size in one method only
- Remove wrong assertion on denominator
2018-09-11 10:51:16 +02:00
Émilie Feral
fd30e4d501 [poincare] Add comment on caps of Decimal 2018-09-10 18:06:37 +02:00
Émilie Feral
5100222bc0 [poincare] Comment: how Integers are allocated 2018-09-10 18:04:12 +02:00
Léa Saviot
c85c375464 [poincare] Fix number parsing (typo + change k_maxExponentLength) 2018-09-10 17:55:59 +02:00
Émilie Feral
e77d6e5c40 [poincare] Fix Integer::udiv 2018-09-10 17:38:45 +02:00
Léa Saviot
1c0fb64a32 [poincare] Make tree constructors that take one tree argument explicit
Otherwise, Logarithm l = clone() is equivalent to Logarithm l =
Logarithm(clone());
2018-09-10 17:34:50 +02:00
Émilie Feral
87f233d815 [poincare] Fix Integer::udiv 2018-09-10 16:32:09 +02:00
Léa Saviot
a436cca301 [poincare] Escape when overflows in Integer::multiplication, usum... 2018-09-10 16:19:59 +02:00
Léa Saviot
8aa8179503 [poincare] Fix Multiplication::privateShallowReduce 2018-09-10 14:33:37 +02:00
Émilie Feral
27064d00f7 [calculation] Get rid of DynamicViewController in HistoryController 2018-09-10 12:59:36 +02:00
Émilie Feral
6ff7e02df5 [poincare] ApproximationHelper: use static_cast<&> on Expression 2018-09-10 12:59:36 +02:00
Léa Saviot
8f5e113f38 [quiz] Put quizes in a setjmp-longjump scope 2018-09-10 10:11:06 +02:00
Émilie Feral
d4723bf6db [poincare] Clean warnings on size/unsize 2018-09-10 10:06:51 +02:00
Émilie Feral
ff8022c1dc [escher] Un-delete the default move constructor on View (used by member
list initialization)
2018-09-10 10:06:51 +02:00
Léa Saviot
aaf5cee967 [poincare] make tests compile 2018-09-10 09:54:37 +02:00