24 lines
701 B
C
24 lines
701 B
C
#if !defined(__XSTRING_H__)
|
|
|
|
#define __XSTRING_H__ 1
|
|
|
|
#include "objmgr.h"
|
|
|
|
typedef struct {
|
|
htab_t tab;
|
|
zarray_t strings;
|
|
} xstring_typedata_t;
|
|
|
|
#define XSTRING_OBJ_TYPE_HTAB(obj) \
|
|
(((xstring_typedata_t*)obj->type->typedata)->tab)
|
|
#define XSTRING_OBJ_TYPE_STRINGS(obj) \
|
|
(((xstring_typedata_t*)obj->type->typedata)->strings)
|
|
|
|
#define XSTRING_TYPE_HTAB(type) (((xstring_typedata_t*)type->typedata)->tab)
|
|
|
|
#define XSTRING_TYPE_STRINGS(type) \
|
|
(((xstring_typedata_t*)type->typedata)->strings)
|
|
|
|
extern int register_xstring(objmgr_t*, int, int);
|
|
|
|
#endif
|