Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
imap.c File Reference
#include <cgraph/cghdr.h>
#include <stdbool.h>
#include <stdlib.h>
#include <util/alloc.h>
Include dependency graph for imap.c:

Go to the source code of this file.

Data Structures

struct  IMapEntry_s
 

Typedefs

typedef struct IMapEntry_s IMapEntry_t
 

Functions

static int idcmpf (void *arg_p0, void *arg_p1)
 
static int namecmpf (void *arg_p0, void *arg_p1)
 
bool aginternalmaplookup (Agraph_t *g, int objtype, char *str, IDTYPE *result)
 
void aginternalmapinsert (Agraph_t *g, int objtype, char *str, IDTYPE id)
 
static IMapEntry_tfind_isym (Agraph_t *g, int objtype, IDTYPE id)
 
char * aginternalmapprint (Agraph_t *g, int objtype, IDTYPE id)
 
int aginternalmapdelete (Agraph_t *g, int objtype, IDTYPE id)
 
void aginternalmapclearlocalnames (Agraph_t *g)
 
static void closeit (Dict_t **d)
 
void aginternalmapclose (Agraph_t *g)
 

Variables

static Dtdisc_t LookupByName
 
static Dtdisc_t LookupById
 

Typedef Documentation

◆ IMapEntry_t

typedef struct IMapEntry_s IMapEntry_t

Function Documentation

◆ aginternalmapclose()

void aginternalmapclose ( Agraph_t g)

Definition at line 196 of file imap.c.

References Ag_G_global, Agraph_s::clos, closeit(), Agclos_s::lookup_by_id, and Agclos_s::lookup_by_name.

Referenced by agclose().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ aginternalmapdelete()

int aginternalmapdelete ( Agraph_t g,
int  objtype,
IDTYPE  id 
)

Definition at line 149 of file imap.c.

References AGEDGE, AGINEDGE, agstrfree(), Agraph_s::clos, dtdelete, find_isym(), free(), Agclos_s::lookup_by_id, Agclos_s::lookup_by_name, and IMapEntry_s::str.

Referenced by agfreeid(), and aginternalmapclearlocalnames().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ aginternalmapinsert()

void aginternalmapinsert ( Agraph_t g,
int  objtype,
char *  str,
IDTYPE  id 
)

Definition at line 103 of file imap.c.

References agdtopen(), AGEDGE, AGINEDGE, agstrdup(), Agraph_s::clos, dtinsert, Dttree, gv_alloc(), id, IMapEntry_s::id, Agclos_s::lookup_by_id, Agclos_s::lookup_by_name, LookupById, LookupByName, NULL, IMapEntry_s::str, and str.

Referenced by agmapnametoid().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ aginternalmaplookup()

bool aginternalmaplookup ( Agraph_t g,
int  objtype,
char *  str,
IDTYPE result 
)

Definition at line 82 of file imap.c.

References AGEDGE, AGINEDGE, agstrbind(), Agraph_s::clos, dtsearch, IMapEntry_s::id, Agclos_s::lookup_by_name, IMapEntry_s::str, and str.

Referenced by agmapnametoid().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ aginternalmapprint()

char * aginternalmapprint ( Agraph_t g,
int  objtype,
IDTYPE  id 
)

Definition at line 139 of file imap.c.

References find_isym(), NULL, and IMapEntry_s::str.

Referenced by agnameof().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeit()

static void closeit ( Dict_t **  d)
static

Definition at line 184 of file imap.c.

References dtclose(), and NULL.

Referenced by aginternalmapclose().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_isym()

static IMapEntry_t * find_isym ( Agraph_t g,
int  objtype,
IDTYPE  id 
)
static

Definition at line 124 of file imap.c.

References AGEDGE, AGINEDGE, Agraph_s::clos, dtsearch, id, IMapEntry_s::id, Agclos_s::lookup_by_id, and NULL.

Referenced by aginternalmapdelete(), and aginternalmapprint().

Here is the caller graph for this function:

◆ idcmpf()

static int idcmpf ( void *  arg_p0,
void *  arg_p1 
)
static

Definition at line 27 of file imap.c.

References IMapEntry_s::id.

◆ namecmpf()

static int namecmpf ( void *  arg_p0,
void *  arg_p1 
)
static

Definition at line 47 of file imap.c.

References IMapEntry_s::str.

Variable Documentation

◆ LookupById

Dtdisc_t LookupById
static
Initial value:
= {
0,
0,
offsetof(IMapEntry_t, iddict_link),
}
node NULL
Definition grammar.y:163
static int idcmpf(void *arg_p0, void *arg_p1)
Definition imap.c:27

Definition at line 73 of file imap.c.

Referenced by aginternalmapinsert().

◆ LookupByName

Dtdisc_t LookupByName
static
Initial value:
= {
0,
0,
offsetof(IMapEntry_t, namedict_link),
}
static int namecmpf(void *arg_p0, void *arg_p1)
Definition imap.c:47

Definition at line 64 of file imap.c.

Referenced by aginternalmapinsert().