]> granicus.if.org Git - neomutt/commitdiff
restore LogList
authorRichard Russon <rich@flatcap.org>
Sat, 5 May 2018 17:38:27 +0000 (18:38 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 5 May 2018 17:38:27 +0000 (18:38 +0100)
mutt/logging.c
mutt/logging.h

index 47fd2cc25479985d8c637d8575d74aab23782239..a9f390839af31145da481592a665ca1c0ec9a6a3 100644 (file)
@@ -59,7 +59,7 @@ char *LogFileVersion = NULL; /**< Program version */
 /**
  * LogQueue - In-memory list of log lines
  */
-static STAILQ_HEAD(, LogLine) LogQueue = STAILQ_HEAD_INITIALIZER(LogQueue);
+static struct LogList LogQueue = STAILQ_HEAD_INITIALIZER(LogQueue);
 
 int LogQueueCount = 0; /**< Number of entries currently in the log queue */
 int LogQueueMax = 0;   /**< Maximum number of entries in the log queue */
index e64efab1804b9048e43704a99c2ff0eb5f84403b..24393980880232356e21e6432b01cfe0b59554bf 100644 (file)
@@ -62,6 +62,14 @@ struct LogLine
   STAILQ_ENTRY(LogLine) entries;
 };
 
+/**
+ * struct LogList - A list of log lines
+ *
+ * The Log is stored as a STAILQ.
+ * This means that insertions are quick at the head and tail of the list.
+ */
+STAILQ_HEAD(LogList, LogLine);
+
 #define mutt_debug(LEVEL, ...) MuttLogger(0, __FILE__, __LINE__, __func__, LEVEL,      __VA_ARGS__)
 #define mutt_warning(...)      MuttLogger(0, __FILE__, __LINE__, __func__, LL_WARNING, __VA_ARGS__)
 #define mutt_message(...)      MuttLogger(0, __FILE__, __LINE__, __func__, LL_MESSAGE, __VA_ARGS__)