Some improvements with dbg levels
FossilOrigin-Name: 4f1f8f238cb3fd097504bfba3b51805d359135256160fe8fdba34908495ec50b
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user