From 6965b68b4f9dc8ae96ee17e0d725c8b7c66242ca Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Mon, 16 Dec 2024 12:38:43 +0000 Subject: [PATCH] Clean up `HashSet` comment and `Terminal` typedef --- src/terminal/terminal.h | 2 +- src/util/hashset.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/terminal/terminal.h b/src/terminal/terminal.h index 09f1fbde..0e8ebf03 100644 --- a/src/terminal/terminal.h +++ b/src/terminal/terminal.h @@ -84,7 +84,7 @@ typedef struct { bool can_be_truncated; } TermInputBuffer; -typedef struct Terminal { +typedef struct { TermFeatureFlags features; unsigned int width; // Terminal width (in columns) unsigned int height; // Terminal height (in rows) diff --git a/src/util/hashset.h b/src/util/hashset.h index 4304d97a..4de00d61 100644 --- a/src/util/hashset.h +++ b/src/util/hashset.h @@ -5,9 +5,8 @@ #include #include "macros.h" -// This is a container type for holding a set of related strings. -// It uses hashing for primary lookups and separate chaining for -// collision resolution. +// A container type for holding a set of strings, using hashing for +// primary lookups and separate chaining for collision resolution. typedef struct { struct HashSetEntry **table; size_t table_size;