aboutsummaryrefslogtreecommitdiff
path: root/event-basic.c
AgeCommit message (Collapse)AuthorFilesLines
2024-05-30remove the vis->initialized memberRandy Palamar1-5/+0
I already fixed the reason that this even existed (vis_event_emit getting called at random times when the editor wasn't ready). The option checking in main() was moved up because I noticed it was in the wrong place while thinking about where to emit the INIT event. There is no reason to do a bunch of useless work just to print the version.
2024-05-21remove some ui pointer chasingRandy Palamar1-1/+1
There only exists a single Ui so there is no need to force a pointer redirection for accessing it. The Ui member was moved down in vis-core.h to punt around an issue with the way lua checks for existing objects. It may show up again as I flatten more structs.
2024-05-21replace UiTerm with Ui & delete function pointersRandy Palamar1-1/+1
2024-05-21cleanup vis event interfaceRandy Palamar1-0/+23
This removes the function pointer interface which was adding needless complexity and making it difficult to add new events. Now if new events are only meant for lua they only need to be added to the lua interface. This will also have a minor reduction in runtime memory usage and produce a smaller binary. The only runtime difference is that QUIT happens after all windows have been closed and their files freed.