From 1d01e74635d260d15cbd916277ad22c3cc102cfe Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 13 Jun 2022 12:06:16 -0700 Subject: [PATCH] Typedef for Dei/Deo --- src/uxn.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uxn.h b/src/uxn.h index 83aec2b..dc74852 100644 --- a/src/uxn.h +++ b/src/uxn.h @@ -36,6 +36,9 @@ typedef struct Uxn { void (*deo)(struct Uxn *u, Uint8 addr, Uint8 value); } Uxn; -int uxn_boot(Uxn *u, Uint8 *ram, Uint8 (*dei)(struct Uxn *, Uint8), void (*deo)(struct Uxn *, Uint8, Uint8)); +typedef Uint8 Dei(Uxn *u, Uint8 addr); +typedef void Deo(Uxn *u, Uint8 addr, Uint8 value); + +int uxn_boot(Uxn *u, Uint8 *ram, Dei *dei, Deo *deo); int uxn_eval(Uxn *u, Uint16 pc); int uxn_halt(Uxn *u, Uint8 instr, Uint8 err, Uint16 addr);