Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove YLISP_DEFERRED and use a static struct.
Tail call optimization is implemented by passing a YLispValue up the struct to represent a function call that is the result of the function. But as it is only used to pass a value up the stack, only a single instance is ever needed. Implement this with a static struct instead of allocating a new YLispValue for every tail call.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters