28 uint64_t
refcnt:
sizeof(uint64_t) * 8 - 1;
58 if (*dictref ==
NULL) {
75#pragma GCC diagnostic push
76#pragma GCC diagnostic ignored "-Wcast-qual"
80#pragma GCC diagnostic pop
118 if (sz > 0 && r ==
NULL) {
149 if (r && r->
s ==
s) {
185static int refstrprint(
void *ptr,
void *user) {
188 fprintf(stderr,
"%s\n", r->
s);
Memory allocation wrappers that exit on failure.
static void * gv_calloc(size_t nmemb, size_t size)
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)
int agdtclose(Agraph_t *g, Dict_t *dict)
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