Graphviz
15.1.1~dev.20260628.0906
Loading...
Searching...
No Matches
utils.c
Go to the documentation of this file.
1
6
/*************************************************************************
7
* Copyright (c) 2011 AT&T Intellectual Property
8
* All rights reserved. This program and the accompanying materials
9
* are made available under the terms of the Eclipse Public License v2.0
10
* which accompanies this distribution, and is available at
11
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
12
*
13
* Contributors: Details at https://graphviz.org
14
*************************************************************************/
15
16
#include "config.h"
17
18
#include <
cgraph/cghdr.h
>
19
#include <stdlib.h>
20
21
Dict_t
*
agdtopen
(
Dtdisc_t
*
disc
,
Dtmethod_t
*method) {
22
return
dtopen
(
disc
, method);
23
}
24
25
int
agdtclose
(
Dict_t
*dict) {
26
dtdisc
(dict,
NULL
);
27
if
(
dtclose
(dict))
28
return
1;
29
return
0;
30
}
31
32
void
agdtdisc
(
Dict_t
*dict,
Dtdisc_t
*
disc
) {
33
if
(
dtdisc
(dict,
NULL
) !=
disc
) {
34
dtdisc
(dict,
disc
);
35
}
36
/* else unchanged, disc is same as old disc */
37
}
dtclose
CDT_API int dtclose(Dt_t *)
Definition
dtclose.c:10
dtdisc
CDT_API Dtdisc_t * dtdisc(Dt_t *dt, Dtdisc_t *)
Definition
dtdisc.c:13
dtopen
CDT_API Dt_t * dtopen(Dtdisc_t *, Dtmethod_t *)
Definition
dtopen.c:11
cghdr.h
cgraph.h additions
agdtopen
Dict_t * agdtopen(Dtdisc_t *disc, Dtmethod_t *method)
Definition
utils.c:21
agdtclose
int agdtclose(Dict_t *dict)
Definition
utils.c:25
agdtdisc
void agdtdisc(Dict_t *dict, Dtdisc_t *disc)
Definition
utils.c:32
disc
static Dtdisc_t disc
Definition
exparse.y:209
NULL
node NULL
Definition
grammar.y:181
Dtmethod_t
Definition
cdt.h:65
dt_s_
Definition
cdt.h:98
dtdisc_s_
Definition
cdt.h:84
lib
cgraph
utils.c
Generated by
1.9.8