Renamed cw_str to cw_strlist_elem.

FossilOrigin-Name: eb87e178a02fd3daebd4d168489a4e5c99be67602caa8ea50d5b6702a4d13005
This commit is contained in:
7u83@mail.ru
2015-10-18 07:49:14 +00:00
parent 2704f537e4
commit 0b39c92a79
20 changed files with 50 additions and 41 deletions

View File

@ -7,14 +7,14 @@
*/
#include "stdio.h"
/**
*Key/String pair, used for string tables,
*to display message element names and so on...
*/
struct cw_str {
struct cw_strlist_elem {
/** ID, an integer value */
int id;
/** a pointer to the string */
const char *str;
};
@ -22,8 +22,8 @@ struct cw_str {
#define CW_STR_STOP 0xffffffff
extern const char *cw_strlist_get_str(struct cw_str *s, int id);
extern int cw_strlist_get_id(struct cw_str *s, const char *str);
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);
#endif