Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
imap.c File Reference
#include <cgraph/cghdr.h>
#include <stdbool.h>
#include <stddef.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)
 
int 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 198 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 151 of file imap.c.

References AGEDGE, agfree(), AGINEDGE, agstrfree(), Agraph_s::clos, dtdelete, find_isym(), 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 104 of file imap.c.

References agdtopen(), AGEDGE, AGINEDGE, AGNEW, agstrdup(), Agraph_s::clos, dtinsert, Dttree, 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()

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

Definition at line 81 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 141 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 186 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 126 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 26 of file imap.c.

References IMapEntry_s::id.

◆ namecmpf()

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

Definition at line 46 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:149
static int idcmpf(void *arg_p0, void *arg_p1)
Definition imap.c:26

Definition at line 72 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:46

Definition at line 63 of file imap.c.

Referenced by aginternalmapinsert().