Debian Codegraph @

src/gen/lib/cdt/dtmethod__c.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program:
18 *
19 *************************************************************************
20 * Copyright (c) 2011 AT&T Intellectual Property
21 * All rights reserved. This program and the accompanying materials
22 * are made available under the terms of the Eclipse Public License v1.0
23 * which accompanies this distribution, and is available at
24 * http://www.eclipse.org/legal/epl-v10.html
25 *
26 * Contributors: See CVS logs. Details at http://www.graphviz.org/
27 *************************************************************************
28 *
29 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
30 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
31 *
32 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
33 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
34 *
35 * You may obtain a copy of the License at
36 *
37 * http://www.eclipse.org/legal/epl-v10.html
38 *
39 * Unless required by applicable law or agreed to in writing, software
40 * distributed under the License is distributed on an "AS IS" BASIS,
41 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * See the License for the specific language governing permissions and
43 * limitations under the License.
44 *
45 */
46 package gen.lib.cdt;
47 import static smetana.core.Macro.UNSUPPORTED;
48
49 public class dtmethod__c {
50 //1 9k44uhd5foylaeoekf3llonjq
51 // extern Dtmethod_t* Dtset
52
53
54 //1 1ahfywsmzcpcig2oxm7pt9ihj
55 // extern Dtmethod_t* Dtbag
56
57
58 //1 anhghfj3k7dmkudy2n7rvt31v
59 // extern Dtmethod_t* Dtoset
60
61
62 //1 5l6oj1ux946zjwvir94ykejbc
63 // extern Dtmethod_t* Dtobag
64
65
66 //1 2wtf222ak6cui8cfjnw6w377z
67 // extern Dtmethod_t* Dtlist
68
69
70 //1 d1s1s6ibtcsmst88e3057u9r7
71 // extern Dtmethod_t* Dtstack
72
73
74 //1 axa7mflo824p6fspjn1rdk0mt
75 // extern Dtmethod_t* Dtqueue
76
77
78 //1 ega812utobm4xx9oa9w9ayij6
79 // extern Dtmethod_t* Dtdeque
80
81
82 //1 cyfr996ur43045jv1tjbelzmj
83 // extern Dtmethod_t* Dtorder
84
85
86 //1 wlofoiftbjgrrabzb2brkycg
87 // extern Dtmethod_t* Dttree
88
89
90 //1 12bds94t7voj7ulwpcvgf6agr
91 // extern Dtmethod_t* Dthash
92
93
94 //1 9lqknzty480cy7zsubmabkk8h
95 // extern Dtmethod_t _Dttree
96
97
98 //1 bvn6zkbcp8vjdhkccqo1xrkrb
99 // extern Dtmethod_t _Dthash
100
101
102 //1 9lidhtd6nsmmv3e7vjv9e10gw
103 // extern Dtmethod_t _Dtlist
104
105
106 //1 34ujfamjxo7xn89u90oh2k6f8
107 // extern Dtmethod_t _Dtqueue
108
109
110 //1 3jy4aceckzkdv950h89p4wjc8
111 // extern Dtmethod_t _Dtstack
112
113
114
115
116 //3 5y8zard8q0t7wd1fznlyiu0is
117 // Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth)
118 public static Object dtmethod(Object... arg) {
119 UNSUPPORTED("3km1xhxqsi1kc6xhl15kcri1f"); // Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth)
120 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
121 UNSUPPORTED("bf4mmzf6u2tqotgqbd6k8eqp0"); // register Dtlink_t *list, *r;
122 UNSUPPORTED("ab9fv18fhjzwp3wngyyqarrns"); // register Dtdisc_t* disc = dt->disc;
123 UNSUPPORTED("crjx4y1aesvbz4wkqg5642nj4"); // register Dtmethod_t* oldmeth = dt->meth;
124 UNSUPPORTED("5c6whtsf2a3glrlh1kczzpqe9"); // if(!meth || meth->type == oldmeth->type)
125 UNSUPPORTED("8ttmhoaftdijn5bkmfimd9x7"); // return oldmeth;
126 UNSUPPORTED("8gsk9kzxnlwgo3aceze9c6gl7"); // if(disc->eventf &&
127 UNSUPPORTED("fwq3340fa0pnag7j0f4o7wzm"); // (*disc->eventf)(dt,4,(void*)meth,disc) < 0)
128 UNSUPPORTED("2igwwp2cx3n29p50m7m8ioyv2"); // return ((Dtmethod_t*)0);
129 UNSUPPORTED("2eqdiqvcsxis68sccmci5sslk"); // dt->data->minp = 0;
130 UNSUPPORTED("3lnvvw51l9ruzql33ygokb3l9"); // /* get the list of elements */
131 UNSUPPORTED("458eivbagnsewjl8xhw519qcg"); // list = dtflatten(dt);
132 UNSUPPORTED("9qekjyedz55m5wna2o1oggk12"); // if(dt->data->type&(0000020|0000040|0000100) )
133 UNSUPPORTED("3v40gkacc2m6me0zor7nhpjmw"); // dt->data->hh._head = ((Dtlink_t*)0);
134 UNSUPPORTED("9l8vi2w86i0txe17utistljqu"); // else if(dt->data->type&(0000001|0000002) )
135 UNSUPPORTED("hysmhouy1ud6hsdj0cubiudt"); // { if(dt->data->ntab > 0)
136 UNSUPPORTED("4ugmcpi8vkb013vuo4wykn0a3"); // (*dt->memoryf)(dt,(void*)dt->data->hh._htab,0,disc);
137 UNSUPPORTED("daqygvp6d794yl5eu8d06g3gi"); // dt->data->ntab = 0;
138 UNSUPPORTED("1wghucytlosmvwxh9hs06gqnv"); // dt->data->hh._htab = ((Dtlink_t**)0);
139 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
140 UNSUPPORTED("bl1pmhqf3x1in1wvwhq1v00u2"); // dt->data->here = ((Dtlink_t*)0);
141 UNSUPPORTED("762s6dooy1oj4wiqk2j8mtcs7"); // dt->data->type = (dt->data->type&~(0000377|010000)) | meth->type;
142 UNSUPPORTED("62j00tqtfsxxmirwb05ur7z0t"); // dt->meth = meth;
143 UNSUPPORTED("3hek07go1qr5flyhweyvb88hh"); // if(dt->searchf == oldmeth->searchf)
144 UNSUPPORTED("7d7hyoujq87agx8focnjapazd"); // dt->searchf = meth->searchf;
145 UNSUPPORTED("c0iupu78ptdjv7tkp4fp5eoem"); // if(meth->type&(0000020|0000040|0000100) )
146 UNSUPPORTED("10dxbmrp9w60lb4wyi4c6ze8a"); // { if(!(oldmeth->type&(0000020|0000040|0000100)) )
147 UNSUPPORTED("c6eshgqlcm9am6oih7mqy27cx"); // { if((r = list) )
148 UNSUPPORTED("cxw84g4fps5l02s4epfyl6n2r"); // { register Dtlink_t* t;
149 UNSUPPORTED("et4fiw7yaciidg54t59if0gz"); // for(t = r->right; t; r = t, t = t->right )
150 UNSUPPORTED("6y5abi7x957jjhe2rscd9ufjx"); // t->hl._left = r;
151 UNSUPPORTED("8nfo3btdkjap25oecr3r2t9zz"); // list->hl._left = r;
152 UNSUPPORTED("3to5h0rvqxdeqs38mhv47mm3o"); // }
153 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
154 UNSUPPORTED("7duc1evkuyrgnx1k6sqnyoc1e"); // dt->data->hh._head = list;
155 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
156 UNSUPPORTED("99xc5unqmtom8dp50z8en6k79"); // else if(meth->type&(0000004|0000010))
157 UNSUPPORTED("dejooawjmch41k0n8wz35280p"); // { dt->data->size = 0;
158 UNSUPPORTED("dzuwpmnfrpq395y1ou6zll3u2"); // while(list)
159 UNSUPPORTED("4b3ko2bznm8f1y9qeju4acfua"); // { r = list->right;
160 UNSUPPORTED("bdgaa5aljhk83mgc5oupnofue"); // (*meth->searchf)(dt,(void*)list,0000040);
161 UNSUPPORTED("eoujol9u634bcw14kwkb2lm5x"); // list = r;
162 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
163 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
164 UNSUPPORTED("5i0ckqkt3yzykzquvm6nd08wf"); // else if(!((meth->type&0000002) && (oldmeth->type&0000001)) )
165 UNSUPPORTED("34wwvljvfvcvyh3obzyhgmnpo"); // { int rehash;
166 UNSUPPORTED("6akycohy5byonwsy0g7a3l1nk"); // if((meth->type&(0000001|0000002)) && !(oldmeth->type&(0000001|0000002)))
167 UNSUPPORTED("4o1gcrc4m2r1348akifhsvudt"); // rehash = 1;
168 UNSUPPORTED("1byx9oyi0ig37sdx42lv59xv"); // else rehash = 0;
169 UNSUPPORTED("4zu0hy7teh1cxc74ifeho8ej3"); // dt->data->size = dt->data->loop = 0;
170 UNSUPPORTED("dzuwpmnfrpq395y1ou6zll3u2"); // while(list)
171 UNSUPPORTED("4b3ko2bznm8f1y9qeju4acfua"); // { r = list->right;
172 UNSUPPORTED("20x8nlwk3x08qy0vwwzj6qtad"); // if(rehash)
173 UNSUPPORTED("30b8etf9nx2grv2w7rsytmgxk"); // { register void* key = (disc->link < 0 ? ((Dthold_t*)(list))->obj : (void*)((char*)(list) - disc->link) );
174 UNSUPPORTED("8h5rhllokrgydtbfodokfa8tk"); // key = (void*)(disc->size < 0 ? *((char**)((char*)(key)+disc->key)) : ((char*)(key)+disc->key));
175 UNSUPPORTED("t4uwrmevpnx4doh1anexa33y"); // list->hl._hash = (disc->hashf ? (*disc->hashf)(dt,key,disc) : dtstrhash(0,key,disc->size) );
176 UNSUPPORTED("3to5h0rvqxdeqs38mhv47mm3o"); // }
177 UNSUPPORTED("9dj4v9f2xppzoxbumhwauuzk6"); // (void)(*meth->searchf)(dt,(void*)list,0000040);
178 UNSUPPORTED("eoujol9u634bcw14kwkb2lm5x"); // list = r;
179 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
180 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
181 UNSUPPORTED("37bs415tc2fi47jgdzwr9kyeu"); // return oldmeth;
182 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
183
184 throw new UnsupportedOperationException();
185 }
186
187
188 }