Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gprstate.h File Reference
#include <sfio/sfio.h>
#include "cgraph.h"
#include <ast/ast.h>
#include <setjmp.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <expr/expr.h>
#include "gvpr.h"
Include dependency graph for gprstate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Gpr_t
 
struct  gpr_info
 

Enumerations

enum  trav_type {
  TV_flat , TV_ne , TV_en , TV_bfs ,
  TV_dfs , TV_fwd , TV_rev , TV_postdfs ,
  TV_postfwd , TV_postrev , TV_prepostdfs , TV_prepostfwd ,
  TV_prepostrev
}
 

Functions

Gpr_topenGPRState (gpr_info *)
 
void addBindings (Gpr_t *state, gvprbinding *)
 
gvprbindingfindBinding (Gpr_t *state, char *)
 
void closeGPRState (Gpr_t *state)
 
void initGPRState (Gpr_t *)
 
bool validTVT (long long)
 

Enumeration Type Documentation

◆ trav_type

enum trav_type
Enumerator
TV_flat 
TV_ne 
TV_en 
TV_bfs 
TV_dfs 
TV_fwd 
TV_rev 
TV_postdfs 
TV_postfwd 
TV_postrev 
TV_prepostdfs 
TV_prepostfwd 
TV_prepostrev 

Definition at line 27 of file gprstate.h.

Function Documentation

◆ addBindings()

void addBindings ( Gpr_t state,
gvprbinding bindings 
)
extern

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:

◆ closeGPRState()

void closeGPRState ( Gpr_t state)
extern

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 
)
extern

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)
extern

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)
extern

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)
extern

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: