| 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.cdt; |
| 47 | import static smetana.core.Macro.UNSUPPORTED; |
| 48 | import h.ST_dt_s; |
| 49 | import h.ST_dtlink_s; |
| 50 | |
| 51 | public class dtflatten__c { |
| 52 | //1 9k44uhd5foylaeoekf3llonjq |
| 53 | // extern Dtmethod_t* Dtset |
| 54 | |
| 55 | |
| 56 | //1 1ahfywsmzcpcig2oxm7pt9ihj |
| 57 | // extern Dtmethod_t* Dtbag |
| 58 | |
| 59 | |
| 60 | //1 anhghfj3k7dmkudy2n7rvt31v |
| 61 | // extern Dtmethod_t* Dtoset |
| 62 | |
| 63 | |
| 64 | //1 5l6oj1ux946zjwvir94ykejbc |
| 65 | // extern Dtmethod_t* Dtobag |
| 66 | |
| 67 | |
| 68 | //1 2wtf222ak6cui8cfjnw6w377z |
| 69 | // extern Dtmethod_t* Dtlist |
| 70 | |
| 71 | |
| 72 | //1 d1s1s6ibtcsmst88e3057u9r7 |
| 73 | // extern Dtmethod_t* Dtstack |
| 74 | |
| 75 | |
| 76 | //1 axa7mflo824p6fspjn1rdk0mt |
| 77 | // extern Dtmethod_t* Dtqueue |
| 78 | |
| 79 | |
| 80 | //1 ega812utobm4xx9oa9w9ayij6 |
| 81 | // extern Dtmethod_t* Dtdeque |
| 82 | |
| 83 | |
| 84 | //1 cyfr996ur43045jv1tjbelzmj |
| 85 | // extern Dtmethod_t* Dtorder |
| 86 | |
| 87 | |
| 88 | //1 wlofoiftbjgrrabzb2brkycg |
| 89 | // extern Dtmethod_t* Dttree |
| 90 | |
| 91 | |
| 92 | //1 12bds94t7voj7ulwpcvgf6agr |
| 93 | // extern Dtmethod_t* Dthash |
| 94 | |
| 95 | |
| 96 | //1 9lqknzty480cy7zsubmabkk8h |
| 97 | // extern Dtmethod_t _Dttree |
| 98 | |
| 99 | |
| 100 | //1 bvn6zkbcp8vjdhkccqo1xrkrb |
| 101 | // extern Dtmethod_t _Dthash |
| 102 | |
| 103 | |
| 104 | //1 9lidhtd6nsmmv3e7vjv9e10gw |
| 105 | // extern Dtmethod_t _Dtlist |
| 106 | |
| 107 | |
| 108 | //1 34ujfamjxo7xn89u90oh2k6f8 |
| 109 | // extern Dtmethod_t _Dtqueue |
| 110 | |
| 111 | |
| 112 | //1 3jy4aceckzkdv950h89p4wjc8 |
| 113 | // extern Dtmethod_t _Dtstack |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | //3 5zkzkycgp4e90pajuq4tczdbu |
| 119 | // Dtlink_t* dtflatten(Dt_t* dt) |
| 120 | public static ST_dtlink_s dtflatten(ST_dt_s dt) { |
| 121 | UNSUPPORTED("1u9gaaespn5nsfpluy23yon7s"); // Dtlink_t* dtflatten(Dt_t* dt) |
| 122 | UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // { |
| 123 | UNSUPPORTED("82qvflv3akadrlktyouix927i"); // register Dtlink_t *t, *r, *list, *last, **s, **ends; |
| 124 | UNSUPPORTED("3ku8njvyle1rle6f9ipn7rggg"); // /* already flattened */ |
| 125 | UNSUPPORTED("88rit68bon46m42ei6oby73oo"); // if(dt->data->type&010000 ) |
| 126 | UNSUPPORTED("d43szif4rveu1dyhv72xv101u"); // return dt->data->here; |
| 127 | UNSUPPORTED("1se1h7w1gasp0ag8tisjl5pox"); // list = last = ((Dtlink_t*)0); |
| 128 | UNSUPPORTED("32ow9kmsxf47y1h17vyj3ef11"); // if(dt->data->type&(0000001|0000002)) |
| 129 | UNSUPPORTED("9tn2ho5yddz96m6l7hzk1m1v7"); // { for(ends = (s = dt->data->hh._htab) + dt->data->ntab; s < ends; ++s) |
| 130 | UNSUPPORTED("5n6odtt738etawc5nprf2q25r"); // { if((t = *s) ) |
| 131 | UNSUPPORTED("7bsf06vm0raykokk6wn5303yf"); // { if(last) |
| 132 | UNSUPPORTED("9albzpygbxkhbrb2e3af7z7b9"); // last->right = t; |
| 133 | UNSUPPORTED("3flwmlcisbdjifpiw5azq841e"); // else list = last = t; |
| 134 | UNSUPPORTED("1pn5heoey2lil0muuixlrz154"); // while(last->right) |
| 135 | UNSUPPORTED("14t2izprf2nq8tnxy4yre0zso"); // last = last->right; |
| 136 | UNSUPPORTED("bgkf4krgjdc0kzlz7de3kbj2u"); // *s = last; |
| 137 | UNSUPPORTED("3to5h0rvqxdeqs38mhv47mm3o"); // } |
| 138 | UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // } |
| 139 | UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // } |
| 140 | UNSUPPORTED("2lqxby7q5n5w5w5uuujup7o8a"); // else if(dt->data->type&(0000020|0000040|0000100) ) |
| 141 | UNSUPPORTED("13uczemwz6rongidozoryhb8e"); // list = dt->data->hh._head; |
| 142 | UNSUPPORTED("6amw1s4wntui27fzf3qls02u5"); // else if((r = dt->data->here) ) /*if(dt->data->type&(DT_OSET|DT_OBAG))*/ |
| 143 | UNSUPPORTED("solulu57qiizpqhr11tmch0h"); // { while((t = r->hl._left) ) |
| 144 | UNSUPPORTED("em247yaxylt9wh0lfmqk531iy"); // (((r)->hl._left = (t)->right, (t)->right = (r)), (r) = (t)); |
| 145 | UNSUPPORTED("6ggr0z59qqyosbseo6wdmvkc3"); // for(list = last = r, r = r->right; r; last = r, r = r->right) |
| 146 | UNSUPPORTED("2jldxtvoid7uy4yqdouts2ysu"); // { if((t = r->hl._left) ) |
| 147 | UNSUPPORTED("ecb7vosojs9ov68ty9m0hzegp"); // { do (((r)->hl._left = (t)->right, (t)->right = (r)), (r) = (t)); |
| 148 | UNSUPPORTED("f2e7di1g7bvt88336jnz0ogd5"); // while((t = r->hl._left) ); |
| 149 | UNSUPPORTED("dol9o0lco748q0ap9l7afdbcs"); // last->right = r; |
| 150 | UNSUPPORTED("3to5h0rvqxdeqs38mhv47mm3o"); // } |
| 151 | UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // } |
| 152 | UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // } |
| 153 | UNSUPPORTED("e880ypqj4mv8ru940eyjo5ene"); // dt->data->here = list; |
| 154 | UNSUPPORTED("8hv4u1n328awal8yfoqykdhxi"); // dt->data->type |= 010000; |
| 155 | UNSUPPORTED("bq8fdnp0ptlj82raupu7egafd"); // return list; |
| 156 | UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // } |
| 157 | |
| 158 | throw new UnsupportedOperationException(); |
| 159 | } |
| 160 | |
| 161 | |
| 162 | } |