aboutsummaryrefslogtreecommitdiff
path: root/Tcl_shipped.html
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-08-17 14:35:13 +1000
committerSteve Bennett <steveb@workware.net.au>2011-08-18 20:15:24 +1000
commit33b86c56df545baf6b9e5f0c1decdd0052dd8cea (patch)
treec60cc79f19454fb336181bda082775b5258dcccf /Tcl_shipped.html
parent1e61f2961e0f13ce077a85febe080e50bea3f59d (diff)
downloadjimtcl-33b86c56df545baf6b9e5f0c1decdd0052dd8cea.zip
jimtcl-33b86c56df545baf6b9e5f0c1decdd0052dd8cea.tar.gz
jimtcl-33b86c56df545baf6b9e5f0c1decdd0052dd8cea.tar.bz2
Implement 'file mtime <file> newtime'
Allows a file to be "touched" Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'Tcl_shipped.html')
-rw-r--r--Tcl_shipped.html329
1 files changed, 258 insertions, 71 deletions
diff --git a/Tcl_shipped.html b/Tcl_shipped.html
index da333b4..4fa5939 100644
--- a/Tcl_shipped.html
+++ b/Tcl_shipped.html
@@ -3,29 +3,26 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
-<meta name="generator" content="AsciiDoc 8.6.3" />
+<meta name="generator" content="AsciiDoc 8.6.5" />
<title>Jim Tcl(n)</title>
<style type="text/css">
-/* Sans-serif font. */
+/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
+
+/* Default font. */
+body {
+ font-family: Georgia,serif;
+}
+
+/* Title font. */
h1, h2, h3, h4, h5, h6,
div.title, caption.title,
thead, p.table.header,
-div#toctitle,
-span#author, span#revnumber, span#revdate, span#revremark,
-div#footer {
+#toctitle,
+#author, #revnumber, #revdate, #revremark,
+#footer {
font-family: Arial,Helvetica,sans-serif;
}
-/* Serif font. */
-div.sectionbody {
- font-family: Georgia,"Times New Roman",Times,serif;
-}
-
-/* Monospace font. */
-tt {
- font-size: inherit;
-}
-
body {
margin: 1em 5% 1em 5%;
}
@@ -48,11 +45,6 @@ strong {
color: #083194;
}
-tt {
- font-size: inherit;
- color: navy;
-}
-
h1, h2, h3, h4, h5, h6 {
color: #527bbd;
margin-top: 1.2em;
@@ -72,6 +64,9 @@ h3 {
h3 + * {
clear: left;
}
+h5 {
+ font-size: 1.0em;
+}
div.sectionbody {
margin-left: 0;
@@ -97,36 +92,36 @@ pre {
margin: 0;
}
-span#author {
+#author {
color: #527bbd;
font-weight: bold;
font-size: 1.1em;
}
-span#email {
+#email {
}
-span#revnumber, span#revdate, span#revremark {
+#revnumber, #revdate, #revremark {
}
-div#footer {
+#footer {
font-size: small;
border-top: 2px solid silver;
padding-top: 0.5em;
margin-top: 4.0em;
}
-div#footer-text {
+#footer-text {
float: left;
padding-bottom: 0.5em;
}
-div#footer-badges {
+#footer-badges {
float: right;
padding-bottom: 0.5em;
}
-div#preamble {
+#preamble {
margin-top: 1.5em;
margin-bottom: 1.5em;
}
-div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
+div.imageblock, div.exampleblock, div.verseblock,
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
div.admonitionblock {
margin-top: 1.0em;
@@ -267,35 +262,12 @@ div.compact div, div.compact div {
margin-bottom: 0.1em;
}
-div.tableblock > table {
- border: 3px solid #527bbd;
-}
-thead, p.table.header {
- font-weight: bold;
- color: #527bbd;
-}
tfoot {
font-weight: bold;
}
td > div.verse {
white-space: pre;
}
-p.table {
- margin-top: 0;
-}
-/* Because the table frame attribute is overriden by CSS in most browsers. */
-div.tableblock > table[frame="void"] {
- border-style: none;
-}
-div.tableblock > table[frame="hsides"] {
- border-left-style: none;
- border-right-style: none;
-}
-div.tableblock > table[frame="vsides"] {
- border-top-style: none;
- border-bottom-style: none;
-}
-
div.hdlist {
margin-top: 0.8em;
@@ -362,14 +334,14 @@ div.colist td img {
}
@media print {
- div#footer-badges { display: none; }
+ #footer-badges { display: none; }
}
-div#toc {
+#toc {
margin-bottom: 2.5em;
}
-div#toctitle {
+#toctitle {
color: #527bbd;
font-size: 1.1em;
font-weight: bold;
@@ -394,6 +366,154 @@ div.toclevel4 {
font-size: 0.9em;
}
+span.aqua { color: aqua; }
+span.black { color: black; }
+span.blue { color: blue; }
+span.fuchsia { color: fuchsia; }
+span.gray { color: gray; }
+span.green { color: green; }
+span.lime { color: lime; }
+span.maroon { color: maroon; }
+span.navy { color: navy; }
+span.olive { color: olive; }
+span.purple { color: purple; }
+span.red { color: red; }
+span.silver { color: silver; }
+span.teal { color: teal; }
+span.white { color: white; }
+span.yellow { color: yellow; }
+
+span.aqua-background { background: aqua; }
+span.black-background { background: black; }
+span.blue-background { background: blue; }
+span.fuchsia-background { background: fuchsia; }
+span.gray-background { background: gray; }
+span.green-background { background: green; }
+span.lime-background { background: lime; }
+span.maroon-background { background: maroon; }
+span.navy-background { background: navy; }
+span.olive-background { background: olive; }
+span.purple-background { background: purple; }
+span.red-background { background: red; }
+span.silver-background { background: silver; }
+span.teal-background { background: teal; }
+span.white-background { background: white; }
+span.yellow-background { background: yellow; }
+
+span.big { font-size: 2em; }
+span.small { font-size: 0.6em; }
+
+span.underline { text-decoration: underline; }
+span.overline { text-decoration: overline; }
+span.line-through { text-decoration: line-through; }
+
+
+/*
+ * xhtml11 specific
+ *
+ * */
+
+tt {
+ font-family: monospace;
+ font-size: inherit;
+ color: navy;
+}
+
+div.tableblock {
+ margin-top: 1.0em;
+ margin-bottom: 1.5em;
+}
+div.tableblock > table {
+ border: 3px solid #527bbd;
+}
+thead, p.table.header {
+ font-weight: bold;
+ color: #527bbd;
+}
+p.table {
+ margin-top: 0;
+}
+/* Because the table frame attribute is overriden by CSS in most browsers. */
+div.tableblock > table[frame="void"] {
+ border-style: none;
+}
+div.tableblock > table[frame="hsides"] {
+ border-left-style: none;
+ border-right-style: none;
+}
+div.tableblock > table[frame="vsides"] {
+ border-top-style: none;
+ border-bottom-style: none;
+}
+
+
+/*
+ * html5 specific
+ *
+ * */
+
+.monospaced {
+ font-family: monospace;
+ font-size: inherit;
+ color: navy;
+}
+
+table.tableblock {
+ margin-top: 1.0em;
+ margin-bottom: 1.5em;
+}
+thead, p.tableblock.header {
+ font-weight: bold;
+ color: #527bbd;
+}
+p.tableblock {
+ margin-top: 0;
+}
+table.tableblock {
+ border-width: 3px;
+ border-spacing: 0px;
+ border-style: solid;
+ border-color: #527bbd;
+ border-collapse: collapse;
+}
+th.tableblock, td.tableblock {
+ border-width: 1px;
+ padding: 4px;
+ border-style: solid;
+ border-color: #527bbd;
+}
+
+table.tableblock.frame-topbot {
+ border-left-style: hidden;
+ border-right-style: hidden;
+}
+table.tableblock.frame-sides {
+ border-top-style: hidden;
+ border-bottom-style: hidden;
+}
+table.tableblock.frame-none {
+ border-style: hidden;
+}
+
+th.tableblock.halign-left, td.tableblock.halign-left {
+ text-align: left;
+}
+th.tableblock.halign-center, td.tableblock.halign-center {
+ text-align: center;
+}
+th.tableblock.halign-right, td.tableblock.halign-right {
+ text-align: right;
+}
+
+th.tableblock.valign-top, td.tableblock.valign-top {
+ vertical-align: top;
+}
+th.tableblock.valign-middle, td.tableblock.valign-middle {
+ vertical-align: middle;
+}
+th.tableblock.valign-bottom, td.tableblock.valign-bottom {
+ vertical-align: bottom;
+}
/* Overrides for manpage documents */
h1 {
padding-top: 0.5em;
@@ -405,7 +525,7 @@ h2 {
border-style: none;
}
div.sectionbody {
- margin-left: 5%;
+ margin-left: 3em;
}
@media print {
@@ -415,7 +535,6 @@ div.sectionbody {
</style>
<script type="text/javascript">
/*<![CDATA[*/
-window.onload = function(){asciidoc.footnotes();}
var asciidoc = { // Namespace.
/////////////////////////////////////////////////////////////////////
@@ -477,6 +596,25 @@ toc: function (toclevels) {
}
var toc = document.getElementById("toc");
+ if (!toc) {
+ return;
+ }
+
+ // Delete existing TOC entries in case we're reloading the TOC.
+ var tocEntriesToRemove = [];
+ var i;
+ for (i = 0; i < toc.childNodes.length; i++) {
+ var entry = toc.childNodes[i];
+ if (entry.nodeName == 'DIV'
+ && entry.getAttribute("class")
+ && entry.getAttribute("class").match(/^toclevel/))
+ tocEntriesToRemove.push(entry);
+ }
+ for (i = 0; i < tocEntriesToRemove.length; i++) {
+ toc.removeChild(tocEntriesToRemove[i]);
+ }
+
+ // Rebuild TOC entries.
var entries = tocEntries(document.getElementById("content"), toclevels);
for (var i = 0; i < entries.length; ++i) {
var entry = entries[i];
@@ -504,24 +642,44 @@ toc: function (toclevels) {
*/
footnotes: function () {
- var cont = document.getElementById("content");
+ // Delete existing footnote entries in case we're reloading the footnodes.
+ var i;
var noteholder = document.getElementById("footnotes");
+ if (!noteholder) {
+ return;
+ }
+ var entriesToRemove = [];
+ for (i = 0; i < noteholder.childNodes.length; i++) {
+ var entry = noteholder.childNodes[i];
+ if (entry.nodeName == 'DIV' && entry.getAttribute("class") == "footnote")
+ entriesToRemove.push(entry);
+ }
+ for (i = 0; i < entriesToRemove.length; i++) {
+ noteholder.removeChild(entriesToRemove[i]);
+ }
+
+ // Rebuild footnote entries.
+ var cont = document.getElementById("content");
var spans = cont.getElementsByTagName("span");
var refs = {};
var n = 0;
for (i=0; i<spans.length; i++) {
if (spans[i].className == "footnote") {
n++;
- // Use [\s\S] in place of . so multi-line matches work.
- // Because JavaScript has no s (dotall) regex flag.
- note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
+ var note = spans[i].getAttribute("data-note");
+ if (!note) {
+ // Use [\s\S] in place of . so multi-line matches work.
+ // Because JavaScript has no s (dotall) regex flag.
+ note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
+ spans[i].innerHTML =
+ "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
+ "' title='View footnote' class='footnote'>" + n + "</a>]";
+ spans[i].setAttribute("data-note", note);
+ }
noteholder.innerHTML +=
"<div class='footnote' id='_footnote_" + n + "'>" +
"<a href='#_footnoteref_" + n + "' title='Return to text'>" +
n + "</a>. " + note + "</div>";
- spans[i].innerHTML =
- "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
- "' title='View footnote' class='footnote'>" + n + "</a>]";
var id =spans[i].getAttribute("id");
if (id != null) refs["#"+id] = n;
}
@@ -541,9 +699,32 @@ footnotes: function () {
}
}
}
+},
+
+install: function(toclevels) {
+ var timerId;
+
+ function reinstall() {
+ asciidoc.footnotes();
+ if (toclevels) {
+ asciidoc.toc(toclevels);
+ }
+ }
+
+ function reinstallAndRemoveTimer() {
+ clearInterval(timerId);
+ reinstall();
+ }
+
+ timerId = setInterval(reinstall, 500);
+ if (document.addEventListener)
+ document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);
+ else
+ window.onload = reinstallAndRemoveTimer;
}
}
+asciidoc.install();
/*]]>*/
</script>
</head>
@@ -710,6 +891,11 @@ Better diagnostics when <em>source</em> fails to load a script with a missing qu
New <tt>tcl_platform(pathSeparator)</tt>
</p>
</li>
+<li>
+<p>
+Add support settings the modification time with <em>file mtime</em>
+</p>
+</li>
</ol></div>
</div>
<div class="sect2">
@@ -1363,7 +1549,7 @@ sequence is replaced by the given character:</p></div>
</p>
</dd>
<dt class="hdlist1">
-<tt>\<strong>ddd</strong></tt>
+<tt>\*ddd*</tt>
</dt>
<dd>
<p>
@@ -1372,7 +1558,7 @@ sequence is replaced by the given character:</p></div>
</p>
</dd>
<dt class="hdlist1">
-<tt>\<strong>unnnn</strong></tt>
+<tt>\*unnnn*</tt>
</dt>
<dd>
<p>
@@ -3711,7 +3897,7 @@ abbreviation for <strong>option</strong> is acceptable. The valid options are:<
</p>
</dd>
<dt class="hdlist1">
-<tt><strong>file mtime</strong> <em>name</em></tt>
+<tt><strong>file mtime</strong> <em>name ?time?</em></tt>
</dt>
<dd>
<p>
@@ -3719,7 +3905,8 @@ abbreviation for <strong>option</strong> is acceptable. The valid options are:<
was last modified. The time is measured in the standard UNIX
fashion as seconds from a fixed starting time (often January 1, 1970).
If the file doesn&#8217;t exist or its modified time cannot be queried then an
- error is generated.
+ error is generated. If <strong>time</strong> is given, sets the modification time
+ of the file to the given value.
</p>
</dd>
<dt class="hdlist1">
@@ -5016,12 +5203,12 @@ matched <strong>exp</strong> is replaced with <strong>subSpec</strong>.
If <strong>subSpec</strong> contains a <em>&amp;</em> or <em>\0</em>, then it is replaced
in the substitution with the portion of <strong>string</strong> that
matched <strong>exp</strong>.</p></div>
-<div class="paragraph"><p>If <strong>subSpec</strong> contains a <em>\<strong>n</strong></em>, where <strong>n</strong> is a digit
+<div class="paragraph"><p>If <strong>subSpec</strong> contains a <em>\*n*</em>, where <strong>n</strong> is a digit
between 1 and 9, then it is replaced in the substitution with
the portion of <strong>string</strong> that matched the <strong>n</strong>-th
parenthesized subexpression of <strong>exp</strong>.
Additional backslashes may be used in <strong>subSpec</strong> to prevent special
-interpretation of <em>&amp;</em> or <em>\0</em> or <em>\<strong>n</strong></em> or
+interpretation of <em>&amp;</em> or <em>\0</em> or <em>\*n*</em> or
backslash.</p></div>
<div class="paragraph"><p>The use of backslashes in <strong>subSpec</strong> tends to interact badly
with the Tcl parser&#8217;s use of backslashes, so it&#8217;s generally
@@ -5047,7 +5234,7 @@ backslashes.</p></div>
<p>
All ranges in <strong>string</strong> that match <strong>exp</strong> are found and substitution
is performed for each of these ranges, rather than only the
- first. The <em>&amp;</em> and <em>\<strong>n</strong></em> sequences are handled for
+ first. The <em>&amp;</em> and <em>\*n*</em> sequences are handled for
each substitution using the information from the corresponding
match.
</p>
@@ -7102,7 +7289,7 @@ official policies, either expressed or implied, of the Jim Tcl Project.</tt></pr
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2011-07-18 16:09:46 EST
+Last updated 2011-08-18 13:10:13 EST
</div>
</div>
</body>