Debian Codegraph @

src/gen/lib/gvc/gvdevice__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.gvc;
47 import static smetana.core.Macro.UNSUPPORTED;
48
49 public class gvdevice__c {
50 //1 2digov3edok6d5srhgtlmrycs
51 // extern lt_symlist_t lt_preloaded_symbols[]
52
53
54 //1 baedz5i9est5csw3epz3cv7z
55 // typedef Ppoly_t Ppolyline_t
56
57
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 eru7ktmd59gl3fcbs2oilhvbl
151 // static const int PAGE_ALIGN = 4095
152
153
154
155
156 //3 2bgvvqltcp240iwsswb2msc4b
157 // static size_t gvwrite_no_z (GVJ_t * job, const char *s, size_t len)
158 public static Object gvwrite_no_z(Object... arg) {
159 UNSUPPORTED("avituu19zqjw7jh9tfrcm2vaa"); // static size_t gvwrite_no_z (GVJ_t * job, const char *s, size_t len)
160 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
161 UNSUPPORTED("6thhrxbooxwjzs6lvh7tmii55"); // if (job->gvc->write_fn) /* externally provided write dicipline */
162 UNSUPPORTED("ajwhqhqyqpwentvna296wopdr"); // return (job->gvc->write_fn)(job, (char*)s, len);
163 UNSUPPORTED("lih0ttredmrxsoz6mrlvzubo"); // if (job->output_data) {
164 UNSUPPORTED("bnah2gb2ufomx7jjnzd97mbzm"); // if (len > job->output_data_allocated - (job->output_data_position + 1)) {
165 UNSUPPORTED("3hrbwji40pio192kzij9cn7v1"); // /* ensure enough allocation for string = null terminator */
166 UNSUPPORTED("1ezdnr79jqff920zcjfu0ppqk"); // job->output_data_allocated = (job->output_data_position + len + 1 + PAGE_ALIGN) & ~PAGE_ALIGN;
167 UNSUPPORTED("b67xdfs465mphgzhwe78lbfbu"); // job->output_data = realloc(job->output_data, job->output_data_allocated);
168 UNSUPPORTED("4xh16lf1s9kh9dcfg8f9fkvfb"); // if (!job->output_data) {
169 UNSUPPORTED("ec5pxlqld1kcgdncsj3us6t3s"); // (job->common->errorfn) ("memory allocation failure\n");
170 UNSUPPORTED("7ujm7da8xuut83e2rygja0n9d"); // exit(1);
171 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
172 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
173 UNSUPPORTED("c02x4fbrjzoq9hakupjq645pz"); // memcpy(job->output_data + job->output_data_position, s, len);
174 UNSUPPORTED("bmmkwdo5fdxd026lky22ivss6"); // job->output_data_position += len;
175 UNSUPPORTED("9akolspkl84209r7uz2tjd6dd"); // job->output_data[job->output_data_position] = '\0'; /* keep null termnated */
176 UNSUPPORTED("38a44j47si8lvew9i7jutukn9"); // return len;
177 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
178 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
179 UNSUPPORTED("8n04i1xqzj3xqxz7bhsek9vn7"); // return fwrite(s, sizeof(char), len, job->output_file);
180 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
181 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
182
183 throw new UnsupportedOperationException();
184 }
185
186
187
188
189 //3 cc376t4uiy6qsmjtdc2stei85
190 // static void auto_output_filename(GVJ_t *job)
191 public static Object auto_output_filename(Object... arg) {
192 UNSUPPORTED("7bmm5yx4a4rufskcsnxv6wl0z"); // static void auto_output_filename(GVJ_t *job)
193 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
194 UNSUPPORTED("8kywmm7f51dmrjngxwvnpsd4o"); // static char *buf;
195 UNSUPPORTED("ej9a738oun75yfz0fwi5yrr5"); // static size_t bufsz;
196 UNSUPPORTED("92ye5npa3uq0ky5glgy35w5sk"); // char gidx[100]; /* large enough for '.' plus any integer */
197 UNSUPPORTED("4qa1e25as4n8qmsddpuz660zr"); // char *fn, *p, *q;
198 UNSUPPORTED("do481ti1ubw0ltflx52iweigu"); // size_t len;
199 UNSUPPORTED("8siu0oojewru3x36pkpq3rtcm"); // if (job->graph_index)
200 UNSUPPORTED("36vwk7ry5ee8fz8vvvxhsa53y"); // sprintf(gidx, ".%d", job->graph_index + 1);
201 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
202 UNSUPPORTED("11rmpw063nwapibztle1uicb4"); // gidx[0] = '\0';
203 UNSUPPORTED("bdnmi5g7zugx6oqb8oim4qkk6"); // if (!(fn = job->input_filename))
204 UNSUPPORTED("1461mo4l6w379jk7almrmjggq"); // fn = "noname.gv";
205 UNSUPPORTED("eo5ffy7jun0ei6jtmk8u4kwo5"); // len = strlen(fn) /* typically "something.gv" */
206 UNSUPPORTED("1ujivh2ss3ln7xyoufm1icu1s"); // + strlen(gidx) /* "", ".2", ".3", ".4", ... */
207 UNSUPPORTED("kjjd1xhi7gp11bp4k1e57wxd"); // + 1 /* "." */
208 UNSUPPORTED("eygwbha2x1l4n5rzyomr2dbqz"); // + strlen(job->output_langname) /* e.g. "png" */
209 UNSUPPORTED("6smfmxycsc2mrvcsl6mrgi727"); // + 1; /* null terminaor */
210 UNSUPPORTED("55qowwh2rcv2v2uu70hde9ct4"); // if (bufsz < len) {
211 UNSUPPORTED("12hyi8sdel7zfnt9c20av1tp8"); // bufsz = len + 10;
212 UNSUPPORTED("7ms5jdr5m50uzo3lxyt1gq0cj"); // buf = realloc(buf, bufsz * sizeof(char));
213 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
214 UNSUPPORTED("3czlpsj98ep2bccpqdudm2bej"); // strcpy(buf, fn);
215 UNSUPPORTED("5iz9z9zc85yv4b16sbx2lywny"); // strcat(buf, gidx);
216 UNSUPPORTED("5uqzbiefai050ewcqnxnhzyd2"); // strcat(buf, ".");
217 UNSUPPORTED("erqd7hdzmwkcvzz2s1bjfhgwr"); // p = strdup(job->output_langname);
218 UNSUPPORTED("4n8ktnhzjg21hh167bu9kbvuh"); // while ((q = strrchr(p, ':'))) {
219 UNSUPPORTED("18g9wxzxu3k31c0stdr62a2r6"); // strcat(buf, q+1);
220 UNSUPPORTED("3d0me2fe34rtpbmdfbbp9zyvk"); // strcat(buf, ".");
221 UNSUPPORTED("cxlp7boqg1gqp4ii26w29519a"); // *q = '\0';
222 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
223 UNSUPPORTED("94ysqimvfahimlahyh4amvdd8"); // strcat(buf, p);
224 UNSUPPORTED("bo0y3vz195pcz24vm46pixpb2"); // free(p);
225 UNSUPPORTED("eif3727zpcgrby865izuy2bam"); // job->output_filename = buf;
226 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
227
228 throw new UnsupportedOperationException();
229 }
230
231
232
233
234 //3 9zdt3xvyjnxhf42eizyfy29ly
235 // int gvdevice_initialize(GVJ_t * job)
236 public static Object gvdevice_initialize(Object... arg) {
237 UNSUPPORTED("2same1m1pu1ldefe93fodijcl"); // int gvdevice_initialize(GVJ_t * job)
238 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
239 UNSUPPORTED("44r8xaau6kv13q6liujnhwe0i"); // gvdevice_engine_t *gvde = job->device.engine;
240 UNSUPPORTED("eyew5ay5wwktz4fysz0b78ugv"); // GVC_t *gvc = job->gvc;
241 UNSUPPORTED("2p848auysctbpp02yxskwgoef"); // if (gvde && gvde->initialize) {
242 UNSUPPORTED("3vrhe9vyw7wj2er55do0u371j"); // gvde->initialize(job);
243 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
244 UNSUPPORTED("8gs9pxngjqg7knaxiacx0x8tq"); // else if (job->output_data) {
245 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
246 UNSUPPORTED("359rwgnb349m83fzxkva3v46w"); // /* if the device has no initialization then it uses file output */
247 UNSUPPORTED("33oebivtpnjqlipt0pt25chff"); // else if (!job->output_file) { /* if not yet opened */
248 UNSUPPORTED("dp33ygrqgmzkpm08snkc1ervb"); // if (gvc->common.auto_outfile_names)
249 UNSUPPORTED("e114zl89x5x9bx0p6tnctzh9z"); // auto_output_filename(job);
250 UNSUPPORTED("a7zftzoyvxtzvya1m1b2ttg72"); // if (job->output_filename) {
251 UNSUPPORTED("v1eei32rad2oq6s98de4ew05"); // job->output_file = fopen(job->output_filename, "w");
252 UNSUPPORTED("afw1ljocg5i7vzl6ghbj5joaq"); // if (job->output_file == (void *)0) {
253 UNSUPPORTED("3kbjb2hiznrrr74oirsmjdsjy"); // (job->common->errorfn) ("Could not open \"%s\" for writing : %s\n",
254 UNSUPPORTED("2lce20ttxmbpd5czpm6pd2mv6"); // job->output_filename, strerror(errno));
255 UNSUPPORTED("ef12rdptgkbtbbvkzn1djihki"); // /* perror(job->output_filename); */
256 UNSUPPORTED("6jf2l4v31jakvckptxdonjqpl"); // return(1);
257 UNSUPPORTED("7g94ubxa48a1yi3mf9v521b7c"); // }
258 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
259 UNSUPPORTED("35nw1pbiz2p3s6qwlam5eoo3m"); // else
260 UNSUPPORTED("9c37ox95uc5viasrpewfi74ew"); // job->output_file = stdout;
261 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
262 UNSUPPORTED("146f5u2dl3dt3devy0qnn6ylz"); // if (job->flags & (1<<10)) {
263 UNSUPPORTED("98ow53mx94n2jxerk4g3xuyju"); // (job->common->errorfn) ("No libz support.\n");
264 UNSUPPORTED("atcj5la5r4ghvn5xk7kx25y7f"); // return(1);
265 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
266 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
267 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
268
269 throw new UnsupportedOperationException();
270 }
271
272
273
274
275 //3 ajhncfer509k2pk55o2k8w9aw
276 // size_t gvwrite (GVJ_t * job, const char *s, size_t len)
277 public static Object gvwrite(Object... arg) {
278 UNSUPPORTED("bwx5n843dguc728qqcypic3er"); // size_t gvwrite (GVJ_t * job, const char *s, size_t len)
279 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
280 UNSUPPORTED("cmn7vwsif1z0j2gjyq9v1u4pc"); // size_t ret, olen;
281 UNSUPPORTED("bhgtpxgp12b1cvyt6ozbjx6yy"); // if (!len || !s)
282 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
283 UNSUPPORTED("146f5u2dl3dt3devy0qnn6ylz"); // if (job->flags & (1<<10)) {
284 UNSUPPORTED("98ow53mx94n2jxerk4g3xuyju"); // (job->common->errorfn) ("No libz support.\n");
285 UNSUPPORTED("dtw3cma0ziyha0w534bszl0tx"); // exit(1);
286 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
287 UNSUPPORTED("8k95edr042llogz6nqedj70ic"); // else { /* uncompressed write */
288 UNSUPPORTED("3dfkzetcm152gosaspkplit3e"); // ret = gvwrite_no_z (job, s, len);
289 UNSUPPORTED("couxfse3y39odtdvb0dsftko7"); // if (ret != len) {
290 UNSUPPORTED("d5gw78oi8bl5tvl05pegfx7do"); // (job->common->errorfn) ("gvwrite_no_z problem %d\n", len);
291 UNSUPPORTED("6f1y0d5qfp1r9zpw0r7m6xfb4"); // exit(1);
292 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
293 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
294 UNSUPPORTED("ji4xmwppaalf0z5xzgfw9h36"); // return len;
295 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
296
297 throw new UnsupportedOperationException();
298 }
299
300
301
302
303 //3 38q4ri7dsm0ur36bqkxqeeu6y
304 // int gvferror (FILE* stream)
305 public static Object gvferror(Object... arg) {
306 UNSUPPORTED("bw6pcxpys8yj8g1611fjiq85f"); // int gvferror (FILE* stream)
307 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
308 UNSUPPORTED("3g3bthpqcv2dm7v2g4agrgksv"); // GVJ_t *job = (GVJ_t*)stream;
309 UNSUPPORTED("e7b7ktlmv7bf41ah2uirp0wr4"); // if (!job->gvc->write_fn && !job->output_data)
310 UNSUPPORTED("k1l61wmfzzg66hb7gu3ouzpe"); // return ferror(job->output_file);
311 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
312 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
313
314 throw new UnsupportedOperationException();
315 }
316
317
318
319
320 //3 ejkm659i2t9ni9abwvls81srg
321 // size_t gvfwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream)
322 public static Object gvfwrite(Object... arg) {
323 UNSUPPORTED("9jmr6dp0tzh6pynfebkrgg0qu"); // size_t gvfwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream)
324 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
325 UNSUPPORTED("2fw95dei1ujeec0ctcdy57c1x"); // assert(size = sizeof(char));
326 UNSUPPORTED("bnwpx03tbl086znf32xqomw8m"); // return gvwrite((GVJ_t*)stream, ptr, nmemb);
327 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
328
329 throw new UnsupportedOperationException();
330 }
331
332
333
334
335 //3 baq4lnmy9b8h5r38t5kac1wfp
336 // int gvputs(GVJ_t * job, const char *s)
337 public static Object gvputs(Object... arg) {
338 UNSUPPORTED("1p5e428gxaoorzh5qz00rfy0k"); // int gvputs(GVJ_t * job, const char *s)
339 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
340 UNSUPPORTED("6sarrx22njzxoct1tqx2jnqwz"); // size_t len = strlen(s);
341 UNSUPPORTED("ebjgxf9iw1qng39s9u5strvc4"); // if (gvwrite (job, s, len) != len) {
342 UNSUPPORTED("5c6r4edgvaov4ot4iejbv50ew"); // return EOF;
343 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
344 UNSUPPORTED("68vhwhq54lavtuaojheojvecm"); // return +1;
345 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
346
347 throw new UnsupportedOperationException();
348 }
349
350
351
352
353 //3 dmzoqt3ukt72kvftmdjotritt
354 // int gvputc(GVJ_t * job, int c)
355 public static Object gvputc(Object... arg) {
356 UNSUPPORTED("9mag55jpuhl60bjf9unj7xp92"); // int gvputc(GVJ_t * job, int c)
357 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
358 UNSUPPORTED("79xkgu0m0ig0jh2o4v92li22p"); // const char cc = c;
359 UNSUPPORTED("fkmtzb4a1u4ktyy2bnjez0jd"); // if (gvwrite (job, &cc, 1) != 1) {
360 UNSUPPORTED("5c6r4edgvaov4ot4iejbv50ew"); // return EOF;
361 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
362 UNSUPPORTED("bskm24m9z4b23box60oxnymv"); // return c;
363 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
364
365 throw new UnsupportedOperationException();
366 }
367
368
369
370
371 //3 cv9w48stixnm7kbet4eftjadx
372 // int gvflush (GVJ_t * job)
373 public static Object gvflush(Object... arg) {
374 UNSUPPORTED("5ckii4epkwj83v2nnt54ofh8d"); // int gvflush (GVJ_t * job)
375 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
376 UNSUPPORTED("f23odcxaxyzdd27mwuhiizdj4"); // if (job->output_file
377 UNSUPPORTED("3bjid3e6jo6zuivokehya58qk"); // && ! job->external_context
378 UNSUPPORTED("8z4jf2igc0co6dh6zx1110nbs"); // && ! job->gvc->write_fn) {
379 UNSUPPORTED("5x7mdmw0x73vwxz61fk2yrvdm"); // return fflush(job->output_file);
380 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
381 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
382 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
383 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
384
385 throw new UnsupportedOperationException();
386 }
387
388
389
390
391 //3 330e9khckra3n5ssrwak5tfea
392 // static void gvdevice_close(GVJ_t * job)
393 public static Object gvdevice_close(Object... arg) {
394 UNSUPPORTED("1kd1owjv512h3o8vja7myre50"); // static void gvdevice_close(GVJ_t * job)
395 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
396 UNSUPPORTED("1id7d9wccsfisc4cede1yqiu2"); // if (job->output_filename
397 UNSUPPORTED("3d4zs0j1uyhbel5t3tudtwj7i"); // && job->output_file != stdout
398 UNSUPPORTED("9q0a541k3fxrd3zi25ga414vc"); // && ! job->external_context) {
399 UNSUPPORTED("cn3fn60ccz3zrmkt743v9paw1"); // if (job->output_file) {
400 UNSUPPORTED("3hu3ukt7mqj5b5sj0atl2z0f3"); // fclose(job->output_file);
401 UNSUPPORTED("80vq4s94ms6swfrhmfvi3b7w9"); // job->output_file = (void *)0;
402 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
403 UNSUPPORTED("54nje7askf5ueua9t49ftz331"); // job->output_filename = (void *)0;
404 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
405 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
406
407 throw new UnsupportedOperationException();
408 }
409
410
411
412
413 //3 b8iwpcj6eij03r64m0360e7qs
414 // void gvdevice_format(GVJ_t * job)
415 public static Object gvdevice_format(Object... arg) {
416 UNSUPPORTED("6z5f8fkhpqc1bo4eeaxujv2lr"); // void gvdevice_format(GVJ_t * job)
417 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
418 UNSUPPORTED("44r8xaau6kv13q6liujnhwe0i"); // gvdevice_engine_t *gvde = job->device.engine;
419 UNSUPPORTED("9ohvvtakp5ajym21rtdihk6v3"); // if (gvde && gvde->format)
420 UNSUPPORTED("39cv29fv2w96rfomdzkfzjvyq"); // gvde->format(job);
421 UNSUPPORTED("4jpzlipnntejeqtwox13wbkj6"); // gvflush (job);
422 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
423
424 throw new UnsupportedOperationException();
425 }
426
427
428
429
430 //3 46sqk4d6tbspekxqa4h32d301
431 // void gvdevice_finalize(GVJ_t * job)
432 public static Object gvdevice_finalize(Object... arg) {
433 UNSUPPORTED("e4zp9r9c2a5l12d2tadisfxsi"); // void gvdevice_finalize(GVJ_t * job)
434 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
435 UNSUPPORTED("44r8xaau6kv13q6liujnhwe0i"); // gvdevice_engine_t *gvde = job->device.engine;
436 UNSUPPORTED("2524ggmnv8w9jo35baux304v2"); // boolean finalized_p = 0;
437 UNSUPPORTED("146f5u2dl3dt3devy0qnn6ylz"); // if (job->flags & (1<<10)) {
438 UNSUPPORTED("crmqlvwk4eg6ed4abp1762kia"); // (job->common->errorfn) ("No libz support\n");
439 UNSUPPORTED("dtw3cma0ziyha0w534bszl0tx"); // exit(1);
440 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
441 UNSUPPORTED("79baddj51af049jts2lck9hor"); // if (gvde) {
442 UNSUPPORTED("aw6mxvr3p8qyvr6ia2k3985n3"); // if (gvde->finalize) {
443 UNSUPPORTED("3ey2j155dc6rd51zymyvmijuc"); // gvde->finalize(job);
444 UNSUPPORTED("351335dca88m4t8cwizgrx480"); // finalized_p = (!(0));
445 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
446 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
447 UNSUPPORTED("7rzmcwo03kb19vozyklhbkc51"); // if (! finalized_p) {
448 UNSUPPORTED("1gp40nfjzceqr97tmcdvl9pmp"); // /* if the device has no finalization then it uses file output */
449 UNSUPPORTED("f0b7hjoakoas2g2gn6tq5mmj"); // gvflush (job);
450 UNSUPPORTED("18z7v2vnzihvtt5nnbj4q3vpo"); // gvdevice_close(job);
451 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
452 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
453
454 throw new UnsupportedOperationException();
455 }
456
457
458
459
460 //3 1egirdomc1btc6kjc3dgard3o
461 // void gvprintf(GVJ_t * job, const char *format, ...)
462 public static Object gvprintf(Object... arg) {
463 UNSUPPORTED("6fhkk7sp6y4sbd7qnk0vy9c"); // void gvprintf(GVJ_t * job, const char *format, ...)
464 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
465 UNSUPPORTED("cf8w5z35zxww7q6yjin9lc9op"); // char buf[BUFSIZ];
466 UNSUPPORTED("do481ti1ubw0ltflx52iweigu"); // size_t len;
467 UNSUPPORTED("6kugk1wk3bh66t9k1cisj3wws"); // va_list argp;
468 UNSUPPORTED("dylk0k9c053zb6dp6be1l1vlz"); // char* bp = buf;
469 UNSUPPORTED("6kwm594sixkxroywvqwfb048w"); // va_start(argp, format);
470 UNSUPPORTED("35tuv43una070zfa0wiq1t98n"); // len = vsprintf((char *)buf, format, argp);
471 UNSUPPORTED("9ndja25a5zuub02u8harxnr00"); // va_end(argp);
472 UNSUPPORTED("2h330v6zn1h7y9gty8zh7alu6"); // gvwrite(job, bp, len);
473 UNSUPPORTED("d89vwxhq1gwui8as32g4iyoqu"); // if (bp != buf)
474 UNSUPPORTED("e2oio1w9ngi670q15wq9lrmhg"); // free (bp);
475 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
476
477 throw new UnsupportedOperationException();
478 }
479
480
481 //1 1x6fpuyldpyrhmc2wjnt9r3t5
482 // static double maxnegnum = -999999999999999.99
483
484
485 //1 8lsntfgdc1tpzcdl8okf4a3xl
486 // static char maxnegnumstr[] =
487
488
489
490
491 //3 alkcimcmn7kdav5dab3x68rin
492 // static char * gvprintnum (size_t *len, double number)
493 public static Object gvprintnum(Object... arg) {
494 UNSUPPORTED("3sz3rah6s15fileyrygtyvsy4"); // static char * gvprintnum (size_t *len, double number)
495 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
496 UNSUPPORTED("4mh7wqzk1u55blr6bw1de1tu9"); // static char tmpbuf[sizeof(maxnegnumstr)]; /* buffer big enough for worst case */
497 UNSUPPORTED("6kv4u88wo0shex0a589kl7n3l"); // char *result = tmpbuf+sizeof(maxnegnumstr); /* init result to end of tmpbuf */
498 UNSUPPORTED("bryisyhf57o6i69bxu4ctbqn5"); // long int N;
499 UNSUPPORTED("do2ytzai3ubppaq9z7gm00438"); // boolean showzeros, negative;
500 UNSUPPORTED("9qzqrvquucu9whxj9cncldfww"); // int digit, i;
501 UNSUPPORTED("9gsgfs2guis9c3c3oi57mxpq2"); // /*
502 UNSUPPORTED("2xdl5tkxrstua20058b47xnir"); // number limited to a working range: maxnegnum >= n >= -maxnegnum
503 UNSUPPORTED("c4rjwybrx6rdpn7mwcxhhdt39"); // N = number * DECPLACES_SCALE rounded towards zero,
504 UNSUPPORTED("2p9kws9yqndurf6n81x7xull6"); // printing to buffer in reverse direction,
505 UNSUPPORTED("7ewnrrb059kj4ko3zan8jdop3"); // printing "." after DECPLACES
506 UNSUPPORTED("d35t12puy1knexzxrcyxbfpzj"); // suppressing trailing "0" and "."
507 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
508 UNSUPPORTED("3ivxbhh2hb2hdvn4pqede8m41"); // if (number < maxnegnum) { /* -ve limit */
509 UNSUPPORTED("ddh4m6vpzx2sr0pr1nvcd9c1t"); // *len = sizeof(maxnegnumstr)-1; /* len doesn't include terminator */
510 UNSUPPORTED("103x8qz3872e9w56yknxqpcn6"); // return maxnegnumstr;;
511 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
512 UNSUPPORTED("9txbbc6xpk58kk4py9kg3n19n"); // if (number > -maxnegnum) { /* +ve limit */
513 UNSUPPORTED("epuuqnbsnn45v3ldhyk2vcdr1"); // *len = sizeof(maxnegnumstr)-2; /* len doesn't include terminator or sign */
514 UNSUPPORTED("bsifggy4hjlok1u06o96n8wbn"); // return maxnegnumstr+1; /* +1 to skip the '-' sign */
515 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
516 UNSUPPORTED("dvimjkoyeydgr0k6m42r5slva"); // number *= 100; /* scale by DECPLACES_SCALE */
517 UNSUPPORTED("2d934k0h3vqdzcfu8c1eroycs"); // if (number < 0.0) /* round towards zero */
518 UNSUPPORTED("c5rejlqioi39lspbd8otnd6yi"); // N = number - 0.5;
519 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
520 UNSUPPORTED("8j9oa3w53bozqg7s4ajlxsnts"); // N = number + 0.5;
521 UNSUPPORTED("8qqpzh7dl5q2wsuc67kne6ply"); // if (N == 0) { /* special case for exactly 0 */
522 UNSUPPORTED("e6psxu2ksijx06nl6oyb12m0f"); // *len = 1;
523 UNSUPPORTED("5l47ei1ksik36ffjsvqzl5yt6"); // return "0";
524 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
525 UNSUPPORTED("disxlfqxvj0f745ce20slp755"); // if ((negative = (N < 0))) /* avoid "-0" by testing rounded int */
526 UNSUPPORTED("nr08nn1obuklfiybvxp8gdik"); // N = -N; /* make number +ve */
527 UNSUPPORTED("wlrwbcx0owaybg2agqhp29n"); // showzeros = 0; /* don't print trailing zeros */
528 UNSUPPORTED("cikkkc06rloyghq0l2srb8vix"); // for (i = 2; N || i > 0; i--) { /* non zero remainder,
529 UNSUPPORTED("23hzgib77z0odvb23kw58z50s"); // or still in fractional part */
530 UNSUPPORTED("mbh9mebm1pcpg3owc2q4v5xe"); // digit = N % 10; /* next least-significant digit */
531 UNSUPPORTED("dzqyilj008a4yb3o3xb49ycd2"); // N /= 10;
532 UNSUPPORTED("dcdutieoro6hdlcma5oe5l944"); // if (digit || showzeros) { /* if digit is non-zero,
533 UNSUPPORTED("2bm81grz43tgyhv4jyvdtmsxu"); // or if we are printing zeros */
534 UNSUPPORTED("dycrtr22pmd5lb4j8fj4yi49o"); // *--result = digit | '0'; /* convert digit to ascii */
535 UNSUPPORTED("4pqd87ba27akvu14kome4tjze"); // showzeros = (!(0)); /* from now on we must print zeros */
536 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
537 UNSUPPORTED("akn9rdzphyrql4nu286ezauux"); // if (i == 1) { /* if completed fractional part */
538 UNSUPPORTED("c98gv4lvkslivtou8sp5gjgv5"); // if (showzeros) /* if there was a non-zero fraction */
539 UNSUPPORTED("4e396qblfhvqsvgrwhjm4ucsw"); // *--result = '.'; /* print decimal point */
540 UNSUPPORTED("byd8n8dae1hujyrmzmt6sl0a6"); // showzeros = (!(0)); /* print all digits in int part */
541 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
542 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
543 UNSUPPORTED("c1bnjfpib859s8q27bm1enmy3"); // if (negative) /* print "-" if needed */
544 UNSUPPORTED("cttlmjpav2o8r87erigjvs5ss"); // *--result = '-';
545 UNSUPPORTED("do3t8frc2ui33ozznu6u8jfyd"); // *len = tmpbuf+sizeof(maxnegnumstr) - result;
546 UNSUPPORTED("coko8du03f3lw8bdkapbks750"); // return result;
547 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
548
549 throw new UnsupportedOperationException();
550 }
551
552
553
554
555 //3 bmeyiwkpu2qs7dejvs5sh6o8v
556 // void gvprintdouble(GVJ_t * job, double num)
557 public static Object gvprintdouble(Object... arg) {
558 UNSUPPORTED("cn6ds26lgsd3ujjqzrqcox1x5"); // void gvprintdouble(GVJ_t * job, double num)
559 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
560 UNSUPPORTED("6ik3p99apk5rihypipg0uxu8i"); // char *buf;
561 UNSUPPORTED("do481ti1ubw0ltflx52iweigu"); // size_t len;
562 UNSUPPORTED("8yb00gp3xzh6a9lvd5mwcrg08"); // buf = gvprintnum(&len, num);
563 UNSUPPORTED("56nuv66m5jb3tmogpfyb3w2e9"); // gvwrite(job, buf, len);
564 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
565
566 throw new UnsupportedOperationException();
567 }
568
569
570
571
572 //3 5duaexp4igxjoostpe3eattxa
573 // void gvprintpointf(GVJ_t * job, pointf p)
574 public static Object gvprintpointf(Object... arg) {
575 UNSUPPORTED("ctyuokdenka2j9jhskd3ql9px"); // void gvprintpointf(GVJ_t * job, pointf p)
576 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
577 UNSUPPORTED("6ik3p99apk5rihypipg0uxu8i"); // char *buf;
578 UNSUPPORTED("do481ti1ubw0ltflx52iweigu"); // size_t len;
579 UNSUPPORTED("1gpnnoam3bzp9eo5m7opks45t"); // buf = gvprintnum(&len, p.x);
580 UNSUPPORTED("56nuv66m5jb3tmogpfyb3w2e9"); // gvwrite(job, buf, len);
581 UNSUPPORTED("4t98op6wrpqegev92jt8qeuma"); // gvwrite(job, " ", 1);
582 UNSUPPORTED("2lggxf5etbmynuok5wquoc4h1"); // buf = gvprintnum(&len, p.y);
583 UNSUPPORTED("56nuv66m5jb3tmogpfyb3w2e9"); // gvwrite(job, buf, len);
584 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
585
586 throw new UnsupportedOperationException();
587 }
588
589
590
591
592 //3 9mtarrxfoqaaz8anygvcs0eni
593 // void gvprintpointflist(GVJ_t * job, pointf *p, int n)
594 public static Object gvprintpointflist(Object... arg) {
595 UNSUPPORTED("bbdhtxxtsiyz2al9t7saa9yqh"); // void gvprintpointflist(GVJ_t * job, pointf *p, int n)
596 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
597 UNSUPPORTED("7s165b75za7edl3pgyc01kxis"); // int i = 0;
598 UNSUPPORTED("5owjshc6gmd9o9lmekzcl6rvg"); // while ((!(0))) {
599 UNSUPPORTED("5xxbbxkf0cife9hhrjjzgkvjt"); // gvprintpointf(job, p[i]);
600 UNSUPPORTED("e8aux6mfyxrmvk370dq1a2tt9"); // if (++i >= n) break;
601 UNSUPPORTED("1rgsln2lih3ohh497shfjlgye"); // gvwrite(job, " ", 1);
602 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
603 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
604
605 throw new UnsupportedOperationException();
606 }
607
608
609 }