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

Replace C++ style comments with C style comments in fb.h

mintsuki 347d9cf1 6c2b3311

Changed files
+7 -7
backends
+7 -7
backends/fb.h
···
};
struct flanterm_context *flanterm_fb_init(
-
// If _malloc and _free are nulled, use the bump allocated instance (1 use only).
+
/* 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,
uint8_t blue_mask_size, uint8_t blue_mask_shift,
-
uint32_t *canvas, // If nulled, no canvas.
-
uint32_t *ansi_colours, uint32_t *ansi_bright_colours, // If nulled, default.
-
uint32_t *default_bg, uint32_t *default_fg, // If nulled, default.
-
uint32_t *default_bg_bright, uint32_t *default_fg_bright, // If nulled, default.
-
// If font is null, use default font and font_width and font_height ignored.
+
uint32_t *canvas, /* If nulled, no canvas. */
+
uint32_t *ansi_colours, uint32_t *ansi_bright_colours, /* If nulled, default. */
+
uint32_t *default_bg, uint32_t *default_fg, /* If nulled, default. */
+
uint32_t *default_bg_bright, uint32_t *default_fg_bright, /* If nulled, default. */
+
/* If font is null, use default font and font_width and font_height ignored. */
void *font, size_t font_width, size_t font_height, size_t font_spacing,
-
// If scale_x and scale_y are 0, automatically scale font based on resolution.
+
/* If scale_x and scale_y are 0, automatically scale font based on resolution. */
size_t font_scale_x, size_t font_scale_y,
size_t margin
);