/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * Project Info: http://plantuml.com * * If you like this project or if you find it useful, you can support us at: * * http://plantuml.com/patreon (only 1$ per month!) * http://plantuml.com/paypal * * This file is part of Smetana. * Smetana is a partial translation of Graphviz/Dot sources from C to Java. * * (C) Copyright 2009-2020, Arnaud Roques * * This translation is distributed under the same Licence as the original C program: * ************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: See CVS logs. Details at http://www.graphviz.org/ ************************************************************************* * * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0] * * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. * * You may obtain a copy of the License at * * http://www.eclipse.org/legal/epl-v10.html * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package gen.lib.cgraph; import static smetana.core.Macro.UNSUPPORTED; public class io__c { //1 9k44uhd5foylaeoekf3llonjq // extern Dtmethod_t* Dtset //1 1ahfywsmzcpcig2oxm7pt9ihj // extern Dtmethod_t* Dtbag //1 anhghfj3k7dmkudy2n7rvt31v // extern Dtmethod_t* Dtoset //1 5l6oj1ux946zjwvir94ykejbc // extern Dtmethod_t* Dtobag //1 2wtf222ak6cui8cfjnw6w377z // extern Dtmethod_t* Dtlist //1 d1s1s6ibtcsmst88e3057u9r7 // extern Dtmethod_t* Dtstack //1 axa7mflo824p6fspjn1rdk0mt // extern Dtmethod_t* Dtqueue //1 ega812utobm4xx9oa9w9ayij6 // extern Dtmethod_t* Dtdeque //1 cyfr996ur43045jv1tjbelzmj // extern Dtmethod_t* Dtorder //1 wlofoiftbjgrrabzb2brkycg // extern Dtmethod_t* Dttree //1 12bds94t7voj7ulwpcvgf6agr // extern Dtmethod_t* Dthash //1 9lqknzty480cy7zsubmabkk8h // extern Dtmethod_t _Dttree //1 bvn6zkbcp8vjdhkccqo1xrkrb // extern Dtmethod_t _Dthash //1 9lidhtd6nsmmv3e7vjv9e10gw // extern Dtmethod_t _Dtlist //1 34ujfamjxo7xn89u90oh2k6f8 // extern Dtmethod_t _Dtqueue //1 3jy4aceckzkdv950h89p4wjc8 // extern Dtmethod_t _Dtstack //1 8dfqgf3u1v830qzcjqh9o8ha7 // extern Agmemdisc_t AgMemDisc //1 18k2oh2t6llfsdc5x0wlcnby8 // extern Agiddisc_t AgIdDisc //1 a4r7hi80gdxtsv4hdoqpyiivn // extern Agiodisc_t AgIoDisc //1 bnzt5syjb7mgeru19114vd6xx // extern Agdisc_t AgDefaultDisc //1 35y2gbegsdjilegaribes00mg // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected //1 c2rygslq6bcuka3awmvy2b3ow // typedef Agsubnode_t Agnoderef_t //1 xam6yv0dcsx57dtg44igpbzn // typedef Dtlink_t Agedgeref_t //1 6ayavpu39aihwyojkx093pcy3 // extern Agraph_t *Ag_G_global //1 871mxtg9l6ffpxdl9kniwusf7 // extern char *AgDataRecName //1 c0o2kmml0tn6hftuwo0u4shwd // extern Dtdisc_t Ag_subnode_id_disc //1 8k15pyu256unm2kpd9zf5pf7k // extern Dtdisc_t Ag_subnode_seq_disc //1 e3d820y06gpeusn6atgmj8bzd // extern Dtdisc_t Ag_mainedge_id_disc //1 cbr0772spix9h1aw7h5v7dv9j // extern Dtdisc_t Ag_subedge_id_disc //1 akd0c3v0j7m2npxcb9acit1fa // extern Dtdisc_t Ag_mainedge_seq_disc //1 12d8la07351ww7vwfzucjst8m // extern Dtdisc_t Ag_subedge_seq_disc //1 29eokk7v88e62g8o6lizmo967 // extern Dtdisc_t Ag_subgraph_id_disc //1 4xd9cbgy6hk5g6nhjcbpzkx14 // extern Agcbdisc_t AgAttrdisc //3 b0a8zjzqjkvaiqw5i1y82wmzl // static int iofread(void *chan, char *buf, int bufsize) public static Object iofread(Object... arg) { UNSUPPORTED("bmcd2lihkoyncyz2t8p1ilwhr"); // static int iofread(void *chan, char *buf, int bufsize) UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { UNSUPPORTED("26gbavw0p5ppjkmaget64xm52"); // if (fgets(buf, bufsize, (FILE*)chan)) UNSUPPORTED("5o3cqxldbu1xnd5mgvbj1qy3s"); // return strlen(buf); UNSUPPORTED("div10atae09n36x269sl208r1"); // else UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0; UNSUPPORTED("eutkjban02p11hojrf12g0st9"); // /* return read(fileno((FILE *) chan), buf, bufsize); */ UNSUPPORTED("9xshhqhkyhgj8lsjfl6myd036"); // /* return fread(buf, 1, bufsize, (FILE*)chan); */ UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } throw new UnsupportedOperationException(); } //3 91y9tcvbxti1ic9nine083re2 // static int ioputstr(void *chan, const char *str) public static Object ioputstr(Object... arg) { UNSUPPORTED("2inl53c1xtplxmq6bmhva91ld"); // static int ioputstr(void *chan, const char *str) UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { UNSUPPORTED("4jzhyye95tludl3z1b0hqg16y"); // return fputs(str, (FILE *) chan); UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } throw new UnsupportedOperationException(); } //3 atp6gxqi8j9nz39ry13puhwck // static int ioflush(void *chan) public static Object ioflush(Object... arg) { UNSUPPORTED("elxcueeu6temiev9ncf78kvoq"); // static int ioflush(void *chan) UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { UNSUPPORTED("8803glp5cz89v6gvc897n9kjs"); // return fflush((FILE *) chan); UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } throw new UnsupportedOperationException(); } //1 2qjm4okqgeuarw1i5krezrxiq // Agiodisc_t AgIoDisc = //3 b6znej4isyhxv8vcdyjnnhlpu // static int memiofread(void *chan, char *buf, int bufsize) public static Object memiofread(Object... arg) { UNSUPPORTED("eyp5xkiyummcoc88ul2b6tkeg"); // static int UNSUPPORTED("cvqc79yfz9kp49vi5uimqh4jl"); // memiofread(void *chan, char *buf, int bufsize) UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { UNSUPPORTED("d66gzmbwgtbpy6ofjgqa41k5z"); // const char *ptr; UNSUPPORTED("7qpxboqf01dwsthlblwmt7abt"); // char *optr; UNSUPPORTED("wrvu9u7a8j6i6y6552zncxfk"); // char c; UNSUPPORTED("apjzivxhs9d0uxff51eym3g5y"); // int l; UNSUPPORTED("chj5f26gtak38l7rsif9tg2ef"); // rdr_t *s; UNSUPPORTED("chvo71lh9m3y44gq6waktkbh9"); // if (bufsize == 0) return 0; UNSUPPORTED("44j7d8p5naz440e73iup8jpiw"); // s = (rdr_t *) chan; UNSUPPORTED("dod41gsjapxzma7a71g52qjyv"); // if (s->cur >= s->len) UNSUPPORTED("egywkvzo2t847qnathqnanvcj"); // return 0; UNSUPPORTED("5fb3yrbuopnj8web61578myje"); // l = 0; UNSUPPORTED("4wkgx9rod3b8e1pxs5zhmavgr"); // ptr = s->data + s->cur; UNSUPPORTED("3mp6u4df68hahvdziio4exbae"); // optr = buf; UNSUPPORTED("lavqvwvsy9irf1laq0kebdbe"); // /* We know we have at least one character */ UNSUPPORTED("d9o980efrtbwu0i78c437f5bo"); // c = *ptr++; UNSUPPORTED("53kc41p479auwcycfsbhw8xix"); // do { UNSUPPORTED("22g9b5gxmlzveusouzcsxmazx"); // *optr++ = c; UNSUPPORTED("5xjaxhd59ghk4wid321bwwtu"); // l++; UNSUPPORTED("bghzvix8cn8psfx1zg00ral21"); // /* continue if c is not newline, we have space in buffer, UNSUPPORTED("ewvfix29v48zrdfokvs94fg22"); // * and next character is non-null (we are working with UNSUPPORTED("2tcf5k4so7geiwyrcd857b0kd"); // * null-terminated strings. UNSUPPORTED("62wb43w2xc6ex6hootjubbx22"); // */ UNSUPPORTED("4fyi2jay0vaa7egiypve395lt"); // } while ((c != '\n') && (l < bufsize) && (c = *ptr++)); UNSUPPORTED("20veathk82tfin58bt3ybegax"); // s->cur += l; UNSUPPORTED("bx6jd8tbmxxxpdfz7u9rtlds"); // return l; UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } throw new UnsupportedOperationException(); } //1 a56p4nhhkzxgzqx4hqbsff5hf // static Agiodisc_t memIoDisc = //3 7hpggznawe61je0f77vzdulun // Agraph_t *agmemread(const char *cp) public static Object agmemread(Object... arg) { UNSUPPORTED("8gnhy5r408vxior7h2ddxp3ea"); // Agraph_t *agmemread(const char *cp) UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { UNSUPPORTED("c9h1fo1uvas6uw1a8qaapnln6"); // Agraph_t* g; UNSUPPORTED("dv8xv53262iml39dlwafnq6yt"); // rdr_t rdr; UNSUPPORTED("act2n9l38mora4yp0ugd1sls4"); // Agdisc_t disc; UNSUPPORTED("x8365fstttag0j2sqo0x3z5k"); // memIoDisc.putstr = AgIoDisc.putstr; UNSUPPORTED("4kd68cbbycb36shew6gwdjehp"); // memIoDisc.flush = AgIoDisc.flush; UNSUPPORTED("asg6rxpzyrml0xjz6cw88nqdh"); // rdr.data = cp; UNSUPPORTED("ctbbb0s3tmdhmku71n493w07s"); // rdr.len = strlen(cp); UNSUPPORTED("3q856gggmhurx21iopk4q87dy"); // rdr.cur = 0; UNSUPPORTED("ar2u0bmktm68f4m00re7e6fl"); // disc.mem = &AgMemDisc; UNSUPPORTED("5m3cyfe6krwfilumr36kzfzx6"); // disc.id = &AgIdDisc; UNSUPPORTED("7pv4zby7sodjfrg6kryf7uwzt"); // disc.io = &memIoDisc; UNSUPPORTED("ewezfoxsntzvfqh08khv37zt7"); // g = agread (&rdr, &disc); UNSUPPORTED("2syri7q5tc0jyvwq8ecyfo3vr"); // return g; UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } throw new UnsupportedOperationException(); } }