From dbda0cd272ca402a12f9925be178caeaef286092 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 1 Oct 2023 10:21:29 +0000 Subject: [PATCH] deploy: 7c033b9135b4baae84e6c89af7548848bba7dc02 --- atomics.html | 2 +- channels.html | 2 +- dochack.js | 354 ++++++++++++++++++++++++------------------------ index.html | 2 +- smartptrs.html | 74 +++++----- smartptrs.idx | 38 +++--- theindex.html | 2 +- waitgroups.html | 2 +- 8 files changed, 239 insertions(+), 237 deletions(-) diff --git a/atomics.html b/atomics.html index 936c27d..2f20299 100644 --- a/atomics.html +++ b/atomics.html @@ -497,7 +497,7 @@

Procs

diff --git a/channels.html b/channels.html index fc2366a..fd53b50 100644 --- a/channels.html +++ b/channels.html @@ -382,7 +382,7 @@

Templates

diff --git a/dochack.js b/dochack.js index 1db49ff..2a87bc8 100644 --- a/dochack.js +++ b/dochack.js @@ -55,87 +55,89 @@ var NNI704643086 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{k {kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; NTI704643086.node = NNI704643086; -function mnewString(len_33556985) { - return new Array(len_33556985); +function mnewString(len_33556990) { + var result = new Array(len_33556990); + for (var i = 0; i < len_33556990; i++) {result[i] = 0;} + return result; } -function toJSStr(s_33556886) { - var result_33556887 = null; +function toJSStr(s_33556891) { + var result_33556892 = null; - var res_33556928 = newSeq_33556904((s_33556886).length); - var i_33556929 = 0; - var j_33556930 = 0; + var res_33556933 = newSeq_33556909((s_33556891).length); + var i_33556934 = 0; + var j_33556935 = 0; Label1: { Label2: while (true) { - if (!(i_33556929 < (s_33556886).length)) break Label2; - var c_33556931 = s_33556886[i_33556929]; - if ((c_33556931 < 128)) { - res_33556928[j_33556930] = String.fromCharCode(c_33556931); - i_33556929 += 1; + if (!(i_33556934 < (s_33556891).length)) break Label2; + var c_33556936 = s_33556891[i_33556934]; + if ((c_33556936 < 128)) { + res_33556933[j_33556935] = String.fromCharCode(c_33556936); + i_33556934 += 1; } else { - var helper_33556943 = newSeq_33556904(0); + var helper_33556948 = newSeq_33556909(0); Label3: { Label4: while (true) { if (!true) break Label4; - var code_33556944 = c_33556931.toString(16); - if ((((code_33556944) == null ? 0 : (code_33556944).length) == 1)) { - helper_33556943.push("%0");; + var code_33556949 = c_33556936.toString(16); + if ((((code_33556949) == null ? 0 : (code_33556949).length) == 1)) { + helper_33556948.push("%0");; } else { - helper_33556943.push("%");; + helper_33556948.push("%");; } - helper_33556943.push(code_33556944);; - i_33556929 += 1; - if ((((s_33556886).length <= i_33556929) || (s_33556886[i_33556929] < 128))) { + helper_33556948.push(code_33556949);; + i_33556934 += 1; + if ((((s_33556891).length <= i_33556934) || (s_33556891[i_33556934] < 128))) { break Label3; } - c_33556931 = s_33556886[i_33556929]; + c_33556936 = s_33556891[i_33556934]; } }; ++excHandler; try { - res_33556928[j_33556930] = decodeURIComponent(helper_33556943.join("")); + res_33556933[j_33556935] = decodeURIComponent(helper_33556948.join("")); --excHandler; } catch (EXCEPTION) { var prevJSError = lastJSError; lastJSError = EXCEPTION; --excHandler; - res_33556928[j_33556930] = helper_33556943.join(""); + res_33556933[j_33556935] = helper_33556948.join(""); lastJSError = prevJSError; } finally { } } - j_33556930 += 1; + j_33556935 += 1; } }; - if (res_33556928.length < j_33556930) { for (var i = res_33556928.length ; i < j_33556930 ; ++i) res_33556928.push(null); } - else { res_33556928.length = j_33556930; }; - result_33556887 = res_33556928.join(""); + if (res_33556933.length < j_33556935) { for (var i = res_33556933.length ; i < j_33556935 ; ++i) res_33556933.push(null); } + else { res_33556933.length = j_33556935; }; + result_33556892 = res_33556933.join(""); - return result_33556887; + return result_33556892; } -function raiseException(e_33556638, ename_33556639) { - e_33556638.name = ename_33556639; +function raiseException(e_33556643, ename_33556644) { + e_33556643.name = ename_33556644; if ((excHandler == 0)) { - unhandledException(e_33556638); + unhandledException(e_33556643); } - throw e_33556638; + throw e_33556643; } -function addInt(a_33557032, b_33557033) { - var result = a_33557032 + b_33557033; +function addInt(a_33557037, b_33557038) { + var result = a_33557037 + b_33557038; checkOverflowInt(result); return result; @@ -143,12 +145,12 @@ function addInt(a_33557032, b_33557033) { } -function chckRange(i_33557306, a_33557307, b_33557308) { - var result_33557309 = 0; +function chckRange(i_33557311, a_33557312, b_33557313) { + var result_33557314 = 0; BeforeRet: { - if (((a_33557307 <= i_33557306) && (i_33557306 <= b_33557308))) { - result_33557309 = i_33557306; + if (((a_33557312 <= i_33557311) && (i_33557311 <= b_33557313))) { + result_33557314 = i_33557311; break BeforeRet; } else { @@ -157,7 +159,7 @@ function chckRange(i_33557306, a_33557307, b_33557308) { }; - return result_33557309; + return result_33557314; } @@ -180,68 +182,68 @@ function setConstr() { } var ConstSet1 = setConstr(17, 16, 4, 18, 27, 19, 23, 22, 21); -function nimCopy(dest_33557250, src_33557251, ti_33557252) { - var result_33557261 = null; +function nimCopy(dest_33557255, src_33557256, ti_33557257) { + var result_33557266 = null; - switch (ti_33557252.kind) { + switch (ti_33557257.kind) { case 21: case 22: case 23: case 5: - if (!(isFatPointer_33557241(ti_33557252))) { - result_33557261 = src_33557251; + if (!(isFatPointer_33557246(ti_33557257))) { + result_33557266 = src_33557256; } else { - result_33557261 = [src_33557251[0], src_33557251[1]]; + result_33557266 = [src_33557256[0], src_33557256[1]]; } break; case 19: - if (dest_33557250 === null || dest_33557250 === undefined) { - dest_33557250 = {}; + if (dest_33557255 === null || dest_33557255 === undefined) { + dest_33557255 = {}; } else { - for (var key in dest_33557250) { delete dest_33557250[key]; } + for (var key in dest_33557255) { delete dest_33557255[key]; } } - for (var key in src_33557251) { dest_33557250[key] = src_33557251[key]; } - result_33557261 = dest_33557250; + for (var key in src_33557256) { dest_33557255[key] = src_33557256[key]; } + result_33557266 = dest_33557255; break; case 18: case 17: - if (!((ti_33557252.base == null))) { - result_33557261 = nimCopy(dest_33557250, src_33557251, ti_33557252.base); + if (!((ti_33557257.base == null))) { + result_33557266 = nimCopy(dest_33557255, src_33557256, ti_33557257.base); } else { - if ((ti_33557252.kind == 17)) { - result_33557261 = (dest_33557250 === null || dest_33557250 === undefined) ? {m_type: ti_33557252} : dest_33557250; + if ((ti_33557257.kind == 17)) { + result_33557266 = (dest_33557255 === null || dest_33557255 === undefined) ? {m_type: ti_33557257} : dest_33557255; } else { - result_33557261 = (dest_33557250 === null || dest_33557250 === undefined) ? {} : dest_33557250; + result_33557266 = (dest_33557255 === null || dest_33557255 === undefined) ? {} : dest_33557255; } } - nimCopyAux(result_33557261, src_33557251, ti_33557252.node); + nimCopyAux(result_33557266, src_33557256, ti_33557257.node); break; case 4: case 16: - if(ArrayBuffer.isView(src_33557251)) { - if(dest_33557250 === null || dest_33557250 === undefined || dest_33557250.length != src_33557251.length) { - dest_33557250 = new src_33557251.constructor(src_33557251); + if(ArrayBuffer.isView(src_33557256)) { + if(dest_33557255 === null || dest_33557255 === undefined || dest_33557255.length != src_33557256.length) { + dest_33557255 = new src_33557256.constructor(src_33557256); } else { - dest_33557250.set(src_33557251, 0); + dest_33557255.set(src_33557256, 0); } - result_33557261 = dest_33557250; + result_33557266 = dest_33557255; } else { - if (src_33557251 === null) { - result_33557261 = null; + if (src_33557256 === null) { + result_33557266 = null; } else { - if (dest_33557250 === null || dest_33557250 === undefined || dest_33557250.length != src_33557251.length) { - dest_33557250 = new Array(src_33557251.length); + if (dest_33557255 === null || dest_33557255 === undefined || dest_33557255.length != src_33557256.length) { + dest_33557255 = new Array(src_33557256.length); } - result_33557261 = dest_33557250; - for (var i = 0; i < src_33557251.length; ++i) { - result_33557261[i] = nimCopy(result_33557261[i], src_33557251[i], ti_33557252.base); + result_33557266 = dest_33557255; + for (var i = 0; i < src_33557256.length; ++i) { + result_33557266[i] = nimCopy(result_33557266[i], src_33557256[i], ti_33557257.base); } } } @@ -249,57 +251,57 @@ function nimCopy(dest_33557250, src_33557251, ti_33557252) { break; case 24: case 27: - if (src_33557251 === null) { - result_33557261 = null; + if (src_33557256 === null) { + result_33557266 = null; } else { - if (dest_33557250 === null || dest_33557250 === undefined || dest_33557250.length != src_33557251.length) { - dest_33557250 = new Array(src_33557251.length); + if (dest_33557255 === null || dest_33557255 === undefined || dest_33557255.length != src_33557256.length) { + dest_33557255 = new Array(src_33557256.length); } - result_33557261 = dest_33557250; - for (var i = 0; i < src_33557251.length; ++i) { - result_33557261[i] = nimCopy(result_33557261[i], src_33557251[i], ti_33557252.base); + result_33557266 = dest_33557255; + for (var i = 0; i < src_33557256.length; ++i) { + result_33557266[i] = nimCopy(result_33557266[i], src_33557256[i], ti_33557257.base); } } break; case 28: - if (src_33557251 !== null) { - result_33557261 = src_33557251.slice(0); + if (src_33557256 !== null) { + result_33557266 = src_33557256.slice(0); } break; default: - result_33557261 = src_33557251; + result_33557266 = src_33557256; break; } - return result_33557261; + return result_33557266; } -function chckIndx(i_33557301, a_33557302, b_33557303) { - var result_33557304 = 0; +function chckIndx(i_33557306, a_33557307, b_33557308) { + var result_33557309 = 0; BeforeRet: { - if (((a_33557302 <= i_33557301) && (i_33557301 <= b_33557303))) { - result_33557304 = i_33557301; + if (((a_33557307 <= i_33557306) && (i_33557306 <= b_33557308))) { + result_33557309 = i_33557306; break BeforeRet; } else { - raiseIndexError(i_33557301, a_33557302, b_33557303); + raiseIndexError(i_33557306, a_33557307, b_33557308); } }; - return result_33557304; + return result_33557309; } -function makeNimstrLit(c_33556880) { +function makeNimstrLit(c_33556885) { var result = []; - for (var i = 0; i < c_33556880.length; ++i) { - result[i] = c_33556880.charCodeAt(i); + for (var i = 0; i < c_33556885.length; ++i) { + result[i] = c_33556885.charCodeAt(i); } return result; @@ -307,8 +309,8 @@ function makeNimstrLit(c_33556880) { } -function subInt(a_33557036, b_33557037) { - var result = a_33557036 - b_33557037; +function subInt(a_33557041, b_33557042) { + var result = a_33557041 - b_33557042; checkOverflowInt(result); return result; @@ -316,12 +318,12 @@ function subInt(a_33557036, b_33557037) { } -function cstrToNimstr(c_33556883) { - var ln = c_33556883.length; +function cstrToNimstr(c_33556888) { + var ln = c_33556888.length; var result = new Array(ln); var r = 0; for (var i = 0; i < ln; ++i) { - var ch = c_33556883.charCodeAt(i); + var ch = c_33556888.charCodeAt(i); if (ch < 128) { result[r] = ch; @@ -336,7 +338,7 @@ function cstrToNimstr(c_33556883) { } else { ++i; - ch = 65536 + (((ch & 1023) << 10) | (c_33556883.charCodeAt(i) & 1023)); + ch = 65536 + (((ch & 1023) << 10) | (c_33556888.charCodeAt(i) & 1023)); result[r] = (ch >> 18) | 240; ++r; result[r] = ((ch >> 12) & 63) | 128; @@ -358,8 +360,8 @@ var ConstSet2 = setConstr([65, 90]); var ConstSet3 = setConstr(95, 32, 46); var ConstSet4 = setConstr(95, 32, 46); -function mulInt(a_33557040, b_33557041) { - var result = a_33557040 * b_33557041; +function mulInt(a_33557045, b_33557046) { + var result = a_33557045 * b_33557046; checkOverflowInt(result); return result; @@ -372,50 +374,50 @@ var ConstSet7 = setConstr([97, 122]); var ConstSet8 = setConstr([65, 90]); var ConstSet9 = setConstr([65, 90], [97, 122]); -function nimMax(a_33557090, b_33557091) { +function nimMax(a_33557095, b_33557096) { var Temporary1; - var result_33557092 = 0; + var result_33557097 = 0; BeforeRet: { - if ((b_33557091 <= a_33557090)) { - Temporary1 = a_33557090; + if ((b_33557096 <= a_33557095)) { + Temporary1 = a_33557095; } else { - Temporary1 = b_33557091; + Temporary1 = b_33557096; } - result_33557092 = Temporary1; + result_33557097 = Temporary1; break BeforeRet; }; - return result_33557092; + return result_33557097; } -function nimMin(a_33557086, b_33557087) { +function nimMin(a_33557091, b_33557092) { var Temporary1; - var result_33557088 = 0; + var result_33557093 = 0; BeforeRet: { - if ((a_33557086 <= b_33557087)) { - Temporary1 = a_33557086; + if ((a_33557091 <= b_33557092)) { + Temporary1 = a_33557091; } else { - Temporary1 = b_33557087; + Temporary1 = b_33557092; } - result_33557088 = Temporary1; + result_33557093 = Temporary1; break BeforeRet; }; - return result_33557088; + return result_33557093; } -function addChar(x_33557397, c_33557398) { - x_33557397.push(c_33557398); +function addChar(x_33557402, c_33557403) { + x_33557402.push(c_33557403); } @@ -428,45 +430,45 @@ function setTheme(theme_553648134) { } -function add_33556361(x_33556362, x_33556362_Idx, y_33556363) { - if (x_33556362[x_33556362_Idx] === null) { x_33556362[x_33556362_Idx] = []; } - var off = x_33556362[x_33556362_Idx].length; - x_33556362[x_33556362_Idx].length += y_33556363.length; - for (var i = 0; i < y_33556363.length; ++i) { - x_33556362[x_33556362_Idx][off+i] = y_33556363.charCodeAt(i); +function add_33556366(x_33556367, x_33556367_Idx, y_33556368) { + if (x_33556367[x_33556367_Idx] === null) { x_33556367[x_33556367_Idx] = []; } + var off = x_33556367[x_33556367_Idx].length; + x_33556367[x_33556367_Idx].length += y_33556368.length; + for (var i = 0; i < y_33556368.length; ++i) { + x_33556367[x_33556367_Idx][off+i] = y_33556368.charCodeAt(i); } } -function newSeq_33556904(len_33556906) { - var result_33556907 = []; +function newSeq_33556909(len_33556911) { + var result_33556912 = []; - result_33556907 = new Array(len_33556906); for (var i = 0 ; i < len_33556906 ; ++i) { result_33556907[i] = null; } - return result_33556907; + result_33556912 = new Array(len_33556911); for (var i = 0 ; i < len_33556911 ; ++i) { result_33556912[i] = null; } + return result_33556912; } -function unhandledException(e_33556634) { - var buf_33556635 = [[]]; - if (!(((e_33556634.message).length == 0))) { - buf_33556635[0].push.apply(buf_33556635[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110,58,32]);; - buf_33556635[0].push.apply(buf_33556635[0], e_33556634.message);; +function unhandledException(e_33556639) { + var buf_33556640 = [[]]; + if (!(((e_33556639.message).length == 0))) { + buf_33556640[0].push.apply(buf_33556640[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110,58,32]);; + buf_33556640[0].push.apply(buf_33556640[0], e_33556639.message);; } else { - buf_33556635[0].push.apply(buf_33556635[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110]);; + buf_33556640[0].push.apply(buf_33556640[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110]);; } - buf_33556635[0].push.apply(buf_33556635[0], [32,91]);; - add_33556361(buf_33556635, 0, e_33556634.name); - buf_33556635[0].push.apply(buf_33556635[0], [93,10]);; - var cbuf_33556636 = toJSStr(buf_33556635[0]); + buf_33556640[0].push.apply(buf_33556640[0], [32,91]);; + add_33556366(buf_33556640, 0, e_33556639.name); + buf_33556640[0].push.apply(buf_33556640[0], [93,10]);; + var cbuf_33556641 = toJSStr(buf_33556640[0]); if (typeof(Error) !== "undefined") { - throw new Error(cbuf_33556636); + throw new Error(cbuf_33556641); } else { - throw cbuf_33556636; + throw cbuf_33556641; } @@ -479,8 +481,8 @@ function raiseOverflow() { } -function checkOverflowInt(a_33557030) { - if (a_33557030 > 2147483647 || a_33557030 < -2147483648) raiseOverflow(); +function checkOverflowInt(a_33557035) { + if (a_33557035 > 2147483647 || a_33557035 < -2147483648) raiseOverflow(); @@ -541,36 +543,36 @@ function HEX24_385875976(x_385875977) { } -function isFatPointer_33557241(ti_33557242) { - var result_33557243 = false; +function isFatPointer_33557246(ti_33557247) { + var result_33557248 = false; BeforeRet: { - result_33557243 = !((ConstSet1[ti_33557242.base.kind] != undefined)); + result_33557248 = !((ConstSet1[ti_33557247.base.kind] != undefined)); break BeforeRet; }; - return result_33557243; + return result_33557248; } -function nimCopyAux(dest_33557254, src_33557255, n_33557256) { - switch (n_33557256.kind) { +function nimCopyAux(dest_33557259, src_33557260, n_33557261) { + switch (n_33557261.kind) { case 0: break; case 1: - dest_33557254[n_33557256.offset] = nimCopy(dest_33557254[n_33557256.offset], src_33557255[n_33557256.offset], n_33557256.typ); + dest_33557259[n_33557261.offset] = nimCopy(dest_33557259[n_33557261.offset], src_33557260[n_33557261.offset], n_33557261.typ); break; case 2: - for (var i = 0; i < n_33557256.sons.length; i++) { - nimCopyAux(dest_33557254, src_33557255, n_33557256.sons[i]); + for (var i = 0; i < n_33557261.sons.length; i++) { + nimCopyAux(dest_33557259, src_33557260, n_33557261.sons[i]); } break; case 3: - dest_33557254[n_33557256.offset] = nimCopy(dest_33557254[n_33557256.offset], src_33557255[n_33557256.offset], n_33557256.typ); - for (var i = 0; i < n_33557256.sons.length; ++i) { - nimCopyAux(dest_33557254, src_33557255, n_33557256.sons[i][1]); + dest_33557259[n_33557261.offset] = nimCopy(dest_33557259[n_33557261.offset], src_33557260[n_33557261.offset], n_33557261.typ); + for (var i = 0; i < n_33557261.sons.length; ++i) { + nimCopyAux(dest_33557259, src_33557260, n_33557261.sons[i][1]); } break; @@ -579,14 +581,14 @@ function nimCopyAux(dest_33557254, src_33557255, n_33557256) { } -function raiseIndexError(i_33556797, a_33556798, b_33556799) { +function raiseIndexError(i_33556802, a_33556803, b_33556804) { var Temporary1; - if ((b_33556799 < a_33556798)) { + if ((b_33556804 < a_33556803)) { Temporary1 = [105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,44,32,116,104,101,32,99,111,110,116,97,105,110,101,114,32,105,115,32,101,109,112,116,121]; } else { - Temporary1 = ([105,110,100,101,120,32] || []).concat(HEX24_385875976(i_33556797) || [],[32,110,111,116,32,105,110,32] || [],HEX24_385875976(a_33556798) || [],[32,46,46,32] || [],HEX24_385875976(b_33556799) || []); + Temporary1 = ([105,110,100,101,120,32] || []).concat(HEX24_385875976(i_33556802) || [],[32,110,111,116,32,105,110,32] || [],HEX24_385875976(a_33556803) || [],[32,46,46,32] || [],HEX24_385875976(b_33556804) || []); } raiseException({message: nimCopy(null, Temporary1, NTI33554449), parent: null, m_type: NTI134217749, name: null, trace: [], up: null}, "IndexDefect"); @@ -633,9 +635,9 @@ function HEX3Aanonymous_553648192(event_553648193) { if (!(i_553649313 < L_553649314)) break Label3; pragmaDots_553648191 = colontmp__553649311[chckIndx(i_553649313, 0, (colontmp__553649311).length - 1)]; pragmaDots_553648191.onclick = HEX3Aanonymous_553648192; - i_553649313 = addInt(i_553649313, 1); + i_553649313 += 1; if (!(((colontmp__553649311).length == L_553649314))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(251, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -803,9 +805,9 @@ function extractItems_553648325(x_553648326, heading_553648327, items_553648328, if (!(i_553649348 < L_553649349)) break Label6; k_553648370 = x_553648326.kids[chckIndx(i_553649348, 0, (x_553648326.kids).length - 1)]; extractItems_553648325(k_553648370, heading_553648327, items_553648328, items_553648328_Idx); - i_553649348 = addInt(i_553649348, 1); + i_553649348 += 1; if (!(((x_553648326.kids).length == L_553649349))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(251, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -830,7 +832,7 @@ function tree_553648257(tag_553648258, kids_553648259) { if (!(i_553649361 < (kids_553648259).length)) break Label3; k_553648273 = kids_553648259[chckIndx(i_553649361, 0, (kids_553648259).length - 1)]; result_553648260.appendChild(k_553648273); - i_553649361 = addInt(i_553649361, 1); + i_553649361 += 1; } }; }; @@ -880,9 +882,9 @@ function uncovered_553648723(x_553648724) { result_553648725.kids.push(y_553648741);; } - i_553649368 = addInt(i_553649368, 1); + i_553649368 += 1; if (!(((x_553648724.kids).length == L_553649369))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(251, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -960,18 +962,18 @@ function buildToc_553648773(orig_553648774, types_553648775, procs_553648776) { } - i_553649353 = addInt(i_553649353, 1); + i_553649353 += 1; if (!(((procs_553648776).length == L_553649354))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(251, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; newStuff_553648782.kids.push(c_553648791);; - i_553649356 = addInt(i_553649356, 1); + i_553649356 += 1; if (!(((types_553648775).length == L_553649357))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(251, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -1084,9 +1086,9 @@ function HEX3Aanonymous_553648423(a_553648424, b_553648425) { add_553648274(ul_553648422, tree_553648257("LI", [y_553648449])); } - i_553649372 = addInt(i_553649372, 1); + i_553649372 += 1; if (!(((x_553648404.kids).length == L_553649373))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(251, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -1181,12 +1183,12 @@ function HEX5BHEX5D_721421547(s_721421550, x_721421551) { } -function HEX2EHEX2E_939524198(a_939524201, b_939524202) { - var result_939524205 = ({a: 0, b: 0}); +function HEX2EHEX2E_939524199(a_939524202, b_939524203) { + var result_939524206 = ({a: 0, b: 0}); - result_939524205 = nimCopy(result_939524205, {a: a_939524201, b: b_939524202}, NTI939524179); + result_939524206 = nimCopy(result_939524206, {a: a_939524202, b: b_939524203}, NTI939524179); - return result_939524205; + return result_939524206; } async function loadIndex_553649049() { @@ -1194,7 +1196,7 @@ async function loadIndex_553649049() { BeforeRet: { var indexURL_553649057 = document.getElementById("indexLink").getAttribute("href"); - var rootURL_553649082 = HEX5BHEX5D_721421547(cstrToNimstr(indexURL_553649057), HEX2EHEX2E_939524198(0, 14)); + var rootURL_553649082 = HEX5BHEX5D_721421547(cstrToNimstr(indexURL_553649057), HEX2EHEX2E_939524199(0, 14)); var resp_553649094 = (await (await fetch(indexURL_553649057)).text()); var indexElem_553649095 = document.createElement("div"); indexElem_553649095.innerHTML = resp_553649094; @@ -1211,9 +1213,9 @@ async function loadIndex_553649049() { href_553649116.setAttribute("href", toJSStr((rootURL_553649082 || []).concat(cstrToNimstr(href_553649116.getAttribute("href")) || []))); db_553648872[0].push(href_553649116);; contents_553648873[0].push(href_553649116.getAttribute("data-doc-search-tag"));; - i_553649378 = addInt(i_553649378, 1); + i_553649378 += 1; if (!(((colontmp__553649376).length == L_553649379))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(251, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -1390,12 +1392,12 @@ function escapeCString_553648874(x_553648875, x_553648875_Idx) { var s_553648876 = []; Label1: { var c_553648877 = 0; - var iHEX60gensym6_553649399 = 0; - var nHEX60gensym6_553649400 = ((x_553648875[x_553648875_Idx]) == null ? 0 : (x_553648875[x_553648875_Idx]).length); + var iHEX60gensym12_553649399 = 0; + var nHEX60gensym12_553649400 = ((x_553648875[x_553648875_Idx]) == null ? 0 : (x_553648875[x_553648875_Idx]).length); Label2: { Label3: while (true) { - if (!(iHEX60gensym6_553649399 < nHEX60gensym6_553649400)) break Label3; - c_553648877 = x_553648875[x_553648875_Idx].charCodeAt(chckIndx(iHEX60gensym6_553649399, 0, (x_553648875[x_553648875_Idx]).length - 1)); + if (!(iHEX60gensym12_553649399 < nHEX60gensym12_553649400)) break Label3; + c_553648877 = x_553648875[x_553648875_Idx].charCodeAt(chckIndx(iHEX60gensym12_553649399, 0, (x_553648875[x_553648875_Idx]).length - 1)); switch (c_553648877) { case 60: s_553648876.push.apply(s_553648876, [38,108,116,59]);; @@ -1407,7 +1409,7 @@ function escapeCString_553648874(x_553648875, x_553648875_Idx) { addChar(s_553648876, c_553648877);; break; } - iHEX60gensym6_553649399 = addInt(iHEX60gensym6_553649399, 1); + iHEX60gensym12_553649399 += 1; } }; }; diff --git a/index.html b/index.html index 5d38473..4fac951 100644 --- a/index.html +++ b/index.html @@ -268,7 +268,7 @@

Index

diff --git a/smartptrs.html b/smartptrs.html index b0e5a66..5178589 100644 --- a/smartptrs.html +++ b/smartptrs.html @@ -172,8 +172,8 @@

Types

Distinct version of SharedPtr[T], which doesn't allow mutating the underlying value. - Source   -Edit   + Source   +Edit  
@@ -211,8 +211,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -221,8 +221,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -244,8 +244,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -267,8 +267,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -290,8 +290,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -313,8 +313,8 @@

Procs

Returns an immutable view of the internal value of p. - Source   -Edit   + Source   +Edit  
@@ -323,8 +323,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -346,8 +346,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -356,8 +356,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -379,8 +379,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -389,8 +389,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -412,8 +412,8 @@

Procs

Similar to newSharedPtr, but the underlying value can't be mutated. - Source   -Edit   + Source   +Edit  
@@ -425,8 +425,8 @@

Procs

Returns a shared pointer. It is not initialized, so reading from it before writing to it is undefined behaviour! - Source   -Edit   + Source   +Edit  
@@ -435,8 +435,8 @@

Procs

Returns a shared pointer which shares ownership of the object by reference counting. - Source   -Edit   + Source   +Edit  
@@ -477,8 +477,8 @@

Templates

- Source   -Edit   + Source   +Edit  
@@ -500,8 +500,8 @@

Templates

- Source   -Edit   + Source   +Edit  
@@ -513,8 +513,8 @@

Templates

- Source   -Edit   + Source   +Edit  
@@ -543,7 +543,7 @@

Templates

diff --git a/smartptrs.idx b/smartptrs.idx index 200ecdb..8547978 100644 --- a/smartptrs.idx +++ b/smartptrs.idx @@ -12,31 +12,31 @@ nim `[]=` smartptrs.html#[]=,UniquePtr[T],sinkIsolated[T] proc `[]=`[T](p: Uniqu nim `[]=` smartptrs.html#[]=.t,UniquePtr[T],T template `[]=`[T](p: UniquePtr[T]; val: T) 78 nim `$` smartptrs.html#$,UniquePtr[T] proc `$`[T](p: UniquePtr[T]): string 81 nim SharedPtr smartptrs.html#SharedPtr object SharedPtr 88 -nim `=destroy` smartptrs.html#=destroy,SharedPtr[T] proc `=destroy`[T](p: SharedPtr[T]) 93 -nim `=dup` smartptrs.html#=dup,SharedPtr[T] proc `=dup`[T](src: SharedPtr[T]): SharedPtr[T] 109 -nim `=copy` smartptrs.html#=copy,SharedPtr[T],SharedPtr[T] proc `=copy`[T](dest: var SharedPtr[T]; src: SharedPtr[T]) 114 -nim newSharedPtr smartptrs.html#newSharedPtr,sinkIsolated[T] proc newSharedPtr[T](val: sink Isolated[T]): SharedPtr[T] 120 -nim newSharedPtr smartptrs.html#newSharedPtr.t,T template newSharedPtr[T](val: T): SharedPtr[T] 127 -nim newSharedPtr smartptrs.html#newSharedPtr,typedesc[T] proc newSharedPtr[T](t: typedesc[T]): SharedPtr[T] 130 -nim isNil smartptrs.html#isNil,SharedPtr[T] proc isNil[T](p: SharedPtr[T]): bool 139 -nim `[]` smartptrs.html#[],SharedPtr[T] proc `[]`[T](p: SharedPtr[T]): var T 142 -nim `[]=` smartptrs.html#[]=,SharedPtr[T],sinkIsolated[T] proc `[]=`[T](p: SharedPtr[T]; val: sink Isolated[T]) 146 -nim `[]=` smartptrs.html#[]=.t,SharedPtr[T],T template `[]=`[T](p: SharedPtr[T]; val: T) 150 -nim `$` smartptrs.html#$,SharedPtr[T] proc `$`[T](p: SharedPtr[T]): string 153 -nim ConstPtr smartptrs.html#ConstPtr type ConstPtr 160 -nim newConstPtr smartptrs.html#newConstPtr,sinkIsolated[T] proc newConstPtr[T](val: sink Isolated[T]): ConstPtr[T] 163 -nim newConstPtr smartptrs.html#newConstPtr.t,T template newConstPtr[T](val: T): ConstPtr[T] 167 -nim isNil smartptrs.html#isNil,ConstPtr[T] proc isNil[T](p: ConstPtr[T]): bool 170 -nim `[]` smartptrs.html#[],ConstPtr[T] proc `[]`[T](p: ConstPtr[T]): lent T 173 -nim `[]=` smartptrs.html#[]=,ConstPtr[T],T proc `[]=`[T](p: ConstPtr[T]; v: T) 178 -nim `$` smartptrs.html#$,ConstPtr[T] proc `$`[T](p: ConstPtr[T]): string 180 +nim `=destroy` smartptrs.html#=destroy,SharedPtr[T] proc `=destroy`[T](p: SharedPtr[T]) 101 +nim `=dup` smartptrs.html#=dup,SharedPtr[T] proc `=dup`[T](src: SharedPtr[T]): SharedPtr[T] 107 +nim `=copy` smartptrs.html#=copy,SharedPtr[T],SharedPtr[T] proc `=copy`[T](dest: var SharedPtr[T]; src: SharedPtr[T]) 112 +nim newSharedPtr smartptrs.html#newSharedPtr,sinkIsolated[T] proc newSharedPtr[T](val: sink Isolated[T]): SharedPtr[T] 118 +nim newSharedPtr smartptrs.html#newSharedPtr.t,T template newSharedPtr[T](val: T): SharedPtr[T] 125 +nim newSharedPtr smartptrs.html#newSharedPtr,typedesc[T] proc newSharedPtr[T](t: typedesc[T]): SharedPtr[T] 128 +nim isNil smartptrs.html#isNil,SharedPtr[T] proc isNil[T](p: SharedPtr[T]): bool 137 +nim `[]` smartptrs.html#[],SharedPtr[T] proc `[]`[T](p: SharedPtr[T]): var T 140 +nim `[]=` smartptrs.html#[]=,SharedPtr[T],sinkIsolated[T] proc `[]=`[T](p: SharedPtr[T]; val: sink Isolated[T]) 144 +nim `[]=` smartptrs.html#[]=.t,SharedPtr[T],T template `[]=`[T](p: SharedPtr[T]; val: T) 148 +nim `$` smartptrs.html#$,SharedPtr[T] proc `$`[T](p: SharedPtr[T]): string 151 +nim ConstPtr smartptrs.html#ConstPtr type ConstPtr 158 +nim newConstPtr smartptrs.html#newConstPtr,sinkIsolated[T] proc newConstPtr[T](val: sink Isolated[T]): ConstPtr[T] 161 +nim newConstPtr smartptrs.html#newConstPtr.t,T template newConstPtr[T](val: T): ConstPtr[T] 165 +nim isNil smartptrs.html#isNil,ConstPtr[T] proc isNil[T](p: ConstPtr[T]): bool 168 +nim `[]` smartptrs.html#[],ConstPtr[T] proc `[]`[T](p: ConstPtr[T]): lent T 171 +nim `[]=` smartptrs.html#[]=,ConstPtr[T],T proc `[]=`[T](p: ConstPtr[T]; v: T) 176 +nim `$` smartptrs.html#$,ConstPtr[T] proc `$`[T](p: ConstPtr[T]): string 178 nimgrp $ smartptrs.html#$-procs-all proc 81 nimgrp isnil smartptrs.html#isNil-procs-all proc 66 nimgrp []= smartptrs.html#[]=-procs-all proc 74 nimgrp =copy smartptrs.html#=copy-procs-all proc 42 nimgrp =dup smartptrs.html#=dup-procs-all proc 38 nimgrp newuniqueptr smartptrs.html#newUniquePtr-procs-all proc 46 -nimgrp newsharedptr smartptrs.html#newSharedPtr-procs-all proc 120 +nimgrp newsharedptr smartptrs.html#newSharedPtr-procs-all proc 118 nimgrp =destroy smartptrs.html#=destroy-procs-all proc 28 nimgrp [] smartptrs.html#[]-procs-all proc 69 nimgrp []= smartptrs.html#[]=-templates-all template 78 diff --git a/theindex.html b/theindex.html index 5d38473..4fac951 100644 --- a/theindex.html +++ b/theindex.html @@ -268,7 +268,7 @@

Index

diff --git a/waitgroups.html b/waitgroups.html index 19ccb88..aa4ece9 100644 --- a/waitgroups.html +++ b/waitgroups.html @@ -194,7 +194,7 @@

Procs