2
This software may only be used by you under license from AT&T Corp.
3
("AT&T"). A copy of AT&T's Source Code Agreement is available at
4
AT&T's Internet website having the URL:
5
<http://www.research.att.com/sw/tools/graphviz/license/source.html>
6
If you received this software without first entering into a license
7
with AT&T, you have an infringing copy of this software and cannot use
8
it without violating AT&T's intellectual property rights.
16
/* Extract objects of a dictionary.
18
** Written by Kiem-Phong Vo (5/25/96).
22
Dtlink_t* dtextract(reg Dt_t* dt)
24
Dtlink_t* dtextract(dt)
28
reg Dtlink_t *list, **s, **ends;
30
if(dt->data->type&(DT_OSET|DT_OBAG) )
31
list = dt->data->here;
32
else if(dt->data->type&(DT_SET|DT_BAG))
33
{ list = dtflatten(dt);
34
for(ends = (s = dt->data->htab) + dt->data->ntab; s < ends; ++s)
37
else /*if(dt->data->type&(DT_LIST|DT_STACK|DT_QUEUE))*/
38
{ list = dt->data->head;
39
dt->data->head = NIL(Dtlink_t*);
42
dt->data->type &= ~DT_FLATTEN;
44
dt->data->here = NIL(Dtlink_t*);