Some improvements with dbg levels

FossilOrigin-Name: 4f1f8f238cb3fd097504bfba3b51805d359135256160fe8fdba34908495ec50b
This commit is contained in:
7u83@mail.ru
2018-03-17 18:32:44 +00:00
parent 93914678e0
commit d4fa4269e7
29 changed files with 215 additions and 213 deletions

View File

@ -8,25 +8,25 @@
/**
*Key/String pair, used for string tables,
*to display message element names and so on...
* Key/String pair, used for string tables,
* to display message element names, help texts
* and so on...
*/
struct cw_strlist_elem {
/** ID, an integer value */
int id;
/** a pointer to the string */
const char *str;
struct cw_StrListElem {
int id; /**< ID, an integer value */
const char *str; /**< a pointer to the string */
const char *descr; /**< Description */
};
typedef struct cw_strlist_elem* cw_strlist_t;
typedef struct cw_StrListElem* cw_StrList_t;
/** Stopper, indicates the last element in a strlist */
#define CW_STR_STOP 0xffffffff
extern const char *cw_strlist_get_str(struct cw_strlist_elem *s, int id);
extern int cw_strlist_get_id(struct cw_strlist_elem *s, const char *str);
extern const char *cw_strlist_get_str(struct cw_StrListElem *s, int id);
extern int cw_strlist_get_id(struct cw_StrListElem *s, const char *str);
#endif