Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
ingraphs.c File Reference

supports user-supplied data More...

#include <cgraph/cgraph.h>
#include <cgraph/ingraphs.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <util/gv_fopen.h>
Include dependency graph for ingraphs.c:

Go to the source code of this file.

Functions

static void nextFile (ingraph_state *sp)
 
Agraph_tnextGraph (ingraph_state *sp)
 
static ingraph_statenew_ing (ingraph_state *sp, char **files, Agraph_t **graphs, Agraph_t *(*readf)(void *))
 
ingraph_statenewIng (ingraph_state *sp, char **files, Agraph_t *(*readf)(void *))
 
ingraph_statenewIngGraphs (ingraph_state *sp, Agraph_t **graphs, Agraph_t *(*readf)(void *))
 
static Agraph_tdflt_read (void *fp)
 
ingraph_statenewIngraph (ingraph_state *sp, char **files)
 
void closeIngraph (ingraph_state *sp)
 
char * fileName (ingraph_state *sp)
 Return name of current file being processed.
 

Function Documentation

◆ closeIngraph()

void closeIngraph ( ingraph_state sp)

Definition at line 147 of file ingraphs.c.

References ingraph_state::Files, ingraph_state::fp, free(), ingraph_state::heap, ingraph_state::ingraphs, and ingraph_state::u.

Referenced by gvpr().

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

◆ dflt_read()

static Agraph_t * dflt_read ( void *  fp)
static

Definition at line 133 of file ingraphs.c.

References agread(), and NULL.

Referenced by newIngraph().

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

◆ fileName()

char * fileName ( ingraph_state sp)

Definition at line 156 of file ingraphs.c.

References ingraph_state::ctr, ingraph_state::Files, fname, ingraph_state::ingraphs, and ingraph_state::u.

Referenced by add_graph_to_viewport_from_file(), CMainWindow::addFile(), glCompButtonAddPngGlyph(), gvpr_core(), loadAttrs(), MdiChild::loadFile(), MdiChild::loadPreview(), main(), main(), nextFile(), ImageViewer::open(), save_graph_with_file_name(), MdiChild::saveAs(), MdiChild::saveFile(), and stripFileExtension().

Here is the caller graph for this function:

◆ new_ing()

static ingraph_state * new_ing ( ingraph_state sp,
char **  files,
Agraph_t **  graphs,
Agraph_t *(*)(void *)  readf 
)
static

Definition at line 88 of file ingraphs.c.

References ingraph_state::ctr, ingraph_state::errors, ingraph_state::Files, ingraph_state::fp, free(), ingraph_state::Graphs, ingraph_state::heap, ingraph_state::ingraphs, malloc(), NULL, ingraph_state::readf, and ingraph_state::u.

Referenced by newIng(), and newIngGraphs().

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

◆ newIng()

ingraph_state * newIng ( ingraph_state sp,
char **  files,
Agraph_t *(*)(void *)  readf 
)

Definition at line 120 of file ingraphs.c.

References new_ing().

Referenced by gvpr_core(), and newIngraph().

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

◆ newIngGraphs()

ingraph_state * newIngGraphs ( ingraph_state sp,
Agraph_t **  graphs,
Agraph_t *(*)(void *)  readf 
)

Definition at line 128 of file ingraphs.c.

References new_ing().

Referenced by gvpr_core().

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

◆ newIngraph()

ingraph_state * newIngraph ( ingraph_state sp,
char **  files 
)

Definition at line 140 of file ingraphs.c.

References dflt_read(), and newIng().

Referenced by main(), main(), and readGraphs().

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

◆ nextFile()

static void nextFile ( ingraph_state sp)
static

Definition at line 31 of file ingraphs.c.

References agsetfile(), ingraph_state::ctr, ingraph_state::errors, fileName(), ingraph_state::Files, fname, ingraph_state::fp, gv_fopen(), NULL, and ingraph_state::u.

Referenced by nextGraph().

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

◆ nextGraph()

Agraph_t * nextGraph ( ingraph_state sp)

Definition at line 61 of file ingraphs.c.

References ingraph_state::ctr, ingraph_state::Files, ingraph_state::fp, ingraph_state::Graphs, ingraph_state::ingraphs, nextFile(), NULL, ingraph_state::readf, and ingraph_state::u.

Referenced by gvpr_core(), main(), main(), and readGraphs().

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