mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
Turn Event into a tagged union
If we ever need arbitrary data or more than very few bytes on `Events` we just have to add a `void *` field in the `data` union.
This commit is contained in:

committed by
Thiago de Arruda

parent
967fb1aca6
commit
c3cea30cb7
@@ -12,7 +12,7 @@
|
||||
#include "memory.h"
|
||||
#include "misc2.h"
|
||||
|
||||
// event.data will be cleaned up after the event is processed
|
||||
// event will be cleaned up after it gets processed
|
||||
#define _destroy_event(x) // do nothing
|
||||
KLIST_INIT(Event, Event, _destroy_event)
|
||||
|
||||
|
Reference in New Issue
Block a user