First version of the simplifications.

Change-Id: Idbddb92b6bd098d6b862f5fc4abd741948e15194
This commit is contained in:
Felix Raimundo
2016-04-01 10:40:54 +02:00
parent 6232079f02
commit ed2c4cfb59
37 changed files with 460 additions and 149 deletions

View File

@@ -1,8 +1,11 @@
#include <poincare/float.h>
#include <stdlib.h>
#include <string.h>
extern "C" {
#include <assert.h>
}
#include <poincare/float.h>
Float::Float(float f) : m_float(f) {
}
@@ -30,3 +33,13 @@ bool Float::valueEquals(Expression * e) {
assert(e->type() == Expression::Type::Float);
return m_float == ((Float *)e)->m_float;
}
#ifdef DEBUG
int Float::getPrintableVersion(char* txt) {
const char* printable = "float number";
for(int i=0; printable[i]!='\0'; i++) {
txt[i] = printable[i];
}
return strlen(printable);
}
#endif