Debian Codegraph @

src/gen/lib/cgraph/imap__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.cgraph;
47 import static smetana.core.JUtilsDebug.ENTERING;
48 import static smetana.core.JUtilsDebug.LEAVING;
49 import static smetana.core.Macro.AGEDGE;
50 import static smetana.core.Macro.AGINEDGE;
51 import static smetana.core.Macro.UNSUPPORTED;
52 import h.ST_Agraph_s;
53 import h.ST_IMapEntry_t;
54 import h.ST_dt_s;
55 import smetana.core.CString;
56
57 public class imap__c {
58 //1 9k44uhd5foylaeoekf3llonjq
59 // extern Dtmethod_t* Dtset
60
61
62 //1 1ahfywsmzcpcig2oxm7pt9ihj
63 // extern Dtmethod_t* Dtbag
64
65
66 //1 anhghfj3k7dmkudy2n7rvt31v
67 // extern Dtmethod_t* Dtoset
68
69
70 //1 5l6oj1ux946zjwvir94ykejbc
71 // extern Dtmethod_t* Dtobag
72
73
74 //1 2wtf222ak6cui8cfjnw6w377z
75 // extern Dtmethod_t* Dtlist
76
77
78 //1 d1s1s6ibtcsmst88e3057u9r7
79 // extern Dtmethod_t* Dtstack
80
81
82 //1 axa7mflo824p6fspjn1rdk0mt
83 // extern Dtmethod_t* Dtqueue
84
85
86 //1 ega812utobm4xx9oa9w9ayij6
87 // extern Dtmethod_t* Dtdeque
88
89
90 //1 cyfr996ur43045jv1tjbelzmj
91 // extern Dtmethod_t* Dtorder
92
93
94 //1 wlofoiftbjgrrabzb2brkycg
95 // extern Dtmethod_t* Dttree
96
97
98 //1 12bds94t7voj7ulwpcvgf6agr
99 // extern Dtmethod_t* Dthash
100
101
102 //1 9lqknzty480cy7zsubmabkk8h
103 // extern Dtmethod_t _Dttree
104
105
106 //1 bvn6zkbcp8vjdhkccqo1xrkrb
107 // extern Dtmethod_t _Dthash
108
109
110 //1 9lidhtd6nsmmv3e7vjv9e10gw
111 // extern Dtmethod_t _Dtlist
112
113
114 //1 34ujfamjxo7xn89u90oh2k6f8
115 // extern Dtmethod_t _Dtqueue
116
117
118 //1 3jy4aceckzkdv950h89p4wjc8
119 // extern Dtmethod_t _Dtstack
120
121
122 //1 8dfqgf3u1v830qzcjqh9o8ha7
123 // extern Agmemdisc_t AgMemDisc
124
125
126 //1 18k2oh2t6llfsdc5x0wlcnby8
127 // extern Agiddisc_t AgIdDisc
128
129
130 //1 a4r7hi80gdxtsv4hdoqpyiivn
131 // extern Agiodisc_t AgIoDisc
132
133
134 //1 bnzt5syjb7mgeru19114vd6xx
135 // extern Agdisc_t AgDefaultDisc
136
137
138 //1 35y2gbegsdjilegaribes00mg
139 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
140
141
142 //1 c2rygslq6bcuka3awmvy2b3ow
143 // typedef Agsubnode_t Agnoderef_t
144
145
146 //1 xam6yv0dcsx57dtg44igpbzn
147 // typedef Dtlink_t Agedgeref_t
148
149
150 //1 6ayavpu39aihwyojkx093pcy3
151 // extern Agraph_t *Ag_G_global
152
153
154 //1 871mxtg9l6ffpxdl9kniwusf7
155 // extern char *AgDataRecName
156
157
158 //1 c0o2kmml0tn6hftuwo0u4shwd
159 // extern Dtdisc_t Ag_subnode_id_disc
160
161
162 //1 8k15pyu256unm2kpd9zf5pf7k
163 // extern Dtdisc_t Ag_subnode_seq_disc
164
165
166 //1 e3d820y06gpeusn6atgmj8bzd
167 // extern Dtdisc_t Ag_mainedge_id_disc
168
169
170 //1 cbr0772spix9h1aw7h5v7dv9j
171 // extern Dtdisc_t Ag_subedge_id_disc
172
173
174 //1 akd0c3v0j7m2npxcb9acit1fa
175 // extern Dtdisc_t Ag_mainedge_seq_disc
176
177
178 //1 12d8la07351ww7vwfzucjst8m
179 // extern Dtdisc_t Ag_subedge_seq_disc
180
181
182 //1 29eokk7v88e62g8o6lizmo967
183 // extern Dtdisc_t Ag_subgraph_id_disc
184
185
186 //1 4xd9cbgy6hk5g6nhjcbpzkx14
187 // extern Agcbdisc_t AgAttrdisc
188
189
190
191
192 //3 79n6elfqk1vw36hmv7bxlrb0v
193 // static int idcmpf(Dict_t * d, void *arg_p0, void *arg_p1, Dtdisc_t * disc)
194 public static Object idcmpf(Object... arg) {
195 UNSUPPORTED("1r7psgafk53qtogr4ft1z3lze"); // static int idcmpf(Dict_t * d, void *arg_p0, void *arg_p1, Dtdisc_t * disc)
196 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
197 UNSUPPORTED("4ntp67b3zenb7lwin6la68y9g"); // IMapEntry_t *p0, *p1;
198 UNSUPPORTED("6z29omss9ay00bqf6xael7t6t"); // (void) d;
199 UNSUPPORTED("44n3fpcv1bzssspskdg8kbbz4"); // p0 = arg_p0;
200 UNSUPPORTED("4tgwqnnain0i2lv7it6su8k8q"); // p1 = arg_p1;
201 UNSUPPORTED("8l8wg6vltx6d7vc9dzqb6n3wi"); // (void) disc;
202 UNSUPPORTED("49gg5v29upcoktnre7tua6o3j"); // return (p0->id - p1->id);
203 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
204
205 throw new UnsupportedOperationException();
206 }
207
208
209
210
211 //3 aadw62b6y0d22xf4720pzdiyz
212 // static int namecmpf(Dict_t * d, void *arg_p0, void *arg_p1, Dtdisc_t * disc)
213 public static Object namecmpf(Object... arg) {
214 UNSUPPORTED("7ouzah61jyng2a8u8dfdxeekw"); // static int namecmpf(Dict_t * d, void *arg_p0, void *arg_p1,
215 UNSUPPORTED("3hfqv3wxw19wel6xzpj1kbshb"); // Dtdisc_t * disc)
216 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
217 UNSUPPORTED("4ntp67b3zenb7lwin6la68y9g"); // IMapEntry_t *p0, *p1;
218 UNSUPPORTED("6z29omss9ay00bqf6xael7t6t"); // (void) d;
219 UNSUPPORTED("44n3fpcv1bzssspskdg8kbbz4"); // p0 = arg_p0;
220 UNSUPPORTED("4tgwqnnain0i2lv7it6su8k8q"); // p1 = arg_p1;
221 UNSUPPORTED("8l8wg6vltx6d7vc9dzqb6n3wi"); // (void) disc;
222 UNSUPPORTED("eb7z4ayiwked6cpuntm496002"); // return (p0->str - p1->str);
223 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
224
225 throw new UnsupportedOperationException();
226 }
227
228
229 //1 cvijg1ekkl36sildxxf28vhug
230 // static Dtdisc_t LookupByName =
231
232
233 //1 dkzjlpsv4zk993r3iyo7msr8n
234 // static Dtdisc_t LookupById =
235
236
237
238
239 //3 mx2krtbgfhcihopw9rw8kcv3
240 // int aginternalmaplookup(Agraph_t * g, int objtype, char *str, unsigned long *result)
241 public static int aginternalmaplookup(ST_Agraph_s g, int objtype, CString str, int result[]) {
242 ENTERING("mx2krtbgfhcihopw9rw8kcv3","aginternalmaplookup");
243 try {
244 UNSUPPORTED("9xuzgjxqveawe6v2n4x48r93l"); // int aginternalmaplookup(Agraph_t * g, int objtype, char *str,
245 UNSUPPORTED("a9jw0mphzrt0q739cxcgk2hxw"); // unsigned long *result)
246 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
247 UNSUPPORTED("l4y6zpshfefue2m18wlswfkp"); // Dict_t *d;
248 UNSUPPORTED("6ich6qfkkifpsux1v4vgzhiyb"); // IMapEntry_t *sym, template;
249 UNSUPPORTED("4uffdlbjda8w15jyto7gd77bw"); // char *search_str;
250 UNSUPPORTED("84sccu12ven74lipf2dljgik4"); // if (objtype == AGINEDGE)
251 UNSUPPORTED("5q9qhv35w1rsuiuzqkwgshm3p"); // objtype = AGEDGE;
252 UNSUPPORTED("drm2n6i20x3uimml5ooxm9u25"); // if ((d = g->clos->lookup_by_name[objtype])) {
253 UNSUPPORTED("9ysphludc93c139uov8ximaj2"); // if ((search_str = agstrbind(g, str))) {
254 UNSUPPORTED("73apfmwxngxpf2twqiokd75ph"); // template.str = search_str;
255 UNSUPPORTED("1r11yngj3z66q9h8k7rx0ifra"); // sym = (IMapEntry_t *) (*(((Dt_t*)(d))->searchf))((d),(void*)(&template),0000004);
256 UNSUPPORTED("8watgmdse1o9uhfuhoexemnl2"); // if (sym) {
257 UNSUPPORTED("68xn6zrkilfqqsosou3z2ym7o"); // *result = sym->id;
258 UNSUPPORTED("a1a1uhff21noh1htwzn6yp831"); // return (!(0));
259 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
260 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
261 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
262 UNSUPPORTED("297p5iu8oro94tdg9v29bbgiw"); // return (0);
263 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
264
265 throw new UnsupportedOperationException();
266 } finally {
267 LEAVING("mx2krtbgfhcihopw9rw8kcv3","aginternalmaplookup");
268 }
269 }
270
271
272
273
274 //3 ce8fo5gya95enhgssezqs3vav
275 // void aginternalmapinsert(Agraph_t * g, int objtype, char *str, unsigned long id)
276 public static Object aginternalmapinsert(Object... arg) {
277 UNSUPPORTED("bk4ucrzua03gr9lak6zfm3orp"); // void aginternalmapinsert(Agraph_t * g, int objtype, char *str,
278 UNSUPPORTED("18mfx819yhg1vg5xkrfjr96x2"); // unsigned long id)
279 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
280 UNSUPPORTED("bh4b0zdn246m225u6zmdk75zs"); // IMapEntry_t *ent;
281 UNSUPPORTED("84hwqfygghmcbo2exzo01t93o"); // Dict_t *d_name_to_id, *d_id_to_name;
282 UNSUPPORTED("7wtz0h3ahdkrul4dbb0b7y0l4"); // ent = ((IMapEntry_t*)(agalloc(g,sizeof(IMapEntry_t))));
283 UNSUPPORTED("6nwwse4s1ba0m9jfptthwwjbj"); // ent->id = id;
284 UNSUPPORTED("d8vvc9mhtu43xfmzodcja9bu9"); // ent->str = agstrdup(g, str);
285 UNSUPPORTED("84sccu12ven74lipf2dljgik4"); // if (objtype == AGINEDGE)
286 UNSUPPORTED("5q9qhv35w1rsuiuzqkwgshm3p"); // objtype = AGEDGE;
287 UNSUPPORTED("cdo42je1dwhjo7hka7tk4bu20"); // if ((d_name_to_id = g->clos->lookup_by_name[objtype]) == ((Dict_t *)0))
288 UNSUPPORTED("7tkuaa0dee3i2mkwj7ba9bmyj"); // d_name_to_id = g->clos->lookup_by_name[objtype] =
289 UNSUPPORTED("5em5y2jcl61223aawnzfqj4a0"); // agdtopen(g, &LookupByName, Dttree);
290 UNSUPPORTED("4x4ql6no5kg3qbek3o45fn7nx"); // if ((d_id_to_name = g->clos->lookup_by_id[objtype]) == ((Dict_t *)0))
291 UNSUPPORTED("7tmtjlukhbvxyxkd08ijr2m47"); // d_id_to_name = g->clos->lookup_by_id[objtype] =
292 UNSUPPORTED("bnhc1g7rce6un1du4m54v8m5r"); // agdtopen(g, &LookupById, Dttree);
293 UNSUPPORTED("1y4a6gz63nnj0k1ip32krystr"); // (*(((Dt_t*)(d_name_to_id))->searchf))((d_name_to_id),(void*)(ent),0000001);
294 UNSUPPORTED("6d4vd73oyoit1sj5kt1otroy9"); // (*(((Dt_t*)(d_id_to_name))->searchf))((d_id_to_name),(void*)(ent),0000001);
295 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
296
297 throw new UnsupportedOperationException();
298 }
299
300
301
302
303 //3 3r16pkjiksv8i7o961ltxyge6
304 // static IMapEntry_t *find_isym(Agraph_t * g, int objtype, unsigned long id)
305 public static ST_IMapEntry_t find_isym(ST_Agraph_s g, int objtype, int id) {
306 ENTERING("3r16pkjiksv8i7o961ltxyge6","find_isym");
307 try {
308 ST_dt_s d;
309 ST_IMapEntry_t isym, itemplate = new ST_IMapEntry_t();
310 if (objtype == AGINEDGE)
311 objtype = AGEDGE;
312 if ((d = g.clos.lookup_by_id[objtype])!=null) {
313 itemplate.setInt("id", id);
314 isym = (ST_IMapEntry_t) UNSUPPORTED("(IMapEntry_t *) (*(((Dt_t*)(d))->searchf))((d),(void*)(&itemplate),0000004)");
315 } else
316 isym = null;
317 return isym;
318 } finally {
319 LEAVING("3r16pkjiksv8i7o961ltxyge6","find_isym");
320 }
321 }
322
323
324
325
326 //3 foe6bvtujfevsc0f3m8aqln8
327 // char *aginternalmapprint(Agraph_t * g, int objtype, unsigned long id)
328 public static CString aginternalmapprint(ST_Agraph_s g, int objtype, int id) {
329 ENTERING("foe6bvtujfevsc0f3m8aqln8","aginternalmapprint");
330 try {
331 ST_IMapEntry_t isym;
332 if ((isym = find_isym(g, objtype, id))!=null)
333 return isym.str;
334 return null;
335 } finally {
336 LEAVING("foe6bvtujfevsc0f3m8aqln8","aginternalmapprint");
337 }
338 }
339
340
341
342
343 //3 5tlg05avf32knqysibbic9jou
344 // int aginternalmapdelete(Agraph_t * g, int objtype, unsigned long id)
345 public static Object aginternalmapdelete(Object... arg) {
346 UNSUPPORTED("19jjvbvuhgwuct5d89a9klzdn"); // int aginternalmapdelete(Agraph_t * g, int objtype, unsigned long id)
347 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
348 UNSUPPORTED("4s0k0w2gqymjv4rw9e0p94o4e"); // IMapEntry_t *isym;
349 UNSUPPORTED("84sccu12ven74lipf2dljgik4"); // if (objtype == AGINEDGE)
350 UNSUPPORTED("5q9qhv35w1rsuiuzqkwgshm3p"); // objtype = AGEDGE;
351 UNSUPPORTED("60rw9rftet6cvrlc5sv6cdvzo"); // if ((isym = find_isym(g, objtype, id))) {
352 UNSUPPORTED("6nag2b59botfmnvg4y14s6nez"); // (*(((Dt_t*)(g->clos->lookup_by_name[objtype]))->searchf))((g->clos->lookup_by_name[objtype]),(void*)(isym),0000002);
353 UNSUPPORTED("dsg36gwsles2ud2bgcuw50yi3"); // (*(((Dt_t*)(g->clos->lookup_by_id[objtype]))->searchf))((g->clos->lookup_by_id[objtype]),(void*)(isym),0000002);
354 UNSUPPORTED("avjuzl03gu3mel3wyty6geq69"); // agstrfree(g, isym->str);
355 UNSUPPORTED("6pld2z1bhfc2yevvzc4kxx508"); // agfree(g, isym);
356 UNSUPPORTED("3adr32h5e1fehu4g7j2u24asz"); // return (!(0));
357 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
358 UNSUPPORTED("297p5iu8oro94tdg9v29bbgiw"); // return (0);
359 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
360
361 throw new UnsupportedOperationException();
362 }
363
364
365
366
367 //3 2wanqmzppni4zd3mlb6pkou1k
368 // void aginternalmapclearlocalnames(Agraph_t * g)
369 public static Object aginternalmapclearlocalnames(Object... arg) {
370 UNSUPPORTED("bkfxi88xlzuzwi4a9iqo8pn28"); // void aginternalmapclearlocalnames(Agraph_t * g)
371 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
372 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
373 UNSUPPORTED("9lx77yi3grxo0pchpg8wba5f6"); // IMapEntry_t *sym, *nxt;
374 UNSUPPORTED("1y1imymtcoka6zqsrmg5hocbt"); // Dict_t **d_name;
375 UNSUPPORTED("1lwdd78io6jcv1vyvj9qa9xwd"); // /* Dict_t **d_id; */
376 UNSUPPORTED("6qvjz1ziwr3nwocahqvfzw14t"); // Ag_G_global = g;
377 UNSUPPORTED("e68mfs18sqlfouc92k24w2fz7"); // d_name = g->clos->lookup_by_name;
378 UNSUPPORTED("1upc73ikk3g0k2b325lrtornr"); // /* d_id = g->clos->lookup_by_id; */
379 UNSUPPORTED("11oml6vi9s4la6fgcck9ta2y8"); // for (i = 0; i < 3; i++) {
380 UNSUPPORTED("6h2zc4egoha1kvb86bjeoan7b"); // if (d_name[i]) {
381 UNSUPPORTED("252siiega2i0vhnempk3jj5gq"); // for (sym = (*(((Dt_t*)(d_name[i]))->searchf))((d_name[i]),(void*)(0),0000200); sym; sym = nxt) {
382 UNSUPPORTED("9a5rzjs7wyb31qrzau41skcch"); // nxt = (*(((Dt_t*)(d_name[i]))->searchf))((d_name[i]),(void*)(sym),0000010);
383 UNSUPPORTED("620abwca2qrecak9ujprv3erj"); // if (sym->str[0] == '%')
384 UNSUPPORTED("2ys9vkqvwbp3l4dlnzxecpufu"); // aginternalmapdelete(g, i, sym->id);
385 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
386 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
387 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
388 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
389
390 throw new UnsupportedOperationException();
391 }
392
393
394
395
396 //3 exx9lnei1gnd60cuddc52z7i9
397 // static void closeit(Dict_t ** d)
398 public static Object closeit(Object... arg) {
399 UNSUPPORTED("dg5p1tjrd085naw1mo4ichi6q"); // static void closeit(Dict_t ** d)
400 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
401 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
402 UNSUPPORTED("11oml6vi9s4la6fgcck9ta2y8"); // for (i = 0; i < 3; i++) {
403 UNSUPPORTED("dx4pjim9y4f2jtcu836j38fq8"); // if (d[i]) {
404 UNSUPPORTED("2zjj5fsuyj57whze7pm4bef4e"); // dtclose(d[i]);
405 UNSUPPORTED("5z84h9gs3klhayayencls3cd3"); // d[i] = ((Dict_t *)0);
406 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
407 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
408 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
409
410 throw new UnsupportedOperationException();
411 }
412
413
414
415
416 //3 5dw1m5wgietdxy22txx0l20ph
417 // void aginternalmapclose(Agraph_t * g)
418 public static Object aginternalmapclose(Object... arg) {
419 UNSUPPORTED("bdxp6h1xs4z2wt83fv2a3w0y2"); // void aginternalmapclose(Agraph_t * g)
420 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
421 UNSUPPORTED("6qvjz1ziwr3nwocahqvfzw14t"); // Ag_G_global = g;
422 UNSUPPORTED("9mn11z09mil44jhvfaju1n7i5"); // closeit(g->clos->lookup_by_name);
423 UNSUPPORTED("74lp49loz9ng7u2mjovdv1wd5"); // closeit(g->clos->lookup_by_id);
424 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
425
426 throw new UnsupportedOperationException();
427 }
428
429
430 }