Skip to content

Commit

Permalink
doxy: improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
flatcap committed Apr 11, 2021
1 parent f0eee5f commit b2ba20d
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 12 deletions.
4 changes: 3 additions & 1 deletion alternates.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ enum CommandResult parse_unalternates(struct Buffer *buf, struct Buffer *s,
}

/**
* mutt_alternates_match - XXX
* mutt_alternates_match - Compare an Address to the Un/Alternates lists
* @param addr Address to check
* @retval true Address matches
*/
bool mutt_alternates_match(const char *addr)
{
Expand Down
2 changes: 1 addition & 1 deletion config/subset.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct ConfigSubset
enum ConfigScope scope; ///< Scope of Subset, e.g. #SET_SCOPE_ACCOUNT
struct ConfigSubset *parent; ///< Parent Subset
struct ConfigSet *cs; ///< Parent ConfigSet
struct Notify *notify; ///< Notifications system
struct Notify *notify; ///< Notifications: #NotifyConfig, #EventConfig
};

/**
Expand Down
2 changes: 1 addition & 1 deletion context.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct Context
bool collapsed : 1; ///< Are all threads collapsed?

struct Mailbox *mailbox;
struct Notify *notify; ///< Notifications handler
struct Notify *notify; ///< Notifications: #NotifyContext, #EventContext
};

/**
Expand Down
2 changes: 1 addition & 1 deletion core/account.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct Account
char *name; ///< Name of Account
struct ConfigSubset *sub; ///< Inherited config items
struct MailboxList mailboxes; ///< List of Mailboxes
struct Notify *notify; ///< Notifications handler
struct Notify *notify; ///< Notifications: #NotifyAccount, #EventAccount
void *adata; ///< Private data (for Mailbox backends)

/**
Expand Down
2 changes: 1 addition & 1 deletion core/mailbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ struct Mailbox
*/
void (*mdata_free)(void **ptr);

struct Notify *notify; ///< Notifications handler
struct Notify *notify; ///< Notifications: #NotifyMailbox, #EventMailbox

int gen; ///< Generation number, for sorting
};
Expand Down
2 changes: 1 addition & 1 deletion email/email.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct Email
*/
void (*edata_free)(void **ptr);

struct Notify *notify; ///< Notifications handler
struct Notify *notify; ///< Notifications: #NotifyEmail, #EventEmail
};

/**
Expand Down
2 changes: 1 addition & 1 deletion gui/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ struct Colors
struct ColorList *user_colors;
int num_user_colors;

struct Notify *notify; ///< Notifications system
struct Notify *notify; ///< Notifications: #ColorId, #EventColor
};

/**
Expand Down
5 changes: 3 additions & 2 deletions gui/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ static int dialog_config_observer(struct NotifyCallback *nc)

/**
* dialog_create_simple_index - Create a simple index Dialog
* @param mtype Menu type, e.g. #MENU_ALIAS
* @param wtype Dialog type, e.g. #WT_DLG_ALIAS
* @param mtype Menu type, e.g. #MENU_ALIAS
* @param wtype Dialog type, e.g. #WT_DLG_ALIAS
* @param help_data Data for the Help Bar
* @retval ptr New Dialog Window
*/
struct MuttWindow *dialog_create_simple_index(enum MenuType mtype, enum WindowType wtype,
Expand Down
2 changes: 1 addition & 1 deletion gui/mutt_window.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct MuttWindow
struct MuttWindow *parent; ///< Parent Window
struct MuttWindowList children; ///< Children Windows

struct Notify *notify; ///< Notifications system
struct Notify *notify; ///< Notifications: #NotifyWindow, #EventWindow

struct MuttWindow *focus; ///< Focussed Window
int help_menu; ///< Menu for key bindings, e.g. #MENU_PAGER
Expand Down
2 changes: 1 addition & 1 deletion index/shared_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct IndexSharedData
struct Mailbox *mailbox; ///< Current Mailbox
struct Email *email; ///< Currently selected Email
size_t email_seq; ///< Sequence number of the current email
struct Notify *notify; ///< Notifications handler
struct Notify *notify; ///< Notifications: #NotifyIndex, #IndexSharedData
};

void index_shared_data_free(struct MuttWindow *win, void **ptr);
Expand Down
2 changes: 1 addition & 1 deletion pattern/dlgpattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static struct Menu *create_pattern_menu(struct MuttWindow *dlg)

/**
* free_pattern_menu - Free the Pattern Completion menu
* @param ptr Menu to free
* @param menu Menu to free
*/
static void free_pattern_menu(struct Menu *menu)
{
Expand Down

0 comments on commit b2ba20d

Please sign in to comment.