Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gprstate.c File Reference
#include <gvpr/gprstate.h>
#include <ast/error.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <util/alloc.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(), Gpr_t::bindings, gvprbinding::fn, gv_calloc(), Gpr_t::n_bindings, and gvprbinding::name.

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.

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 Gpr_t::dp, free(), name_used, Gpr_t::name_used, and Gpr_t::tgtname.

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(), Gpr_t::bindings, error, ERROR_ERROR, fname, Gpr_t::n_bindings, gvprbinding::name, and NULL.

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 Gpr_t::tgtname.

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 Gpr_t::argc, Gpr_t::argv, Gpr_t::errf, error, ERROR_ERROR, Gpr_t::flags, name_used, Gpr_t::name_used, Gpr_t::outFile, TV_flat, Gpr_t::tvedge, Gpr_t::tvnext, Gpr_t::tvroot, and Gpr_t::tvt.

Referenced by gvpr_core().

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().