about summary refs log tree commit diff
path: root/tab.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-02 16:13:00 -0400
committerJune McEnroe <june@causal.agency>2018-09-02 16:13:00 -0400
commit240f9ebf8445c6e9a569b40876db0681ffc8a1d0 (patch)
tree63dbb1ae562c3eec80d46d0eba85a8ea11086f85 /tab.c
parentAdd status indicators (diff)
downloadcatgirl-240f9ebf8445c6e9a569b40876db0681ffc8a1d0.tar.gz
catgirl-240f9ebf8445c6e9a569b40876db0681ffc8a1d0.zip
Use PascalCase for constants
Begone underscores.
Diffstat (limited to 'tab.c')
-rw-r--r--tab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tab.c b/tab.c
index a242365..9a1e478 100644
--- a/tab.c
+++ b/tab.c
@@ -121,14 +121,14 @@ struct Tag tabTag(const char *word) {
 		return entry->tag;
 	}
 	iter = NULL;
-	return TAG_NONE;
+	return TagNone;
 }
 
 const char *tabNext(struct Tag tag, const char *prefix) {
 	size_t len = strlen(prefix);
 	struct Entry *start = (iter ? iter->next : head);
 	for (struct Entry *entry = start; entry; entry = entry->next) {
-		if (entry->tag.id != TAG_NONE.id && entry->tag.id != tag.id) continue;
+		if (entry->tag.id != TagNone.id && entry->tag.id != tag.id) continue;
 		if (strncasecmp(entry->word, prefix, len)) continue;
 		iter = entry;
 		return entry->word;
ED strategyJune McEnroe 2021-09-21Recalculate various lengths only as neededJune McEnroe 2021-09-21Rewrite pngo, add explicit optionsJune McEnroe 2021-09-16Fix /* **/ comment matchingJune McEnroe 2021-09-15Remove typer, add downgrade to READMEJune McEnroe 2021-09-15Set bot mode on downgradeJune McEnroe 2021-09-15Enter capsicum in downgradeJune McEnroe 2021-09-15Factor out common parts of downgrade messagesJune McEnroe 2021-09-14Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe 2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe