24 static uint64_t HTML_BIT;
25 static uint64_t CNT_BITS;
46 static Dict_t *Refdict_default;
60 dictref = &Refdict_default;
63 HTML_BIT = ((
unsigned int) 1) << (
sizeof(
unsigned int) * 8 - 1);
82 static char *refstrbind(
Dict_t * strdict,
char *s)
85 r = refsymbind(strdict, s);
94 return refstrbind(refdict(g), s);
103 if (s ==
NIL(
char *))
105 strdict = refdict(g);
106 r = refsymbind(strdict, s);
129 if (s ==
NIL(
char *))
131 strdict = refdict(g);
132 r = refsymbind(strdict, s);
154 if (s ==
NIL(
char *))
157 strdict = refdict(g);
158 r = refsymbind(strdict, s);
159 if (r && (r->
s == s)) {
161 if ((r->
refcnt && CNT_BITS) == 0) {
185 return (key->
refcnt & HTML_BIT);
199 static int refstrprint(
Dict_t * dict,
void *ptr,
void *user)
213 dtwalk(Refdict_default, refstrprint, 0);
int(* Dtcompar_f)(Dt_t *, void *, void *, Dtdisc_t *)
unsigned int(* Dthash_f)(Dt_t *, void *, Dtdisc_t *)
void agmarkhtmlstr(char *s)
void *(* Dtmake_f)(Dt_t *, void *, Dtdisc_t *)
CGRAPH_API int aghtmlstr(char *)
int agdtclose(Agraph_t *g, Dict_t *dict)
int agstrclose(Agraph_t *g)
CGRAPH_API char * agstrdup_html(Agraph_t *, char *)
long agdtdelete(Agraph_t *g, Dict_t *dict, void *obj)
CGRAPH_API int agstrfree(Agraph_t *, char *)
CGRAPH_API char * agstrdup(Agraph_t *, char *)
Dict_t * agdtopen(Agraph_t *g, Dtdisc_t *disc, Dtmethod_t *method)
bool write(Agraph_t *g, FILE *f)
CDT_API Dtmethod_t * Dttree
CDT_API int dtwalk(Dt_t *, int(*)(Dt_t *, void *, void *), void *)
CGRAPH_API void * agalloc(Agraph_t *g, size_t size)
void * agdictobjmem(Dict_t *dict, void *p, size_t size, Dtdisc_t *disc)
int(* Dtevent_f)(Dt_t *, int, void *, Dtdisc_t *)
CGRAPH_API char * agstrbind(Agraph_t *g, char *)
void agdictobjfree(Dict_t *dict, void *p, Dtdisc_t *disc)