Some refactors to main.c#15
Conversation
(cherry picked from commit 13cf484b86d533e0bdaec9ba3cc484baebc3ffe9) (cherry picked from commit 007d6b6d4462eb1def16ed1de5494d1c2afbd7d1)
If you are writing them because you need them or want to use them they are probably not useless. I guess you'd want them for more of a library-like usage of pjass. So maybe having one general function could be mergeable. Personally i don't have any uses for these atm. Maybe refactor this PR to use the general API and i can see if i like it. For the current state of this PR, i do like putting stuff in a |
Exactly so. I'm using it as a dependency of Ghost++. In my branch, there seem to be some preexisting memory leaks due to the original authors' focus on a standalone executable.
Sure. I messed up while rebasing those features, so that's why I decided to PR this small refactor before investing more time in a PR I was not confident you'd find appealing.
Yeah, I only added that to please Will circle back to this. |
I'm currently working on several features(*) I intend to PR. These refactors are meant to simplify their diffs.
(*) Features:
3.1. Parse in-memory buffer(s).
3.2. Output to a buffer instead of stdout.
Do let me know if you find some of these features/APIs useless or w.e.