From f90d5e1f07fdc9dea7c24b11107049b613a5be7a Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Sun, 29 Jan 2023 22:22:54 +0100 Subject: More tests and documentation Also improve find file and switch buffer a bit. Implement word backward/forward. --- src/keyboard.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/keyboard.h') diff --git a/src/keyboard.h b/src/keyboard.h index a44a58f..09a71be 100644 --- a/src/keyboard.h +++ b/src/keyboard.h @@ -77,8 +77,6 @@ struct keyboard_update { }; struct reactor; -/** Typedef for any allocation function */ -typedef void *(*alloc_fn)(size_t); /** * Create a new keyboard @@ -112,7 +110,7 @@ struct keyboard keyboard_create_fd(struct reactor *reactor, int fd); */ struct keyboard_update keyboard_update(struct keyboard *kbd, struct reactor *reactor, - alloc_fn frame_alloc); + void *(*frame_alloc)(size_t)); /** * Does key represent the same key press as mod and c. -- cgit v1.2.3