Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gprstate.c File Reference
#include <gvpr/gprstate.h>
#include <ast/error.h>
#include <cgraph/alloc.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for gprstate.c:

Go to the source code of this file.

Functions

bool validTVT (long long c)
 
void initGPRState (Gpr_t *state)
 
Gpr_topenGPRState (gpr_info *info)
 
static int bindingcmpf (const void *key, const void *ip)
 
gvprbindingfindBinding (Gpr_t *state, char *fname)
 
void addBindings (Gpr_t *state, gvprbinding *bindings)
 
void closeGPRState (Gpr_t *state)
 

Variables

static int name_used
 

Function Documentation

◆ addBindings()

void addBindings ( Gpr_t state,
gvprbinding bindings 
)

Definition at line 91 of file gprstate.c.

References bindingcmpf(), gvprbinding::fn, gv_calloc(), gvprbinding::name, and state.

Referenced by gvpr_core().

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

◆ bindingcmpf()

static int bindingcmpf ( const void *  key,
const void *  ip 
)
static

Definition at line 59 of file gprstate.c.

References key.

Referenced by addBindings(), and findBinding().

Here is the caller graph for this function:

◆ closeGPRState()

void closeGPRState ( Gpr_t state)

Definition at line 119 of file gprstate.c.

References free(), name_used, and state.

Referenced by gvpr().

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

◆ findBinding()

gvprbinding * findBinding ( Gpr_t state,
char *  fname 
)

Definition at line 67 of file gprstate.c.

References bindingcmpf(), error(), ERROR_ERROR, fname, key, NULL, and state.

Referenced by getval().

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

◆ initGPRState()

void initGPRState ( Gpr_t state)

Definition at line 30 of file gprstate.c.

References state.

Referenced by gvpr_core().

Here is the caller graph for this function:

◆ openGPRState()

Gpr_t * openGPRState ( gpr_info info)

Definition at line 34 of file gprstate.c.

References error(), ERROR_ERROR, name_used, state, and TV_flat.

Referenced by gvpr_core().

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

◆ validTVT()

bool validTVT ( long long  c)

Definition at line 26 of file gprstate.c.

References TV_flat, and TV_prepostrev.

Referenced by convert(), and setval().

Here is the caller graph for this function:

Variable Documentation

◆ name_used

int name_used
static

Definition at line 24 of file gprstate.c.

Referenced by closeGPRState(), and openGPRState().