summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-11-15 14:17:30 -0500
committerJonathan Bradley <jcb@pikum.xyz>2024-11-15 14:17:30 -0500
commit3beea930f372e85ff23092a70eb70619675a1371 (patch)
tree0977c2886a7d8d88b75fb555d5094d9e4befcf04
parenta9eb78c53613aa9836e4968843eb1a93c9a5bff2 (diff)
pk.h: typos
-rw-r--r--pk.h.in6
-rw-r--r--pkmem.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/pk.h.in b/pk.h.in
index de28ee0..0115872 100644
--- a/pk.h.in
+++ b/pk.h.in
@@ -73,7 +73,7 @@
* pkstr.h: def PK_IMPL_STR before including pk.h to enable ad-hoc.
*
* Provides a simple string structure, allowing the user to track the string
-* length and reserved buffer length. Limites max string length to uint32_t max
+* length and reserved buffer length. Limits max string length to uint32_t max
* size, which is roughly 4GB.
*
* Tip: set reserved to 0 for compile-time strings as well as for strings alloc'd
@@ -99,8 +99,8 @@
* 255 is to be observed for each. The number of mgrs is stored as a uint64_t.
*
* Note that PK_EV_GROW_RATIO is used in two scenarios:
-* 1. when registering an ev on a full mgr
-* 2. when registering a cb on a full ev
+* 1. When registering an ev on a full mgr.
+* 2. When registering a cb on a full ev.
* The grow ratio is applied to the ev count and cb count in their respective
* scenarios. This causes a new allocation for the entire mgr. The existing
* mgr and its evs and cbs are copied to the new larger buffer space.
diff --git a/pkmem.h b/pkmem.h
index e0b544d..1a94ba2 100644
--- a/pkmem.h
+++ b/pkmem.h
@@ -499,7 +499,7 @@ pk_delete_bkt(const void* ptr, size_t sz, struct pk_membucket* bkt)
if (mb->bkt != bkt) continue;
if (mb->blk.size == 0) continue;
if ((void*)(mb->blk.data) == ptr) {
- assert(mb->blk.size == sz && "[PK_MEMORY_HPP] incorrect free size");
+ assert(mb->blk.size == sz && "[pkmem.h] incorrect free size");
mb->blk.size = 0;
mb->bkt = NULL;
found = true;
@@ -510,7 +510,7 @@ pk_delete_bkt(const void* ptr, size_t sz, struct pk_membucket* bkt)
}
}
}
- assert(found && "[PK_MEMORY_HPP] double free or invalid ptr");
+ assert(found && "[pkmem.h] double free or invalid ptr");
#endif
bkt->allocs--;
if (bkt->allocs == 0) {