From e251ff26258cb514b85d5e7260e80fe9cfe8acf3 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Tue, 19 Sep 2017 00:04:44 +0200 Subject: [PATCH] tags: rename HeaderTag to TagList --- mutt_tags.c | 8 ++++---- mutt_tags.h | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mutt_tags.c b/mutt_tags.c index 29196c7ee..65651a552 100644 --- a/mutt_tags.c +++ b/mutt_tags.c @@ -35,9 +35,9 @@ * * Free tag */ -static void hdr_tags_free_tag_list(struct HeaderTag **kw_list) +static void hdr_tags_free_tag_list(struct TagList **kw_list) { - struct HeaderTag *tmp = NULL; + struct TagList *tmp = NULL; while ((tmp = *kw_list) != NULL) { @@ -130,7 +130,7 @@ const char *hdr_tags_get_transformed_for(char *name, struct Header *h) if (!h || !h->tags || !h->tags->tag_list) return NULL; - struct HeaderTag *tag = h->tags->tag_list; + struct TagList *tag = h->tags->tag_list; while (tag) { if (strcmp(tag->name, name) == 0) @@ -158,7 +158,7 @@ void hdr_tags_init(struct Header *h) */ static void hdr_tags_add(struct Header *h, char *new_tag) { - struct HeaderTag *ttmp = NULL; + struct TagList *ttmp = NULL; char *new_tag_transformed = NULL; new_tag_transformed = hash_find(TagTransforms, new_tag); diff --git a/mutt_tags.h b/mutt_tags.h index 65b8e3c22..117b0e4d0 100644 --- a/mutt_tags.h +++ b/mutt_tags.h @@ -27,18 +27,18 @@ #include "context.h" /** - * struct HeaderTag - Mail Header Tags + * struct TagList - Mail Header Tags * * Keep a linked list of header tags and their transformed values. * Textual tags can be transformed to symbols to save space. * - * @sa HeaderTags#tag_list + * @sa TagLists#tag_list */ -struct HeaderTag +struct TagList { char *name; char *transformed; - struct HeaderTag *next; + struct TagList *next; }; /** @@ -54,7 +54,7 @@ struct HeaderTags /* With hidden tags */ char *tags_with_hidden; - struct HeaderTag *tag_list; + struct TagList *tag_list; }; void hdr_tags_free(struct Header *h); -- 2.40.0