27 uint64_t
refcnt:
sizeof(uint64_t) * 8 - 1;
57 if (*dictref ==
NULL) {
74#pragma GCC diagnostic push
75#pragma GCC diagnostic ignored "-Wcast-qual"
79#pragma GCC diagnostic pop
117 if (sz > 0 && r ==
NULL) {
148 if (r && r->
s ==
s) {
184static int refstrprint(
void *ptr,
void *user) {
187 fprintf(stderr,
"%s\n", r->
s);
CDT_API int dtwalk(Dt_t *, int(*)(void *, void *), void *)
CDT_API Dtmethod_t * Dttree
Dict_t * agdtopen(Agraph_t *g, Dtdisc_t *disc, Dtmethod_t *method)
int agdtdelete(Agraph_t *g, Dict_t *dict, void *obj)
void agdictobjfree(void *p)
int agdtclose(Agraph_t *g, Dict_t *dict)
void * agalloc(Agraph_t *g, size_t size)
int aghtmlstr(const char *s)
int agstrfree(Agraph_t *g, const char *s)
char * agstrdup(Agraph_t *g, const char *s)
returns a pointer to a reference-counted copy of the argument string, creating one if necessary
char * agstrbind(Agraph_t *g, const char *s)
char * agstrdup_html(Agraph_t *g, const char *s)
static int store(segment_t *seg, int first, pointf *pts)
int agstrclose(Agraph_t *g)
static refstr_t * refsymbind(Dict_t *strdict, const char *s)
static Dtdisc_t Refstrdisc
static Dict_t * refdict(Agraph_t *g)
static char * agstrdup_internal(Agraph_t *g, const char *s, bool is_html)
static Dict_t * Refdict_default
static char * refstrbind(Dict_t *strdict, const char *s)
void agmarkhtmlstr(char *s)
Agclos_t * clos
shared resources