From ba11bb80c96fc9c9124ba2fa929425f558f86824 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Jan 2023 19:27:05 -0500 Subject: Rename create/destroy events to realize/unrealize As evidence that this was confusing, the documentation for these was an outright lie, and I've burned quite a bit of time in the past few days trying to rework things based around that flawed understanding. These names make it clear what these events actually are. If we need actual create/destroy events with a broader scope, they'll have to be added, but I suspect those aren't actually useful anyway. --- test/test_utils.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test_utils.h') diff --git a/test/test_utils.h b/test/test_utils.h index 359f51d..fd2c15b 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -101,10 +101,10 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose) switch (event->type) { case PUGL_NOTHING: return 0; - case PUGL_CREATE: - return fprintf(stderr, "%sCreate\n", prefix); - case PUGL_DESTROY: - return fprintf(stderr, "%sDestroy\n", prefix); + case PUGL_REALIZE: + return fprintf(stderr, "%sRealize\n", prefix); + case PUGL_UNREALIZE: + return fprintf(stderr, "%sUnrealize\n", prefix); case PUGL_MAP: return fprintf(stderr, "%sMap\n", prefix); case PUGL_UNMAP: -- cgit v1.2.1