git subrepo pull --branch=v3.7.0 deps/nats.c

subrepo:
  subdir:   "deps/nats.c"
  merged:   "5d057f6"
upstream:
  origin:   "https://github.com/nats-io/nats.c.git"
  branch:   "v3.7.0"
  commit:   "5d057f6"
git-subrepo:
  version:  "0.4.6"
  commit:   "affc4c01a"
This commit is contained in:
2023-10-14 12:24:01 -07:00
parent 136ef10775
commit 41fbdf886b
404 changed files with 22910 additions and 6116 deletions

View File

@@ -94,7 +94,7 @@ function cachedLink()
}
}
function getScript(scriptName,func,show)
function getScript(scriptName,func)
{
var head = document.getElementsByTagName("head")[0];
var script = document.createElement('script');
@@ -124,7 +124,7 @@ function createIndent(o,domNode,node,level)
node.plus_img.innerHTML=arrowRight;
node.expanded = false;
} else {
expandNode(o, node, false, false);
expandNode(o, node, false, true);
}
}
node.expandToggle.appendChild(imgNode);
@@ -265,15 +265,15 @@ function showRoot()
})();
}
function expandNode(o, node, imm, showRoot)
function expandNode(o, node, imm, setFocus)
{
if (node.childrenData && !node.expanded) {
if (typeof(node.childrenData)==='string') {
var varName = node.childrenData;
getScript(node.relpath+varName,function(){
node.childrenData = getData(varName);
expandNode(o, node, imm, showRoot);
}, showRoot);
expandNode(o, node, imm, setFocus);
});
} else {
if (!node.childrenVisited) {
getNode(o, node);
@@ -281,6 +281,9 @@ function expandNode(o, node, imm, showRoot)
$(node.getChildrenUL()).slideDown("fast");
node.plus_img.innerHTML = arrowDown;
node.expanded = true;
if (setFocus) {
$(node.expandToggle).focus();
}
}
}
}
@@ -344,7 +347,7 @@ function showNode(o, node, index, hash)
getScript(node.relpath+varName,function(){
node.childrenData = getData(varName);
showNode(o,node,index,hash);
},true);
});
} else {
if (!node.childrenVisited) {
getNode(o, node);
@@ -362,11 +365,11 @@ function showNode(o, node, index, hash)
n.childrenData = getData(varName);
node.expanded=false;
showNode(o,node,index,hash); // retry with child node expanded
},true);
});
} else {
var rootBase = stripPath(o.toroot.replace(/\..+$/, ''));
if (rootBase=="index" || rootBase=="pages" || rootBase=="search") {
expandNode(o, n, true, true);
expandNode(o, n, true, false);
}
selectAndHighlight(hash,n);
}
@@ -444,7 +447,7 @@ function navTo(o,root,hash,relpath)
if (navTreeSubIndices[i]) {
gotoNode(o,i,root,hash,relpath);
}
},true);
});
}
}
@@ -545,5 +548,12 @@ function initNavTree(toroot,relpath)
navTo(o,toroot,hashUrl(),relpath);
}
})
$("div.toc a[href]").click(function(e) {
e.preventDefault();
var docContent = $('#doc-content');
var aname = $(this).attr("href");
gotoAnchor($(aname),aname,true);
})
}
/* @license-end */