-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework print function to return string
This commit reworks the print obs and obsterm functions which just called printf internally and instead replaces them with new `_str()` and `free_*_str()` functions to both return a string and free a string representation of a sparse observable and term. This enables debugging but without forcing you to stdout. Managing the stdout buffers between 2 or 3 languages isn't really feasible, so having a string generator function lets the C user do whatever they need with the string repr.
- Loading branch information
Showing
2 changed files
with
112 additions
and
18 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