Commit Graph

6215 Commits

Author SHA1 Message Date
Émilie Feral
ac9b889a67 [poincare] PrintFloat: fix convertFloatToText to display the correct
number of significant digits (instead of the number of decimal digits)
2018-09-19 16:12:12 +02:00
Léa Saviot
f5682a4f30 [apps] Exception should reset active snapshot only if active app exists 2018-09-19 15:50:48 +02:00
Léa Saviot
f785cfc2c8 [poincare] Fix cursor position when replacing a layout 2018-09-19 15:12:12 +02:00
Léa Saviot
4a19208403 [poincare] Comment about making trigonometric computations faster 2018-09-19 14:56:22 +02:00
Émilie Feral
ba5bdcccc4 [poincare] Fix tests with new Rational constructor 2018-09-19 11:46:54 +02:00
Émilie Feral
be348d8539 [poincare] Rational constructor: avoid useless copy 2018-09-19 11:23:11 +02:00
Émilie Feral
94d79e9eb3 [poincare] Fix Integer copy constructor, copy assignement 2018-09-19 11:23:11 +02:00
Léa Saviot
9ad66442e7 [poincare] Coding style and superfluous constructor 2018-09-19 11:05:17 +02:00
Léa Saviot
3d583f83ac [poincare] Fix removal of empty layout not wanted 2018-09-18 18:27:42 +02:00
Émilie Feral
c02691a84b [poincare] Float can be serialize 2018-09-18 18:22:02 +02:00
Émilie Feral
cf8378434d [regression] When creating SimplifiedExpression, use
Number::DecimalNumber constructor to enable to get Infinity or Undefined
2018-09-18 17:50:10 +02:00
Léa Saviot
843e53fdd0 [poincare] Use TreeNode::size() instead of sizeof 2018-09-18 17:43:12 +02:00
Émilie Feral
2c62c30287 [escher] Fix LayoutField: reload was broken because the previous layout
size could not be computed anymore
2018-09-18 17:36:58 +02:00
Léa Saviot
1ec9fd789e [poincare] Use non pilfering Integer constructor in Rational and Decimal 2018-09-18 17:16:18 +02:00
Émilie Feral
365b145cf3 [poincare] Change names: LayoutReference-->Layout 2018-09-18 16:29:44 +02:00
Émilie Feral
f5298650a7 [poincare] Typo 2018-09-18 16:12:04 +02:00
Émilie Feral
52b81c0f98 [ion] Add code to active MPU and forbid memory access to the last 128
bytes of the stack
2018-09-18 16:10:17 +02:00
Émilie Feral
fe1eed8079 [ions] Add MPU registers 2018-09-18 16:10:17 +02:00
Émilie Feral
95c1e2a41f [build] Gdb script: hardware watch point on the end of the stack 2018-09-18 16:10:17 +02:00
Émilie Feral
04e688cf16 [ion] Register: fix potential bug in Register 2018-09-18 16:10:17 +02:00
Romain Goyet
7190b41a2a [ion/blackbox] Use setrlimit to crash if stack usage is too high 2018-09-18 15:45:09 +02:00
Léa Saviot
bfc2f49de0 [apps/code] Fix assertion 2018-09-18 15:32:11 +02:00
Léa Saviot
d2c84bea30 [poincare] Add tests on Helpers::Rotate 2018-09-18 15:26:29 +02:00
Léa Saviot
1852a71f95 [poincare] Remove TreePool::insert method, use Helper::Rotate instead
This removes the use of an enormous buffer on the stack and uses instead
a linear algorithm with one temporary data.
2018-09-18 15:26:29 +02:00
Émilie Feral
7722077e69 [poincare] Avoid useless copy in Rational constructor 2018-09-18 10:05:46 +02:00
Émilie Feral
c4e03d4e4f [quiz] Fix quiz_assert 2018-09-17 17:14:43 +02:00
Émilie Feral
d668eccb4f [poincare] Tests: no variable-size tables 2018-09-17 17:14:43 +02:00
Émilie Feral
f8f0813485 [escher] TextInput: get rid of variable-size tables 2018-09-17 17:14:43 +02:00
Émilie Feral
dae91f1540 [apps] VariableBoxController: get rid of variable-size table 2018-09-17 17:14:43 +02:00
Émilie Feral
ba0f866dc6 [apps] Toolbox: get rid of variable-size tables 2018-09-17 17:14:43 +02:00
Émilie Feral
d17b0f1afb [poincare] Get rid of char table of variable size 2018-09-17 17:14:43 +02:00
Léa Saviot
7f4e76424d [poincare] Fix Ceiling::shallowReduce that added uninitialized nodes 2018-09-17 11:45:06 +02:00
Léa Saviot
be25848578 [poincare] Fix Floor::shallowReduce that added uninitialized nodes 2018-09-17 11:31:02 +02:00
Léa Saviot
4aa2c07321 [poincare] Assert that id is not NoNodeIdentifier
Instead of checking that node is not nullptr, which triggers a false
assertion in node()
2018-09-17 11:29:47 +02:00
Léa Saviot
41ae49ccf5 [poincare] Add non-zero assertion in Integer::udiv 2018-09-17 11:04:28 +02:00
Émilie Feral
257194507c [poincare] Integer: avoid invalid read 2018-09-17 10:54:12 +02:00
Léa Saviot
a4d79332ea [poincare] Fix Warning message exit on special keys
We want the memory full warning to be exited only on OK, EXE, ... but
Syntax warning (for instance) to be exited on any key pressed
2018-09-14 17:59:14 +02:00
Émilie Feral
e0495de6af [poincare] Change name: TreeByReference --> TreeHandle 2018-09-14 17:22:36 +02:00
Léa Saviot
d34ee9ceee [poincare] Fix empty layout insertion in horizontal layout 2018-09-14 17:19:51 +02:00
Émilie Feral
d1e9c460ca [poincare] Discard floor_layout.cpp which is empty 2018-09-14 17:01:36 +02:00
Émilie Feral
8cffbdd7de [poincare] Change name of files: *_layout_node --> *_layout 2018-09-14 16:57:12 +02:00
Émilie Feral
616e4c0bcc [poincare] Change name: LayoutRef --> LayoutReference 2018-09-14 16:57:12 +02:00
Léa Saviot
467cc2b76f [poincare] Add missing check that a pointer is not nullptr 2018-09-14 16:26:40 +02:00
Émilie Feral
3310743151 [poincare] Integer: fix extractedInt: make a special case for 0 2018-09-14 16:19:21 +02:00
Léa Saviot
7edeacd378 [poincare] Add test on ".1.2" that should not be parsed 2018-09-14 16:10:37 +02:00
Émilie Feral
e9a14de101 [poincare] Integer: revert uint8_t--> size_t wrongly changed 2018-09-14 16:06:58 +02:00
Émilie Feral
99d72a8b68 [poincare] I should be used only for std::complex 2018-09-14 15:47:09 +02:00
Émilie Feral
a104d72d25 [poincare] Fix Integer constructor 2018-09-14 15:21:50 +02:00
Léa Saviot
67606d41f5 [poincare] Remove code that handled Static nodes 2018-09-14 15:15:07 +02:00
Émilie Feral
9016d30cef [regression] Fix StoreController::view() 2018-09-14 15:13:20 +02:00