Debian Codegraph @

src/gen/lib/cgraph/io__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.Macro.UNSUPPORTED;
48
49 public class io__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 //1 8dfqgf3u1v830qzcjqh9o8ha7
115 // extern Agmemdisc_t AgMemDisc
116
117
118 //1 18k2oh2t6llfsdc5x0wlcnby8
119 // extern Agiddisc_t AgIdDisc
120
121
122 //1 a4r7hi80gdxtsv4hdoqpyiivn
123 // extern Agiodisc_t AgIoDisc
124
125
126 //1 bnzt5syjb7mgeru19114vd6xx
127 // extern Agdisc_t AgDefaultDisc
128
129
130 //1 35y2gbegsdjilegaribes00mg
131 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
132
133
134 //1 c2rygslq6bcuka3awmvy2b3ow
135 // typedef Agsubnode_t Agnoderef_t
136
137
138 //1 xam6yv0dcsx57dtg44igpbzn
139 // typedef Dtlink_t Agedgeref_t
140
141
142 //1 6ayavpu39aihwyojkx093pcy3
143 // extern Agraph_t *Ag_G_global
144
145
146 //1 871mxtg9l6ffpxdl9kniwusf7
147 // extern char *AgDataRecName
148
149
150 //1 c0o2kmml0tn6hftuwo0u4shwd
151 // extern Dtdisc_t Ag_subnode_id_disc
152
153
154 //1 8k15pyu256unm2kpd9zf5pf7k
155 // extern Dtdisc_t Ag_subnode_seq_disc
156
157
158 //1 e3d820y06gpeusn6atgmj8bzd
159 // extern Dtdisc_t Ag_mainedge_id_disc
160
161
162 //1 cbr0772spix9h1aw7h5v7dv9j
163 // extern Dtdisc_t Ag_subedge_id_disc
164
165
166 //1 akd0c3v0j7m2npxcb9acit1fa
167 // extern Dtdisc_t Ag_mainedge_seq_disc
168
169
170 //1 12d8la07351ww7vwfzucjst8m
171 // extern Dtdisc_t Ag_subedge_seq_disc
172
173
174 //1 29eokk7v88e62g8o6lizmo967
175 // extern Dtdisc_t Ag_subgraph_id_disc
176
177
178 //1 4xd9cbgy6hk5g6nhjcbpzkx14
179 // extern Agcbdisc_t AgAttrdisc
180
181
182
183
184 //3 b0a8zjzqjkvaiqw5i1y82wmzl
185 // static int iofread(void *chan, char *buf, int bufsize)
186 public static Object iofread(Object... arg) {
187 UNSUPPORTED("bmcd2lihkoyncyz2t8p1ilwhr"); // static int iofread(void *chan, char *buf, int bufsize)
188 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
189 UNSUPPORTED("26gbavw0p5ppjkmaget64xm52"); // if (fgets(buf, bufsize, (FILE*)chan))
190 UNSUPPORTED("5o3cqxldbu1xnd5mgvbj1qy3s"); // return strlen(buf);
191 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
192 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
193 UNSUPPORTED("eutkjban02p11hojrf12g0st9"); // /* return read(fileno((FILE *) chan), buf, bufsize); */
194 UNSUPPORTED("9xshhqhkyhgj8lsjfl6myd036"); // /* return fread(buf, 1, bufsize, (FILE*)chan); */
195 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
196
197 throw new UnsupportedOperationException();
198 }
199
200
201
202
203 //3 91y9tcvbxti1ic9nine083re2
204 // static int ioputstr(void *chan, const char *str)
205 public static Object ioputstr(Object... arg) {
206 UNSUPPORTED("2inl53c1xtplxmq6bmhva91ld"); // static int ioputstr(void *chan, const char *str)
207 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
208 UNSUPPORTED("4jzhyye95tludl3z1b0hqg16y"); // return fputs(str, (FILE *) chan);
209 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
210
211 throw new UnsupportedOperationException();
212 }
213
214
215
216
217 //3 atp6gxqi8j9nz39ry13puhwck
218 // static int ioflush(void *chan)
219 public static Object ioflush(Object... arg) {
220 UNSUPPORTED("elxcueeu6temiev9ncf78kvoq"); // static int ioflush(void *chan)
221 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
222 UNSUPPORTED("8803glp5cz89v6gvc897n9kjs"); // return fflush((FILE *) chan);
223 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
224
225 throw new UnsupportedOperationException();
226 }
227
228
229 //1 2qjm4okqgeuarw1i5krezrxiq
230 // Agiodisc_t AgIoDisc =
231
232
233
234
235 //3 b6znej4isyhxv8vcdyjnnhlpu
236 // static int memiofread(void *chan, char *buf, int bufsize)
237 public static Object memiofread(Object... arg) {
238 UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); // static int
239 UNSUPPORTED("cvqc79yfz9kp49vi5uimqh4jl"); // memiofread(void *chan, char *buf, int bufsize)
240 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
241 UNSUPPORTED("d66gzmbwgtbpy6ofjgqa41k5z"); // const char *ptr;
242 UNSUPPORTED("7qpxboqf01dwsthlblwmt7abt"); // char *optr;
243 UNSUPPORTED("wrvu9u7a8j6i6y6552zncxfk"); // char c;
244 UNSUPPORTED("apjzivxhs9d0uxff51eym3g5y"); // int l;
245 UNSUPPORTED("chj5f26gtak38l7rsif9tg2ef"); // rdr_t *s;
246 UNSUPPORTED("chvo71lh9m3y44gq6waktkbh9"); // if (bufsize == 0) return 0;
247 UNSUPPORTED("44j7d8p5naz440e73iup8jpiw"); // s = (rdr_t *) chan;
248 UNSUPPORTED("dod41gsjapxzma7a71g52qjyv"); // if (s->cur >= s->len)
249 UNSUPPORTED("egywkvzo2t847qnathqnanvcj"); // return 0;
250 UNSUPPORTED("5fb3yrbuopnj8web61578myje"); // l = 0;
251 UNSUPPORTED("4wkgx9rod3b8e1pxs5zhmavgr"); // ptr = s->data + s->cur;
252 UNSUPPORTED("3mp6u4df68hahvdziio4exbae"); // optr = buf;
253 UNSUPPORTED("lavqvwvsy9irf1laq0kebdbe"); // /* We know we have at least one character */
254 UNSUPPORTED("d9o980efrtbwu0i78c437f5bo"); // c = *ptr++;
255 UNSUPPORTED("53kc41p479auwcycfsbhw8xix"); // do {
256 UNSUPPORTED("22g9b5gxmlzveusouzcsxmazx"); // *optr++ = c;
257 UNSUPPORTED("5xjaxhd59ghk4wid321bwwtu"); // l++;
258 UNSUPPORTED("bghzvix8cn8psfx1zg00ral21"); // /* continue if c is not newline, we have space in buffer,
259 UNSUPPORTED("ewvfix29v48zrdfokvs94fg22"); // * and next character is non-null (we are working with
260 UNSUPPORTED("2tcf5k4so7geiwyrcd857b0kd"); // * null-terminated strings.
261 UNSUPPORTED("62wb43w2xc6ex6hootjubbx22"); // */
262 UNSUPPORTED("4fyi2jay0vaa7egiypve395lt"); // } while ((c != '\n') && (l < bufsize) && (c = *ptr++));
263 UNSUPPORTED("20veathk82tfin58bt3ybegax"); // s->cur += l;
264 UNSUPPORTED("bx6jd8tbmxxxpdfz7u9rtlds"); // return l;
265 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
266
267 throw new UnsupportedOperationException();
268 }
269
270
271 //1 a56p4nhhkzxgzqx4hqbsff5hf
272 // static Agiodisc_t memIoDisc =
273
274
275
276
277 //3 7hpggznawe61je0f77vzdulun
278 // Agraph_t *agmemread(const char *cp)
279 public static Object agmemread(Object... arg) {
280 UNSUPPORTED("8gnhy5r408vxior7h2ddxp3ea"); // Agraph_t *agmemread(const char *cp)
281 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
282 UNSUPPORTED("c9h1fo1uvas6uw1a8qaapnln6"); // Agraph_t* g;
283 UNSUPPORTED("dv8xv53262iml39dlwafnq6yt"); // rdr_t rdr;
284 UNSUPPORTED("act2n9l38mora4yp0ugd1sls4"); // Agdisc_t disc;
285 UNSUPPORTED("x8365fstttag0j2sqo0x3z5k"); // memIoDisc.putstr = AgIoDisc.putstr;
286 UNSUPPORTED("4kd68cbbycb36shew6gwdjehp"); // memIoDisc.flush = AgIoDisc.flush;
287 UNSUPPORTED("asg6rxpzyrml0xjz6cw88nqdh"); // rdr.data = cp;
288 UNSUPPORTED("ctbbb0s3tmdhmku71n493w07s"); // rdr.len = strlen(cp);
289 UNSUPPORTED("3q856gggmhurx21iopk4q87dy"); // rdr.cur = 0;
290 UNSUPPORTED("ar2u0bmktm68f4m00re7e6fl"); // disc.mem = &AgMemDisc;
291 UNSUPPORTED("5m3cyfe6krwfilumr36kzfzx6"); // disc.id = &AgIdDisc;
292 UNSUPPORTED("7pv4zby7sodjfrg6kryf7uwzt"); // disc.io = &memIoDisc;
293 UNSUPPORTED("ewezfoxsntzvfqh08khv37zt7"); // g = agread (&rdr, &disc);
294 UNSUPPORTED("2syri7q5tc0jyvwq8ecyfo3vr"); // return g;
295 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
296
297 throw new UnsupportedOperationException();
298 }
299
300
301 }