Debian Codegraph @

src/gen/lib/cgraph/agxbuf__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 agxbuf__c {
50
51
52 //3 688cb39nv214oqldmhd8roirz
53 // void agxbinit(agxbuf * xb, unsigned int hint, unsigned char *init)
54 public static Object agxbinit(Object... arg) {
55 UNSUPPORTED("4l5fskgdbcbqssdclb6lwckwe"); // void agxbinit(agxbuf * xb, unsigned int hint, unsigned char *init)
56 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
57 UNSUPPORTED("3ctz7esjgupftv01eshc2dhx2"); // if (init) {
58 UNSUPPORTED("7ccqm4ipez0mmdk6bv50shi8z"); // xb->buf = init;
59 UNSUPPORTED("bgb2e1tveztx6w0nuo6t6kxbd"); // xb->dyna = 0;
60 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
61 UNSUPPORTED("49jhfm9yw3megswomc4gzzgd7"); // if (hint == 0)
62 UNSUPPORTED("5h1ggxg5ypn75rue18vgizp12"); // hint = BUFSIZ;
63 UNSUPPORTED("bwuph2kus95n04yy45ff0ygwg"); // xb->dyna = 1;
64 UNSUPPORTED("rowpmdm8bmtos5w0uxjinsts"); // xb->buf = (unsigned char*)malloc((hint)*sizeof(unsigned char));
65 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
66 UNSUPPORTED("1vqjbr0qaxnp1tks2ilwqgn3g"); // xb->eptr = xb->buf + hint;
67 UNSUPPORTED("dtbxbzhkw05lut0ozk9a49lw6"); // xb->ptr = xb->buf;
68 UNSUPPORTED("5ymin98xo0ermvpyhsuo8xwim"); // *xb->ptr = '\0';
69 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
70
71 throw new UnsupportedOperationException();
72 }
73
74
75
76
77 //3 lu77u8ojbx0os3eapudi7k0e
78 // int agxbmore(agxbuf * xb, unsigned int ssz)
79 public static Object agxbmore(Object... arg) {
80 UNSUPPORTED("1zbuuoy42nrbwgmz0kzwxatml"); // int agxbmore(agxbuf * xb, unsigned int ssz)
81 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
82 UNSUPPORTED("ayzlme0ebe3j87lpz076cg2vq"); // int cnt; /* current no. of characters in buffer */
83 UNSUPPORTED("71r9w1f25l9h79jodjer7my8a"); // int size; /* current buffer size */
84 UNSUPPORTED("2bckq0rejaf94iovglem6hqko"); // int nsize; /* new buffer size */
85 UNSUPPORTED("dmokvf86b5kj3srnwwbr7ebmc"); // unsigned char *nbuf; /* new buffer */
86 UNSUPPORTED("347vqdgen21gpinnet4lkk7gk"); // size = xb->eptr - xb->buf;
87 UNSUPPORTED("49rolm7orqt4aw3uud529g4qc"); // nsize = 2 * size;
88 UNSUPPORTED("svb97awsbpziy0qhoaq68u7b"); // if (size + (int)ssz > nsize)
89 UNSUPPORTED("7ykdy1xuvrmibubukfxhfmz91"); // nsize = size + ssz;
90 UNSUPPORTED("bfinudkdiev8mwo6udbayoaex"); // cnt = xb->ptr - xb->buf;
91 UNSUPPORTED("4cmq49lu7qhmui59rl36qd6fr"); // if (xb->dyna) {
92 UNSUPPORTED("8vf8arbygb0610hkc403uiror"); // nbuf = realloc(xb->buf, nsize);
93 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
94 UNSUPPORTED("3sajbfvh0ecfy6mdfwrwrojl6"); // nbuf = (unsigned char*)malloc((nsize)*sizeof(unsigned char));
95 UNSUPPORTED("do1ts7n0vopj00hs85yw95qjx"); // memcpy(nbuf, xb->buf, cnt);
96 UNSUPPORTED("bwuph2kus95n04yy45ff0ygwg"); // xb->dyna = 1;
97 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
98 UNSUPPORTED("5a5gutjqda6fhdylt7vi64g71"); // xb->buf = nbuf;
99 UNSUPPORTED("dodqzfdb41641741187lm9aci"); // xb->ptr = xb->buf + cnt;
100 UNSUPPORTED("e45cf41wsuzfjfi2my7jn7odp"); // xb->eptr = xb->buf + nsize;
101 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
102 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
103
104 throw new UnsupportedOperationException();
105 }
106
107
108
109
110 //3 7q04bdt3el30gta4bdtl0cr8s
111 // int agxbput_n(agxbuf * xb, const char *s, unsigned int ssz)
112 public static Object agxbput_n(Object... arg) {
113 UNSUPPORTED("xj5zv8tlevqufi7kllkj6uu1"); // int agxbput_n(agxbuf * xb, const char *s, unsigned int ssz)
114 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
115 UNSUPPORTED("6q0wy2t9qi11079j0wyuhsmiw"); // if (xb->ptr + ssz > xb->eptr)
116 UNSUPPORTED("82p9dlopf5tuzmyy5454sv4mm"); // agxbmore(xb, ssz);
117 UNSUPPORTED("9tvk5ztcu9lg2u40sfmevitl2"); // memcpy(xb->ptr, s, ssz);
118 UNSUPPORTED("2wy6om6o92zevnnevl5v0pr0c"); // xb->ptr += ssz;
119 UNSUPPORTED("dzondrrxi2pe7xy72r0jstd20"); // return ssz;
120 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
121
122 throw new UnsupportedOperationException();
123 }
124
125
126
127
128 //3 12y895mwxr60srt40guuma6j5
129 // int agxbput(agxbuf * xb, const char *s)
130 public static Object agxbput(Object... arg) {
131 UNSUPPORTED("3oqw629wj8yulgtvwwlxn8iyi"); // int agxbput(agxbuf * xb, const char *s)
132 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
133 UNSUPPORTED("dmstj6pqesin7a4ufrtut65t5"); // unsigned int ssz = strlen(s);
134 UNSUPPORTED("7i8gvckml5cbfmuhw2pjs8czl"); // return agxbput_n(xb, s, ssz);
135 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
136
137 throw new UnsupportedOperationException();
138 }
139
140
141
142
143 //3 2zlar00xk0a2nnqcmjb587kvc
144 // void agxbfree(agxbuf * xb)
145 public static Object agxbfree(Object... arg) {
146 UNSUPPORTED("3zwjoplc2wp6x7lb2b5g59pl8"); // void agxbfree(agxbuf * xb)
147 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
148 UNSUPPORTED("da8gv3dgf6bnks54n9mnlgzxk"); // if (xb->dyna)
149 UNSUPPORTED("62irfu7vrq2ewolixn0ksp5f6"); // free(xb->buf);
150 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
151
152 throw new UnsupportedOperationException();
153 }
154
155
156
157
158 //3 cn9iiltxtts5ijjpixwt2uziu
159 // int agxbpop(agxbuf * xb)
160 public static Object agxbpop(Object... arg) {
161 UNSUPPORTED("1hje4ns6ul7cj52y9n9wlgkkc"); // int agxbpop(agxbuf * xb)
162 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
163 UNSUPPORTED("53xzwretgdbd0atozc0w6hagb"); // int c;
164 UNSUPPORTED("a6gx1f2k9r1jreuxvg1n7jpiw"); // if (xb->ptr > xb->buf) {
165 UNSUPPORTED("asuii09e2jl1px5timbisq3sx"); // c = *xb->ptr--;
166 UNSUPPORTED("7q6l09k0u87z31e0nmv2lwr94"); // return c;
167 UNSUPPORTED("2lkbqgh2h6urnppaik3zo7ywi"); // } else
168 UNSUPPORTED("8d9xfgejx5vgd6shva5wk5k06"); // return -1;
169 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
170
171 throw new UnsupportedOperationException();
172 }
173
174
175 }