Fix whitespace, add asserts, add string to double function, fix bugs
Finally added StringToDouble function (should work for the majority of the cases). Additionally fixed bug in StringFromDouble related to incorrect rounding and added asserts (should add more asserts in the following commits). Also implemented some optimizations from Burger and Dybvig paper.
This commit is contained in:
@@ -12,7 +12,7 @@ void BH_StringFree(char *string)
|
||||
char *BH_StringCopy(const char *string)
|
||||
{
|
||||
char *result;
|
||||
|
||||
|
||||
result = malloc(strlen(string) + 1);
|
||||
if (result)
|
||||
strcpy(result, string);
|
||||
|
||||
Reference in New Issue
Block a user