Graphviz 13.0.0~dev.20241220.2304
|
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>
Go to the source code of this file.
Functions | |
static void | nextFile (ingraph_state *sp) |
Agraph_t * | nextGraph (ingraph_state *sp) |
static ingraph_state * | new_ing (ingraph_state *sp, char **files, Agraph_t **graphs, Agraph_t *(*readf)(void *)) |
ingraph_state * | newIng (ingraph_state *sp, char **files, Agraph_t *(*readf)(void *)) |
ingraph_state * | newIngGraphs (ingraph_state *sp, Agraph_t **graphs, Agraph_t *(*readf)(void *)) |
static Agraph_t * | dflt_read (void *fp) |
ingraph_state * | newIngraph (ingraph_state *sp, char **files) |
void | closeIngraph (ingraph_state *sp) |
char * | fileName (ingraph_state *sp) |
Return name of current file being processed. | |
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().
|
static |
Definition at line 133 of file ingraphs.c.
References agread(), and NULL.
Referenced by newIngraph().
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().
|
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().
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().
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().
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().
|
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().
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().