| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
package gen.lib.cdt; |
| 47 |
import static gen.lib.cdt.dtflatten__c.dtflatten; |
| 48 |
import static gen.lib.cdt.dtrestore__c.dtrestore; |
| 49 |
import static smetana.core.JUtils.function; |
| 50 |
import static smetana.core.JUtilsDebug.ENTERING; |
| 51 |
import static smetana.core.JUtilsDebug.LEAVING; |
| 52 |
import static smetana.core.Macro.N; |
| 53 |
import static smetana.core.Macro.UNSUPPORTED; |
| 54 |
import h.Dtsearch_f; |
| 55 |
import h.ST_dt_s; |
| 56 |
import h.ST_dtdisc_s; |
| 57 |
import h.ST_dtlink_s; |
| 58 |
import smetana.core.CString; |
| 59 |
import smetana.core.Memory; |
| 60 |
import smetana.core.size_t; |
| 61 |
|
| 62 |
public class dtdisc__c { |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
public static Object dtmemory(ST_dt_s dt, Object addr, size_t size, ST_dtdisc_s disc) { |
| 132 |
ENTERING("507t9jcy6v9twvl30rs9i2nwi","dtmemory"); |
| 133 |
try { |
| 134 |
if(addr!=null) { |
| 135 |
if(size == null) { |
| 136 |
Memory.free(addr); |
| 137 |
return null; |
| 138 |
} |
| 139 |
UNSUPPORTED("9ed8imo9cbvwtwe92qmavoqko"); |
| 140 |
} |
| 141 |
else return size.isStrictPositive() ? size.malloc() : null; |
| 142 |
throw new UnsupportedOperationException(); |
| 143 |
} finally { |
| 144 |
LEAVING("507t9jcy6v9twvl30rs9i2nwi","dtmemory"); |
| 145 |
} |
| 146 |
} |
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
public static ST_dtdisc_s dtdisc(ST_dt_s dt, ST_dtdisc_s disc, int type) { |
| 154 |
ENTERING("axpvuswclmi9bx3qtlh4quyah","dtdisc"); |
| 155 |
try { |
| 156 |
Dtsearch_f searchf; |
| 157 |
ST_dtlink_s r, t; |
| 158 |
CString k; |
| 159 |
ST_dtdisc_s old; |
| 160 |
if(N(old = (ST_dtdisc_s) dt.disc) ) |
| 161 |
{ dt.setPtr("disc", disc); |
| 162 |
if(N(dt.setPtr("memoryf", disc.memoryf ))) |
| 163 |
dt.setPtr("memoryf", function(dtdisc__c.class, "dtmemory")); |
| 164 |
return disc; |
| 165 |
} |
| 166 |
if(N(disc)) |
| 167 |
return old; |
| 168 |
searchf = (Dtsearch_f) dt.meth.searchf; |
| 169 |
if((dt.data.type&010000)!=0) dtrestore(dt,null); |
| 170 |
if(old.eventf!=null && ((Integer)old.eventf.exe(dt,3, disc,old)) < 0) |
| 171 |
return null; |
| 172 |
dt.setPtr("disc", disc); |
| 173 |
if(N(dt.setPtr("memoryf", disc.memoryf))) |
| 174 |
dt.setPtr("memoryf", function(dtdisc__c.class, "dtmemory")); |
| 175 |
if((dt.data.type&(0000040|0000100|0000020))!=0) |
| 176 |
UNSUPPORTED("e2tzh95k1lvjl6wbtpwizam8q"); |
| 177 |
else if((dt.data.type&0000002)!=0) { |
| 178 |
UNSUPPORTED("3q5nyguq8mgdfwmm0yrzq2br8"); |
| 179 |
UNSUPPORTED("93q6zqzlgfz2qd0yl6koyw99c"); |
| 180 |
UNSUPPORTED("6d1rfacssm8768oz9fu5o66t8"); |
| 181 |
} |
| 182 |
else if((dt.data.type&(0000001|0000002))!=0) { |
| 183 |
UNSUPPORTED("8xmm1djjds55s86jodixkp72u"); |
| 184 |
UNSUPPORTED("93q6zqzlgfz2qd0yl6koyw99c"); |
| 185 |
UNSUPPORTED("6d1rfacssm8768oz9fu5o66t8"); |
| 186 |
} |
| 187 |
else { |
| 188 |
if((type&0000001)!=0) |
| 189 |
UNSUPPORTED("93q6zqzlgfz2qd0yl6koyw99c"); |
| 190 |
|
| 191 |
r = dtflatten(dt); |
| 192 |
UNSUPPORTED("1rry7yjzos90pgbf3li2qpa18"); |
| 193 |
UNSUPPORTED("6vkn7padspfbtju9g5b65b34w"); |
| 194 |
UNSUPPORTED("2jfi30wa60xp7iqlk9yyf4k5j"); |
| 195 |
UNSUPPORTED("1i3oayy7gy36lar9kfhuq6rur"); |
| 196 |
UNSUPPORTED("ay51d19gimt3gpqjact2t0ypm"); |
| 197 |
UNSUPPORTED("5p6g054kk7snvpwuxudelseir"); |
| 198 |
UNSUPPORTED("3zu1r6orkvmsvbjbzqqx9wedr"); |
| 199 |
UNSUPPORTED("9wq8eycc78fg8sqi6bjce4q7f"); |
| 200 |
UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); |
| 201 |
UNSUPPORTED("3rfhc462a0qx53yecw933hkk8"); |
| 202 |
UNSUPPORTED("ctmfjzioo5q7mzsmb6rf9mxoy"); |
| 203 |
UNSUPPORTED("9qxb0eqp3ujnnuum1bggqarjh"); |
| 204 |
UNSUPPORTED("ddltpk94i08fyy6x03ozyc7s1"); |
| 205 |
UNSUPPORTED("8mj2vd7idro90tjnvl6b9trnc"); |
| 206 |
UNSUPPORTED("1dvo2602az1wcigxx20czskv9"); |
| 207 |
UNSUPPORTED("269t5qi8m2ujfjvmbqvyjvr1s"); |
| 208 |
UNSUPPORTED("3to5h0rvqxdeqs38mhv47mm3o"); |
| 209 |
UNSUPPORTED("2e2tx3ch32oxo5y01bflgbf2h"); |
| 210 |
UNSUPPORTED("8tob14cb9u9q0mnud0wovaioi"); |
| 211 |
UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); |
| 212 |
UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); |
| 213 |
UNSUPPORTED("cerydbb7i6l7c4pgeygvwoqk2"); |
| 214 |
UNSUPPORTED("bi0p581nen18ypj0ey48s6ete"); |
| 215 |
} |
| 216 |
|
| 217 |
throw new UnsupportedOperationException(); |
| 218 |
} finally { |
| 219 |
LEAVING("axpvuswclmi9bx3qtlh4quyah","dtdisc"); |
| 220 |
} |
| 221 |
} |
| 222 |
|
| 223 |
|
| 224 |
} |