|
Graphviz 16.1.1~dev.20261012.0359
|
#include "config.h"#include <ast/ast.h>#include <ast/error.h>#include <cgraph/agstrcanon.h>#include <gvpr/actions.h>#include <gvpr/compile.h>#include <limits.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <util/agxbuf.h>#include <util/alloc.h>#include <util/gv_ctype.h>#include <util/list.h>#include <util/strcasecmp.h>#include <util/unreachable.h>#include <util/unused.h>#include "../common/colxlate.c"Go to the source code of this file.
Data Structures | |
| struct | edgepair_t |
Macros | |
| #define | CCMARKED(n) (((nData(n))->iu.integer) & 2) |
| #define | CCMARK(n) (((nData(n))->iu.integer) |= 2) |
| #define | CCUNMARK(n) (((nData(n))->iu.integer) &= ~2) |
| #define | COLORPROCS_API static UNUSED |
Functions | |
| static const char * | kinds (Agobj_t *obj) |
| Agraph_t * | sameG (void *obj1, void *obj2, char *fn, char *msg) |
| int | indexOf (char *s1, char *s2) |
| return index of leftmost string s2 in string s1, or -1 | |
| long | rindexOf (char *s1, char *s2) |
| return index of rightmost string s2 in string s1, or -1 | |
| size_t | match (char *str, char *pat) |
| return index of pattern pat in string str, or SIZE_MAX | |
| int | copyAttr (Agobj_t *src, Agobj_t *tgt) |
| Agobj_t * | copy (Agraph_t *g, Agobj_t *obj) |
| typedef | LIST (edgepair_t) |
| static Agedge_t * | mapEdge (emap_t *emap, Agedge_t *e) |
| static Agraph_t * | cloneSubg (Agraph_t *tgt, Agraph_t *g, emap_t *emap) |
| clone subgraph sg in tgt | |
| static int | cmppair (const void *k1, const void *k2) |
| static void | cloneGraph (Agraph_t *tgt, Agraph_t *src) |
| clone node, edge and subgraph structure from src to tgt | |
| Agraph_t * | cloneG (Agraph_t *g, char *name) |
| Agobj_t * | cloneO (Agraph_t *g, Agobj_t *obj) |
| static void | cc_dfs (Agraph_t *g, Agraph_t *comp, Agnode_t *n) |
| Agraph_t * | compOf (Agraph_t *g, Agnode_t *n) |
| return connected component of node | |
| Agedge_t * | isEdge (Agraph_t *g, Agnode_t *t, Agnode_t *h, char *key) |
| Agnode_t * | addNode (Agraph_t *gp, Agnode_t *np, int doAdd) |
| Agedge_t * | addEdge (Agraph_t *gp, Agedge_t *ep, int doAdd) |
| int | lockGraph (Agraph_t *g, int v) |
| int | deleteObj (Agraph_t *g, Agobj_t *obj) |
| int | sfioWrite (Agraph_t *g, FILE *fp) |
| int | writeFile (Agraph_t *g, char *f) |
| Agraph_t * | readFile (char *f) |
| int | fwriteFile (Expr_t *ex, Agraph_t *g, long long fd) |
| Agraph_t * | freadFile (Expr_t *ex, long long fd) |
| int | openFile (Expr_t *ex, const char *fname, const char *mode) |
| int | closeFile (Expr_t *ex, long long fd) |
| char * | readLine (Expr_t *ex, long long fd) |
| int | compare (Agobj_t *l, Agobj_t *r) |
| lexicographic ordering of objects | |
| char * | toLower (Expr_t *pgm, char *src) |
| convert characters to lowercase | |
| char * | toUpper (Expr_t *pgm, char *src) |
| convert characters to uppercase | |
| char * | toHtml (Agraph_t *g, char *arg) |
| create a string marked as HTML | |
| char * | canon (Expr_t *pgm, char *arg) |
| canonicalize a string for printing | |
| char * | colorx (Expr_t *ex, const char *incolor, char *fmt) |
| RGB, RGBA, HSV, HSVA. | |
Definition at line 435 of file actions.c.
References agsubedge(), and sameG().
Definition at line 426 of file actions.c.
References agsubnode(), and sameG().
| char * canon | ( | Expr_t * | pgm, |
| char * | arg | ||
| ) |
Definition at line 705 of file actions.c.
References agstrcanon(), agstrcanon_bytes(), and exstralloc().
Definition at line 370 of file actions.c.
References agfstedge(), aghead, AGID, agidnode(), agnxtedge(), agtail, cc_dfs(), CCMARK, and CCMARKED.
Referenced by cc_dfs(), and compOf().
Definition at line 300 of file actions.c.
References agnameof(), Agraph_s::base, cloneGraph(), copyAttr(), Agraph_s::desc, and openG().
Referenced by getval().
Definition at line 256 of file actions.c.
References agfstnode(), agfstout(), agfstsubg(), aghead, AGMKOUT, agnameof(), agnedges(), agnxtnode(), agnxtout(), agnxtsubg(), agtail, Agnode_s::base, Agedge_s::base, cloneSubg(), cmppair(), copy(), exerror(), LIST_APPEND, LIST_FREE, LIST_RESERVE, and LIST_SORT.
Referenced by cloneG(), and cloneO().
Definition at line 318 of file actions.c.
References aghead, AGINEDGE, AGMKOUT, agnameof(), AGNODE, AGOUTEDGE, AGRAPH, agtail, AGTYPE, cloneGraph(), cloneO(), copyAttr(), exerror(), OBJ, openEdge(), openG(), openNode(), openSubg(), and UNREACHABLE.
Referenced by addOutputGraph(), cloneO(), getval(), and gvpr_core().
Definition at line 202 of file actions.c.
References agfstnode(), agfstout(), agfstsubg(), aghead, AGMKOUT, agnameof(), agnode(), agnxtnode(), agnxtout(), agnxtsubg(), agsubedge(), agsubnode(), agtail, cloneSubg(), copy(), exerror(), mapEdge(), NULL, and OBJ.
Referenced by cloneGraph(), and cloneSubg().
| int closeFile | ( | Expr_t * | ex, |
| long long | fd | ||
| ) |
Definition at line 593 of file actions.c.
References elementsof, exerror(), and Expr_s::file.
Referenced by getval().
|
static |
Definition at line 250 of file actions.c.
References edgepair_t::key.
Referenced by cloneGraph().
| char * colorx | ( | Expr_t * | ex, |
| const char * | incolor, | ||
| char * | fmt | ||
| ) |
Definition at line 727 of file actions.c.
References agxbfree(), agxbprint(), agxbuse(), alpha, color(), COLOR_OK, colorxlate(), exstring(), HSVA_DOUBLE, RGBA_BYTE, and type.
Referenced by getval().
Definition at line 387 of file actions.c.
References agfstnode(), AGID, agidnode(), agnxtnode(), cc_dfs(), CCUNMARK, cg(), id, and openSubg().
Referenced by getval().
Definition at line 133 of file actions.c.
References aghead, AGINEDGE, AGMKOUT, agnameof(), AGNODE, AGOUTEDGE, AGRAPH, agtail, AGTYPE, copyAttr(), exerror(), openEdge(), openG(), openNode(), openSubg(), and UNREACHABLE.
Referenced by cloneGraph(), and cloneSubg().
Definition at line 105 of file actions.c.
References agattr_text(), agattrsym(), aghtmlstr(), agnxtattr(), agraphof(), agstrdup_html(), agstrfree(), AGTYPE, agxget(), agxset(), and NULL.
Referenced by cloneG(), cloneO(), and copy().
Definition at line 476 of file actions.c.
References agclose(), agdelete(), agnameof(), AGRAPH, agraphof(), agroot(), AGTYPE, error, ERROR_WARNING, gData, gval_t::lock, gvlock_t::locked, and gvlock_t::zombie.
Referenced by getval().
Definition at line 565 of file actions.c.
References elementsof, exerror(), Expr_s::file, and readG().
Referenced by getval().
Definition at line 555 of file actions.c.
References elementsof, exerror(), Expr_s::file, and sfioWrite().
Referenced by getval().
| int indexOf | ( | char * | s1, |
| char * | s2 | ||
| ) |
|
static |
| typedef LIST | ( | edgepair_t | ) |
Definition at line 180 of file actions.c.
References edgepair_t::key.
| int lockGraph | ( | Agraph_t * | g, |
| int | v | ||
| ) |
Definition at line 449 of file actions.c.
References agclose(), agroot(), error, ERROR_WARNING, gData, gval_t::lock, gvlock_t::locked, and gvlock_t::zombie.
Referenced by getval().
Definition at line 192 of file actions.c.
References Agedge_s::base, LIST_SIZE, NULL, and edgepair_t::val.
Referenced by cloneSubg().
| size_t match | ( | char * | str, |
| char * | pat | ||
| ) |
Definition at line 92 of file actions.c.
References SIZE_MAX, str, strgrpmatch(), and sub.
Referenced by getval(), Multilevel_MQ_Clustering_establish(), strgrpmatch(), and svg_size().
| int openFile | ( | Expr_t * | ex, |
| const char * | fname, | ||
| const char * | mode | ||
| ) |
Definition at line 575 of file actions.c.
References elementsof, exerror(), Expr_s::file, and fname.
| Agraph_t * readFile | ( | char * | f | ) |
| char * readLine | ( | Expr_t * | ex, |
| long long | fd | ||
| ) |
Definition at line 618 of file actions.c.
References agxbfree(), agxbputc(), agxbuse(), elementsof, exerror(), exstring(), and Expr_s::file.
Referenced by getval().
| long rindexOf | ( | char * | s1, |
| char * | s2 | ||
| ) |
| Agraph_t * sameG | ( | void * | obj1, |
| void * | obj2, | ||
| char * | fn, | ||
| char * | msg | ||
| ) |
Definition at line 48 of file actions.c.
References agraphof(), agroot(), error, ERROR_WARNING, and kinds().
Referenced by addEdge(), addNode(), isEdge(), and openEdge().
| int sfioWrite | ( | Agraph_t * | g, |
| FILE * | fp | ||
| ) |
Definition at line 504 of file actions.c.
References AgIoDisc, agwrite(), Agraph_s::clos, Agclos_s::disc, and Agdisc_s::io.
Referenced by fwriteFile(), getval(), gvpr_core(), and writeFile().
| char * toHtml | ( | Agraph_t * | g, |
| char * | arg | ||
| ) |
Definition at line 702 of file actions.c.
References agstrdup_html().
Referenced by getval().
| char * toLower | ( | Expr_t * | pgm, |
| char * | src | ||
| ) |
Definition at line 668 of file actions.c.
References exstralloc(), gv_tolower(), len(), and NULL.
Referenced by getval().
| char * toUpper | ( | Expr_t * | pgm, |
| char * | src | ||
| ) |
Definition at line 685 of file actions.c.
References exstralloc(), gv_toupper(), len(), and NULL.
Referenced by getval().