- unified the 2 script context commands
- minor changes in hipadaba and ascon/devser
This commit is contained in:
16
errormsg.h
16
errormsg.h
@ -11,20 +11,22 @@
|
||||
typedef struct ErrMsg {
|
||||
struct ErrMsg *next;
|
||||
char *text; /**< the message text */
|
||||
char *data; /**< additional text which may be different for the same message */
|
||||
char *cmpr; /**< compressed message text */
|
||||
int cnt; /**< count */
|
||||
time_t last; /**< time of last message */
|
||||
} ErrMsg;
|
||||
|
||||
/* define type ErrMsgList and functions ErrMsgAdd etc. */
|
||||
#define MC_NAME(T) ErrMsg##T
|
||||
#include "mclist.h"
|
||||
|
||||
/** \brief Put a formatted message to the error message list
|
||||
*
|
||||
* The error message list contains only one entry for all messages
|
||||
* with the same text, storing only the count and the last used time.
|
||||
* Characters within sqaure brackets are not taken into account
|
||||
* when comparing messages.
|
||||
*
|
||||
* \param dump the error message list
|
||||
* \param data some additional text (may be NULL)
|
||||
* \param fmt the format for the message
|
||||
* \return the new error message list head
|
||||
*/
|
||||
ErrMsg *ErrPutMsg(ErrMsgList *dump, char *data, char *fmt, ...);
|
||||
ErrMsg *ErrPutMsg(ErrMsg *dump, char *fmt, ...);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user