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
22 return dtopen(disc, method);
23}
24
25int agdtclose(Dict_t *dict) {
26 dtdisc(dict, NULL);
27 if (dtclose(dict))
28 return 1;
29 return 0;
30}
31
33 if (dtdisc(dict, NULL) != disc) {
34 dtdisc(dict, disc);
35 }
36 /* else unchanged, disc is same as old disc */
37}
CDT_API int dtclose(Dt_t *)
Definition dtclose.c:10
CDT_API Dtdisc_t * dtdisc(Dt_t *dt, Dtdisc_t *)
Definition dtdisc.c:13
CDT_API Dt_t * dtopen(Dtdisc_t *, Dtmethod_t *)
Definition dtopen.c:11
cgraph.h additions
Dict_t * agdtopen(Dtdisc_t *disc, Dtmethod_t *method)
Definition utils.c:21
int agdtclose(Dict_t *dict)
Definition utils.c:25
void agdtdisc(Dict_t *dict, Dtdisc_t *disc)
Definition utils.c:32
static Dtdisc_t disc
Definition exparse.y:209
node NULL
Definition grammar.y:181
Definition cdt.h:98