summary refs log tree commit diff
path: root/tab.c
diff options
context:
space:
mode:
authorCurtis McEnroe2018-09-02 16:13:00 -0400
committerCurtis McEnroe2018-09-02 16:13:00 -0400
commit240f9ebf8445c6e9a569b40876db0681ffc8a1d0 (patch)
tree63dbb1ae562c3eec80d46d0eba85a8ea11086f85 /tab.c
parentccb54d36d93d22b00858a167beb6e0f728986b7a (diff)
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;