use nix build & meson & zlog
This commit is contained in:
parent
0123623742
commit
346768a144
60 changed files with 13739 additions and 0 deletions
25
src/include/xstring.h
Normal file
25
src/include/xstring.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue