- unified the 2 script context commands

- minor changes in hipadaba and ascon/devser
This commit is contained in:
zolliker
2008-05-30 09:29:44 +00:00
parent b03ddddd8f
commit b5b4da2776
9 changed files with 179 additions and 138 deletions

View File

@ -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