Changed error handling a bit. te_interp returns NaN for bad expressions.

This commit is contained in:
Lewis Van Winkle
2016-01-23 12:09:38 -06:00
parent b7af2e3751
commit 1ee637afef
5 changed files with 63 additions and 31 deletions

View File

@@ -32,7 +32,7 @@ int main(int argc, char *argv[])
printf("\t%*s^\nError near here", err-1, "");
}
/* te_free should always be called after te_compile. */
/* te_free is safe to call on null. */
te_free(n);
return 0;