summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHAL9000 <62116041+NanoBillion@users.noreply.github.com>2025-08-26 10:17:51 +0200
committerGitHub <noreply@github.com>2025-08-26 10:17:51 +0200
commitdbd16c2e4957a33a541d13104c18fe5f4e866401 (patch)
treef8f988eba73f8bca03a6069b37598767b0293f65
parentae295750d1fd924bf9962d3e0c431a75e11a21f5 (diff)
Update srctohex.c: correct some comments.
-rw-r--r--srctohex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/srctohex.c b/srctohex.c
index 3c51536..715e6c9 100644
--- a/srctohex.c
+++ b/srctohex.c
@@ -112,14 +112,14 @@ bool seen(unsigned int aCodepoint) {
return false;
}
-// Return pointer to glyph data or of the replacement character.
+// Return true if codepoint is in gSeen[], false otherwise.
//
bool lookup_codepoint(unsigned int aCodepoint) {
const unsigned int *p = bsearch(&aCodepoint, gSeen, gGlyphs, sizeof *gSeen, compare_codepoints);
return p != NULL;
}
-// Compare callback for qsort and bsearch.
+// Comparison callback function for bsearch().
//
int compare_codepoints(const void *aFirst, const void *aSecond) {
const int *first = aFirst, *second = aSecond;