Fast and reasonably complete (framebuffer) terminal emulator (Zig fork)

Add argument identifiers for _free/_malloc in prototypes

Mintsuki 701ff1ab 409a298e

Changed files
+3 -3
backends
+2 -2
backends/fb.h
···
struct flanterm_context *flanterm_fb_init(
/* If _malloc and _free are nulled, use the bump allocated instance (1 use only). */
-
void *(*_malloc)(size_t),
-
void (*_free)(void *, size_t),
uint32_t *framebuffer, size_t width, size_t height, size_t pitch,
uint8_t red_mask_size, uint8_t red_mask_shift,
uint8_t green_mask_size, uint8_t green_mask_shift,
···
struct flanterm_context *flanterm_fb_init(
/* If _malloc and _free are nulled, use the bump allocated instance (1 use only). */
+
void *(*_malloc)(size_t size),
+
void (*_free)(void *ptr, size_t size),
uint32_t *framebuffer, size_t width, size_t height, size_t pitch,
uint8_t red_mask_size, uint8_t red_mask_shift,
uint8_t green_mask_size, uint8_t green_mask_shift,
+1 -1
flanterm.h
···
void flanterm_write(struct flanterm_context *ctx, const char *buf, size_t count);
void flanterm_flush(struct flanterm_context *ctx);
void flanterm_full_refresh(struct flanterm_context *ctx);
-
void flanterm_deinit(struct flanterm_context *ctx, void (*_free)(void *, size_t));
void flanterm_get_dimensions(struct flanterm_context *ctx, size_t *rows, size_t *cols);
void flanterm_set_autoflush(struct flanterm_context *ctx, bool state);
···
void flanterm_write(struct flanterm_context *ctx, const char *buf, size_t count);
void flanterm_flush(struct flanterm_context *ctx);
void flanterm_full_refresh(struct flanterm_context *ctx);
+
void flanterm_deinit(struct flanterm_context *ctx, void (*_free)(void *ptr, size_t size));
void flanterm_get_dimensions(struct flanterm_context *ctx, size_t *rows, size_t *cols);
void flanterm_set_autoflush(struct flanterm_context *ctx, bool state);