301 lines
6.6 KiB
HTML
301 lines
6.6 KiB
HTML
<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<!-- steal these colour values from JavaDocs; meh -->
|
|
<style type = "text/css">
|
|
a:link, a:visited { color: #4a6782; }
|
|
a:hover, a:focus { color: #bb7a2a; }
|
|
a:active { color: #4A6782; }
|
|
tr:nth-child(even) { background: #dee3e9; }
|
|
div {
|
|
margin: 4px 0;
|
|
padding: 0 4px 4px 4px;
|
|
}
|
|
table { width: 100%; }
|
|
td { padding: 4px; }
|
|
h3, h1 {
|
|
color: #2c4557;
|
|
background-color: #dee3e9;
|
|
padding: 4px;
|
|
}
|
|
h3 {
|
|
margin: 0 -4px;
|
|
padding: 4px;
|
|
}
|
|
</style>
|
|
<title>Widget</title>
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
<h1>Widget</h1>
|
|
|
|
<ul>
|
|
<li><a href = "#_declarations">Declarations</a></li>
|
|
<li><a href = "#_summary">Function Summary</a></li>
|
|
<li><a href = "#_detail">Function Detail</a></li>
|
|
</ul>
|
|
|
|
<p>
|
|
Copyright 2008, 2012 Neil Edelman, distributed under the terms of the
|
|
GNU General Public License, see copying.txt
|
|
</p>
|
|
<p>
|
|
Widgets like @(files), @(pwd). To create a widget:
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
stick the code below implementing <em>ParserWidget</em>;
|
|
</li>
|
|
<li>
|
|
create a prototype in Widget.h;
|
|
</li>
|
|
<li>
|
|
in <em>Parser.c</em>, add to the symbol table, sym[] with the symbol you want, in
|
|
ASCIIbetical order.
|
|
</li>
|
|
</ul>
|
|
<p>
|
|
See Parser for more information.
|
|
</p>
|
|
<dl>
|
|
<dt>minimum standard</dt>
|
|
<dd>POSIX.1</dd>
|
|
<dt>author</dt>
|
|
<dd>Neil</dd>
|
|
<dt>version</dt>
|
|
<dd>1.1; 2017-03 fixed pedantic warnings; command-line improvements</dd>
|
|
<dt>since</dt>
|
|
<dd>0.6; 2008-03-25</dd>
|
|
</dl>
|
|
|
|
|
|
<a name = "_declarations"><!-- --></a><h2>Declarations</h2>
|
|
|
|
|
|
<a name = "_summary"><!-- --></a><h2>Function Summary</h2>
|
|
|
|
<table>
|
|
<tr><th>Return Type</th><th>Function Name</th><th>Argument List</th></tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetContent">WidgetContent</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetDate">WidgetDate</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetFilealt">WidgetFilealt</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetFiledesc">WidgetFiledesc</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetFilehref">WidgetFilehref</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetFileicon">WidgetFileicon</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetFilename">WidgetFilename</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetFiles">WidgetFiles</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetFilesize">WidgetFilesize</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetNews">WidgetNews</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetNewsname">WidgetNewsname</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetNow">WidgetNow</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetPwd">WidgetPwd</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetRoot">WidgetRoot</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
<tr>
|
|
<td>int</td>
|
|
<td><a href = "#WidgetTitle">WidgetTitle</a></td>
|
|
<td>struct Files *const f, FILE *const fp</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<a name = "_detail"><!-- --></a><h2>Function Detail</h2>
|
|
|
|
<div><a name = "WidgetContent"><!-- --></a>
|
|
<h3>WidgetContent</h3>
|
|
<pre>int <b>WidgetContent</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetDate"><!-- --></a>
|
|
<h3>WidgetDate</h3>
|
|
<pre>int <b>WidgetDate</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetFilealt"><!-- --></a>
|
|
<h3>WidgetFilealt</h3>
|
|
<pre>int <b>WidgetFilealt</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetFiledesc"><!-- --></a>
|
|
<h3>WidgetFiledesc</h3>
|
|
<pre>int <b>WidgetFiledesc</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetFilehref"><!-- --></a>
|
|
<h3>WidgetFilehref</h3>
|
|
<pre>int <b>WidgetFilehref</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetFileicon"><!-- --></a>
|
|
<h3>WidgetFileicon</h3>
|
|
<pre>int <b>WidgetFileicon</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetFilename"><!-- --></a>
|
|
<h3>WidgetFilename</h3>
|
|
<pre>int <b>WidgetFilename</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetFiles"><!-- --></a>
|
|
<h3>WidgetFiles</h3>
|
|
<pre>int <b>WidgetFiles</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetFilesize"><!-- --></a>
|
|
<h3>WidgetFilesize</h3>
|
|
<pre>int <b>WidgetFilesize</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetNews"><!-- --></a>
|
|
<h3>WidgetNews</h3>
|
|
<pre>int <b>WidgetNews</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetNewsname"><!-- --></a>
|
|
<h3>WidgetNewsname</h3>
|
|
<pre>int <b>WidgetNewsname</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetNow"><!-- --></a>
|
|
<h3>WidgetNow</h3>
|
|
<pre>int <b>WidgetNow</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetPwd"><!-- --></a>
|
|
<h3>WidgetPwd</h3>
|
|
<pre>int <b>WidgetPwd</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetRoot"><!-- --></a>
|
|
<h3>WidgetRoot</h3>
|
|
<pre>int <b>WidgetRoot</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div><a name = "WidgetTitle"><!-- --></a>
|
|
<h3>WidgetTitle</h3>
|
|
<pre>int <b>WidgetTitle</b> (struct Files *const f, FILE *const fp)</pre>
|
|
<dl>
|
|
<dt>implements</dt>
|
|
<dd>ParserWidget</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|