Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace snek_poly_equal and snek_poly_less with snek_poly_cmp
This single function returns <0, =0, >0 depending on the relation of the two values, saving a bunch of space compared with having two separate functions. snek_poly_cmp provides a global order for all snek values, permitting comparisons of strings, list and tuples in addition to floats. Signed-off-by: Keith Packard <keithp@keithp.com>
- Loading branch information
1 parent
53645d2
commit b756548
Showing
4 changed files
with
95 additions
and
87 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
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
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
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