Graphviz 13.0.0~dev.20250121.0651
|
#include "config.h"
#include <cgraph.h>
#include <ctype.h>
#include <sys/types.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
#include <util/list.h>
Go to the source code of this file.
Macros | |
#define | SUCCESS 0 |
#define | FAILURE -1 |
#define | LOCALNAMEPREFIX '%' |
#define | AGDISC(g, d) ((g)->clos->disc.d) |
#define | AGCLOS(g, d) ((g)->clos->state.d) |
Typedefs | |
typedef Agobj_t *(* | agobjsearchfn_t) (Agraph_t *g, Agobj_t *obj) |
typedef void * | aagscan_t |
typedef struct aagextra_s | aagextra_t |
Enumerations | |
enum | { SEQ_MASK = (1 << (sizeof(unsigned) * 8 - 4)) - 1 } |
Mask of Agtag_s.seq width. More... | |
typedef struct aagextra_s aagextra_t |
int aaglex | ( | void | ) |
int aagparse | ( | void | ) |
Definition at line 60 of file apply.c.
References agerrorf(), AGINEDGE, AGNODE, AGOUTEDGE, AGRAPH, AGTYPE, FAILURE, rec_apply(), subedge_search(), subgraph_search(), subnode_search(), and SUCCESS.
Referenced by agclean(), agdeledge(), agdelnode(), agdelrec(), agnodebefore(), agrelabel_node(), eval(), init_all_attrs(), and setattr().
Definition at line 300 of file edge.c.
References agfstin(), agfstout(), AGIN2OUT, AGINEDGE, agnxtin(), agnxtout(), AGOUT2IN, agsubrep(), AGTYPE, del(), Agraph_s::e_id, Agraph_s::e_seq, Agsubnode_s::in_id, Agsubnode_s::in_seq, Agedge_s::node, out(), Agsubnode_s::out_id, and Agsubnode_s::out_seq.
Referenced by agdeledge(), and agdelnodeimage().
Definition at line 172 of file node.c.
References agdeledgeimage(), agfstedge(), agnxtedge(), Agnode_s::base, dtdelete, Agtag_s::id, Agraph_s::n_id, Agraph_s::n_seq, Agsubnode_s::node, node_set_remove(), and Agobj_s::tag.
Referenced by agdelnode().
Definition at line 31 of file utils.c.
References Ag_dictop_G, dtclose(), dtdisc(), and NULL.
Referenced by agclose(), and agraphattr_delete().
Definition at line 25 of file utils.c.
References Ag_dictop_G, dtdelete, and NULL.
Dict_t * agdtopen | ( | Dtdisc_t * | disc, |
Dtmethod_t * | method | ||
) |
Definition at line 21 of file utils.c.
References disc, and dtopen().
Referenced by aginternalmapinsert(), agmakedatadict(), and agopen1().
Definition at line 22 of file node.c.
References Agraph_s::n_id, Agsubnode_s::node, node_set_find(), and NULL.
Referenced by agdelnode(), agfindnode_by_name(), agidnode(), agnode(), agrelabel_node(), and agsubnode().
Definition at line 131 of file id.c.
References AGCLOS, AGDISC, aginternalmapdelete(), and id.
Referenced by agclose(), agdeledge(), agdelnode(), agrelabel_node(), and agrename().
void aginternalmapclose | ( | Agraph_t * | g | ) |
Definition at line 196 of file imap.c.
References Ag_G_global, Agraph_s::clos, closeit(), Agclos_s::lookup_by_id, and Agclos_s::lookup_by_name.
Referenced by agclose().
Definition at line 149 of file imap.c.
References AGEDGE, AGINEDGE, agstrfree(), Agraph_s::clos, dtdelete, find_isym(), free(), Agclos_s::lookup_by_id, Agclos_s::lookup_by_name, and IMapEntry_s::str.
Referenced by agfreeid(), and aginternalmapclearlocalnames().
Definition at line 103 of file imap.c.
References agdtopen(), AGEDGE, AGINEDGE, agstrdup(), Agraph_s::clos, dtinsert, Dttree, gv_alloc(), id, IMapEntry_s::id, Agclos_s::lookup_by_id, Agclos_s::lookup_by_name, LookupById, LookupByName, NULL, IMapEntry_s::str, and str.
Referenced by agmapnametoid().
Definition at line 82 of file imap.c.
References AGEDGE, AGINEDGE, agstrbind(), Agraph_s::clos, dtsearch, IMapEntry_s::id, Agclos_s::lookup_by_name, IMapEntry_s::str, and str.
Referenced by agmapnametoid().
Definition at line 139 of file imap.c.
References find_isym(), NULL, and IMapEntry_s::str.
Referenced by agnameof().
void aglexbad | ( | void | ) |
Definition at line 2402 of file scan.c.
References YY_FLUSH_BUFFER.
Referenced by agconcat().
void aglexeof | ( | void | ) |
Definition at line 2400 of file scan.c.
References GRAPH_EOF_TOKEN, and unput.
Referenced by endgraph(), and endgraph().
void aglexinit | ( | Agdisc_t * | disc, |
void * | ifile | ||
) |
Definition at line 102 of file id.c.
References AGCLOS, AGDISC, aginternalmapinsert(), aginternalmaplookup(), LOCALNAMEPREFIX, Agiddisc_s::map, NULL, and str.
Referenced by agedge(), agfindnode_by_name(), agnode(), agopen(), agrelabel_node(), agrename(), and agsubg().
uint64_t agnextseq | ( | Agraph_t * | g, |
int | objtype | ||
) |
Definition at line 160 of file graph.c.
References Agraph_s::clos, and Agclos_s::seq.
Referenced by agnode(), agopen1(), and newedge().
Definition at line 68 of file graph.c.
References Ag_mainedge_id_disc, Ag_mainedge_seq_disc, Ag_subedge_id_disc, Ag_subedge_seq_disc, Ag_subgraph_id_disc, Ag_subgraph_seq_disc, Ag_subnode_seq_disc, agdtopen(), agmethod_init(), agnextseq(), agparent(), AGRAPH, agraphattr_init(), agroot(), AGSEQ, Agraph_s::desc, dtinsert, Dttree, Agraph_s::e_id, Agraph_s::e_seq, Agraph_s::g_id, Agraph_s::g_seq, Agraph_s::g_seq2, gv_alloc(), Agdesc_s::has_attrs, Agraph_s::n_id, Agraph_s::n_seq, node_set_new(), and SEQ_MASK.
Referenced by agopen(), and localsubg().
char * agprintid | ( | Agobj_t * | obj | ) |
void agrecclose | ( | Agobj_t * | obj | ) |
Definition at line 227 of file rec.c.
References agraphof(), agstrfree(), Agobj_s::data, free(), Agrec_s::name, Agrec_s::next, and NULL.
Referenced by agclose(), agdeledge(), and agdelnode().
void agregister | ( | Agraph_t * | g, |
int | objtype, | ||
void * | obj | ||
) |
int agrename | ( | Agobj_t * | obj, |
char * | newname | ||
) |
rename an object
obj | Target to rename |
newname | Name to assign |
Definition at line 41 of file obj.c.
References agfreeid(), AGID, agidsubg(), AGINEDGE, agmapnametoid(), AGNODE, AGOUTEDGE, agparent(), AGRAPH, agraphof(), agrelabel_node(), agroot(), AGTYPE, FAILURE, SUCCESS, and UNREACHABLE.
int agstrclose | ( | Agraph_t * | g | ) |
Definition at line 322 of file refstr.c.
References refdict(), and strdict_free().
Referenced by agclose().
|
extern |
Definition at line 24 of file graph.c.
Referenced by agconcat(), aginternalmapclearlocalnames(), aginternalmapclose(), agraphattr_delete(), endstr(), endstr(), endstr_html(), endstr_html(), freesym(), startgraph(), and startgraph().
|
extern |
|
extern |
Definition at line 275 of file graph.c.
Referenced by agfindsubg_by_id(), and agopen1().
|
extern |
|
extern |
Definition at line 173 of file attr.c.
Referenced by agattrrec(), agedgeattr_delete(), agmakeattrs(), agnodeattr_delete(), newedge(), and newnode().