26static int idcmpf(
void *arg_p0,
void *arg_p1) {
33 else if (p0->
id < p1->
id)
46static int namecmpf(
void *arg_p0,
void *arg_p1) {
53 else if (p0->
str < p1->
str)
92 template.
str = search_str;
108 Dict_t *d_name_to_id, *d_id_to_name;
157 if ((isym =
find_isym(g, objtype,
id))) {
175 for (i = 0; i < 3; i++) {
177 for (sym =
dtfirst(d_name[i]); sym; sym = nxt) {
178 nxt =
dtnext(d_name[i], sym);
190 for (i = 0; i < 3; i++) {
CDT_API Dtmethod_t * Dttree
CDT_API int dtclose(Dt_t *)
Dict_t * agdtopen(Agraph_t *g, Dtdisc_t *disc, Dtmethod_t *method)
void agfree(Agraph_t *g, void *ptr)
void aginternalmapclearlocalnames(Agraph_t *g)
uint64_t IDTYPE
unique per main graph ID
int agstrfree(Agraph_t *, const char *)
char * agstrdup(Agraph_t *, const char *)
returns a pointer to a reference-counted copy of the argument string, creating one if necessary
char * agstrbind(Agraph_t *g, const char *)
void aginternalmapclose(Agraph_t *g)
int aginternalmapdelete(Agraph_t *g, int objtype, IDTYPE id)
void aginternalmapinsert(Agraph_t *g, int objtype, char *str, IDTYPE id)
static int namecmpf(void *arg_p0, void *arg_p1)
static Dtdisc_t LookupById
int aginternalmaplookup(Agraph_t *g, int objtype, char *str, IDTYPE *result)
char * aginternalmapprint(Agraph_t *g, int objtype, IDTYPE id)
struct IMapEntry_s IMapEntry_t
static IMapEntry_t * find_isym(Agraph_t *g, int objtype, IDTYPE id)
static Dtdisc_t LookupByName
static void closeit(Dict_t **d)
static int idcmpf(void *arg_p0, void *arg_p1)
Dict_t * lookup_by_name[3]
Agclos_t * clos
shared resources