about summary refs log tree commit diff
path: root/cache.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-07-30 18:55:09 -0400
committerJune McEnroe <june@causal.agency>2022-07-30 18:55:09 -0400
commitb373a5c0919c972f69d44785ad74aa37afe113de (patch)
tree019e418d6c7cbe347db0b3aa522a5f0ac93a5145 /cache.c
parentSwitch to cache interfaces (diff)
downloadcatgirl-b373a5c0919c972f69d44785ad74aa37afe113de.tar.gz
catgirl-b373a5c0919c972f69d44785ad74aa37afe113de.zip
Rename cache{Prefix,Substr} to cache{Complete,Search}
Diffstat (limited to '')
-rw-r--r--cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache.c b/cache.c
index a5348d2..fe2f2a4 100644
--- a/cache.c
+++ b/cache.c
@@ -130,7 +130,7 @@ enum Color cacheColor(uint id, const char *key) {
 	return (node ? node->color : Default);
 }
 
-const char *cachePrefix(struct Cursor *curs, uint id, const char *prefix) {
+const char *cacheComplete(struct Cursor *curs, uint id, const char *prefix) {
 	size_t len = strlen(prefix);
 	if (curs->gen != gen) curs->node = NULL;
 	for (
@@ -145,7 +145,7 @@ const char *cachePrefix(struct Cursor *curs, uint id, const char *prefix) {
 	return NULL;
 }
 
-const char *cacheSubstr(struct Cursor *curs, uint id, const char *substr) {
+const char *cacheSearch(struct Cursor *curs, uint id, const char *substr) {
 	if (curs->gen != gen) curs->node = NULL;
 	for (
 		curs->gen = gen, curs->node = (curs->node ? curs->node->next : head);