Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
intset.c File Reference
#include "config.h"
#include <cgraph/alloc.h>
#include <stddef.h>
#include <common/intset.h>
Include dependency graph for intset.c:

Go to the source code of this file.

Functions

static void * mkIntItem (intitem *obj, Dtdisc_t *disc)
 
static int cmpid (void *k1, void *k2)
 
Dt_topenIntSet (void)
 
void addIntSet (Dt_t *is, size_t v)
 
int inIntSet (Dt_t *is, size_t v)
 

Variables

static Dtdisc_t intSetDisc
 

Function Documentation

◆ addIntSet()

void addIntSet ( Dt_t is,
size_t  v 
)

Definition at line 49 of file intset.c.

References dtinsert, and intitem::id.

Referenced by processTbl().

Here is the caller graph for this function:

◆ cmpid()

static int cmpid ( void *  k1,
void *  k2 
)
static

Definition at line 26 of file intset.c.

◆ inIntSet()

int inIntSet ( Dt_t is,
size_t  v 
)

Definition at line 56 of file intset.c.

References dtmatch.

Referenced by processTbl().

Here is the caller graph for this function:

◆ mkIntItem()

static void * mkIntItem ( intitem obj,
Dtdisc_t disc 
)
static

Definition at line 18 of file intset.c.

References gv_alloc(), and intitem::id.

Here is the call graph for this function:

◆ openIntSet()

Dt_t * openIntSet ( void  )

Definition at line 44 of file intset.c.

References dtopen(), Dtoset, and intSetDisc.

Referenced by make_graph(), and processTbl().

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

Variable Documentation

◆ intSetDisc

Dtdisc_t intSetDisc
static
Initial value:
= {
offsetof(intitem,id),
sizeof(int),
offsetof(intitem,link),
}
void *(* Dtmake_f)(void *, Dtdisc_t *)
Definition cdt.h:50
void free(void *)
static void * mkIntItem(intitem *obj, Dtdisc_t *disc)
Definition intset.c:18
static int cmpid(void *k1, void *k2)
Definition intset.c:26

Definition at line 34 of file intset.c.

Referenced by openIntSet().