Skip to content

Commit

Permalink
Remove Dreamweaver dregs, add some HTML5 semantic content tags,
Browse files Browse the repository at this point in the history
clean up styling, remove unused link.
  • Loading branch information
drh committed Jun 17, 2024
1 parent 79d0b37 commit 36885b9
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 152 deletions.
26 changes: 0 additions & 26 deletions Templates/Page.dwt

This file was deleted.

1 change: 0 additions & 1 deletion _notes/dwsync.xml

This file was deleted.

46 changes: 23 additions & 23 deletions errata.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
<!doctype html>
<html><!-- InstanceBegin template="/Templates/Page.dwt" codeOutsideHTMLIsLocked="false" -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>C Interfaces and Implementations</title>
<!-- InstanceEndEditable -->
<link href="style.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<meta charset="UTF-8">
<title>C Interfaces and Implementations</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div>
<h2>C Interfaces and Implementations</h2>
<p class="top-menu"><a href="index.html">Home</a> &middot;
<a href="https://github.com/drh/cii">Code</a> &middot;
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/drh/cii/master/install.html">Installation</a> &middot;
<a href="https://github.com/drh/cii/releases">Releases</a> &middot;
<a href="http://cii.s3.amazonaws.com/book/pdf/quickref.pdf">Quick Reference</a></p>
</div>
<!-- InstanceBeginEditable name="body" -->
<h3>Errata</h3>
<header>
<h2>C Interfaces and Implementations</h2>
<nav class="top-menu">
<p><a href="index.html">Home</a> &middot;
<a href="https://github.com/drh/cii">Code</a> &middot;
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/drh/cii/master/install.html">Installation</a>
&middot;
<a href="https://cii.s3.amazonaws.com/book/pdf/quickref.pdf">Quick Reference</a></p>
</nav>
</header>
<main>
<h3>Errata</h3>
<h4>1st Printing</h4>

<p>Corrections to the first printing (Aug. 1996) of <cite>C Interfaces and Implementations: Techniques
Expand Down Expand Up @@ -164,8 +162,10 @@ <h4>2nd and 3rd Printings</h4>
</blockquote>
<p><strong>Page 493, line -11:</strong> returns <code>preempt</code> or zero &rarr; returns one or zero</p>

<!-- InstanceEndEditable -->
<hr>
<p style="margin: 0;"><a href="http://drh.webhop.net"><em>David Hanson</em></a></p>
</main>
<footer>
<hr>
<p style="margin: 0;"><a href="https://drhanson.net/pro"><em>David Hanson</em></a></p>
</footer>
</body>
<!-- InstanceEnd --></html>
</html>
74 changes: 37 additions & 37 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
<!doctype html>
<html><!-- InstanceBegin template="/Templates/Page.dwt" codeOutsideHTMLIsLocked="false" -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>C Interfaces and Implementations</title>
<!-- InstanceEndEditable -->
<link href="style.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<meta charset="UTF-8">
<title>C Interfaces and Implementations</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div>
<h2>C Interfaces and Implementations</h2>
<p class="top-menu"><a href="index.html">Home</a> &middot;
<a href="https://github.com/drh/cii">Code</a> &middot;
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/drh/cii/master/install.html">Installation</a> &middot;
<a href="https://github.com/drh/cii/releases">Releases</a> &middot;
<a href="http://cii.s3.amazonaws.com/book/pdf/quickref.pdf">Quick Reference</a></p>
</div>
<!-- InstanceBeginEditable name="body" -->
<header>
<h2>C Interfaces and Implementations</h2>
<nav class="top-menu">
<p><a href="index.html">Home</a> &middot;
<a href="https://github.com/drh/cii">Code</a> &middot;
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/drh/cii/master/install.html">Installation</a>
&middot;
<a href="https://cii.s3.amazonaws.com/book/pdf/quickref.pdf">Quick Reference</a></p>
</nav>
</header>
<main>
<div align="top">
<p><img src="cover.jpg" alt="" width="130" height="168" align="left" style="vertical-align: text-top; padding-right: 1.5ex"/></p>
</div>
<p><img src="cover.jpg" alt="" width="130" height="168" align="left"
style="vertical-align: text-top; padding-right: 1.5ex" /></p>
</div>
<p>Buy: <a href="https://www.amazon.com/exec/obidos/ASIN/0201498413/drh-cii-20">Amazon</a></p>
<p>Read: <a href="https://www.oreilly.com/library/view/c-interfaces-and/9780321562807/">O&rsquo;Reilly Safari</a></p>
<p>Explore: <a href="toc.html">Contents</a> <a href="preface.html">Preface</a> <a href="http://cii.s3.amazonaws.com/book/pdf/atom.pdf">Chapter 3</a> <a href="errata.html">Errata</a></p>
<p>Reviews: <a href="http://storage.webhop.net/documents/CRreview.pdf">Computing Reviews</a>
&emsp;<a href="review.html">comp.lang.c.moderated</a></p>
Related: <a href="http://lcc.webhop.net" target="_blank">A Retargetable C Compiler</a></p>
<div>
<p>Buy: <a href="https://www.amazon.com/exec/obidos/ASIN/0201498413/drh-cii-20">Amazon</a></p>
<p>Read: <a href="https://www.oreilly.com/library/view/c-interfaces-and/9780321562807/">O&rsquo;Reilly Safari</a></p>
<p>Explore: <a href="toc.html">Contents</a> <a href="preface.html">Preface</a> <a
href="https://cii.s3.amazonaws.com/book/pdf/atom.pdf">Chapter 3</a> <a href="errata.html">Errata</a></p>
<p>Reviews: <a href="https://storage.webhop.net/documents/CRreview.pdf">Computing Reviews</a>
&emsp;<a href="review.html">comp.lang.c.moderated</a></p>
Related: <a href="https://lcc.webhop.net" target="_blank">A Retargetable C Compiler</a></p>

<p><em>C Interfaces and Implementations: Techniques for Creating Reusable Software</em>
(<a href="http://www.awprofessional.com/">Addison-Wesley Professional Computing Series</a>, 1997,
ISBN <a href="https://www.informit.com/store/c-interfaces-and-implementations-techniques-for-creating-9780201498417">0201498413</a>, ISBN-13 9780201498417)
advocates a design methodology based on interfaces and their implementations,
and it illustrates this methodology by describing 24 interfaces and their implementations in detail.
These interfaces include data structures, arithmetic, string processing, and concurrent programming.</p>
</div>
<!-- InstanceEndEditable -->
<hr>
<p style="margin: 0;"><a href="http://drh.webhop.net"><em>David Hanson</em></a></p>
(<a href="https://www.awprofessional.com/">Addison-Wesley Professional Computing Series</a>, 1997,
ISBN <a href="https://www.informit.com/store/c-interfaces-and-implementations-techniques-for-creating-9780201498417">0201498413</a>,
ISBN-13 9780201498417) advocates a design methodology based on interfaces and their implementations,
and it illustrates this methodology by describing 24 interfaces and their implementations in detail.
These interfaces include data structures, arithmetic, string processing, and concurrent programming.</p>
</main>
<footer>
<hr>
<p style="margin: 0;"><a href="https://drhanson.net/pro"><em>David Hanson</em></a></p>
</footer>
</body>
<!-- InstanceEnd --></html>
</html>
56 changes: 26 additions & 30 deletions preface.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,31 @@
<!doctype html>
<html><!-- InstanceBegin template="/Templates/Page.dwt" codeOutsideHTMLIsLocked="false" -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>C Interfaces and Implementations</title>
<!-- InstanceEndEditable -->
<link href="style.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<style>
dl { margin-left: 3ex; margin-top: 0; margin-bottom: 0;}
dt { font-style: italic; }
</style>
<!-- InstanceEndEditable -->
<meta charset="UTF-8">
<title>C Interfaces and Implementations</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div>
<h2>C Interfaces and Implementations</h2>
<p class="top-menu"><a href="index.html">Home</a> &middot;
<a href="https://github.com/drh/cii">Code</a> &middot;
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/drh/cii/master/install.html">Installation</a> &middot;
<a href="https://github.com/drh/cii/releases">Releases</a> &middot;
<a href="http://cii.s3.amazonaws.com/book/pdf/quickref.pdf">Quick Reference</a></p>
</div>
<!-- InstanceBeginEditable name="body" -->
<header>
<h2>C Interfaces and Implementations</h2>
<nav class="top-menu">
<p><a href="index.html">Home</a> &middot;
<a href="https://github.com/drh/cii">Code</a> &middot;
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/drh/cii/master/install.html">Installation</a>
&middot;
<a href="https://cii.s3.amazonaws.com/book/pdf/quickref.pdf">Quick Reference</a></p>
</nav>
</header>
<main>
<h3>Preface</h3>
<p>Programmers are inundated with information about application programming interfaces, or APIs. Yet,
while most programmers use APIs and the libraries that implement them in almost every application they
write, relatively few create and disseminate new, widely applicable, APIs. Indeed, programmers seem to
prefer to &ldquo;roll their own&rdquo; instead of searching for a library that might meet their needs,
perhaps because it is easier to write application-specific code than to craft well-designed APIs. </p>

<p>I<a href="http://www.cs.princeton.edu/%7ers/">&rsquo;</a>m as guilty as the next programmer: <a
href="http://www.cs.princeton.edu/software/lcc/">lcc</a>, a compiler for ANSI/ISO C written by Chris
<p>I<a href="https://www.cs.princeton.edu/%7ers/">&rsquo;</a>m as guilty as the next programmer: <a
href="https://www.cs.princeton.edu/software/lcc/">lcc</a>, a compiler for ANSI/ISO C written by Chris
Fraser and myself, was built from the ground up. (<code>lcc</code> is described in C.W. Fraser and D. R.
Hanson, <cite>A Retargetable C Compiler: Design and Implementation</cite>, Addison-Wesley, 1995.) A
compiler exemplifies the kind of application for which it possible to use standard interfaces and to
Expand All @@ -43,7 +37,7 @@ <h3>Preface</h3>
illustrates this methodology by describing 24 interfaces and their implementations in detail. These
interfaces span a large part of the computing spectrum and include data structures, arithmetic, string
processing, and concurrent programming. The implementations aren<a
href="http://www.cs.princeton.edu/%7ers/">&rsquo;</a>t toys&#151;they&rsquo;re designed for use in
href="https://www.cs.princeton.edu/%7ers/">&rsquo;</a>t toys&#151;they&rsquo;re designed for use in
production code. As described below, the source code is freely available.</p>

<p>There&rsquo;s little
Expand Down Expand Up @@ -129,7 +123,7 @@ <h4>Organization</h4>
motivates and describes the interface-based design methodology, defines the relevant terminology, and
tours two simple interfaces and their implementations. Chapter 3 describes the prototypical <code>Atom</code>
interface, which is the simplest production-quality interface in this book.
[<a href="http://ciibook.webhop.net/pdf/atom.pdf">Download/view Chapter 3</a>, an Adobe Acrobat PDF file
[<a href="https://ciibook.webhop.net/pdf/atom.pdf">Download/view Chapter 3</a>, an Adobe Acrobat PDF file
(52K).] Chapter 4 introduces exceptions and assertions, which are used in every interface. Chapters 5 and
6 describe the memory management interfaces used by almost all the implementations. The rest of the
chapters each describe an interface and its implementation.</p>
Expand Down Expand Up @@ -209,8 +203,10 @@ <h4>Acknowledgments</h4>
at which to plan and complete this book.</p>

<p>Technical interactions with colleagues and students have contributed to this book in many ways. Even seemingly unrelated discussions have provoked improvements in my code and in its explanation. Thanks to Andrew Appel, Greg Astfalk, Jack Davidson, John Ellis, Mary Fern&aacute;ndez, Chris Fraser, Alex Gounares, Kai Li, Jacob Navia, Maylee Noah, Rob Pike, Bill Plauger, John Reppy, Anne Rogers, and Richard Stevens. Careful readings of my code and prose by Rex Jaeschke, Brian Kernighan, Taj Khattra, Richard O&rsquo;Keefe, Norman Ramsey, and David Spuler made a significant contribution to the quality of both.</p>
<!-- InstanceEndEditable -->
<hr>
<p style="margin: 0;"><a href="http://drh.webhop.net"><em>David Hanson</em></a></p>
</main>
<footer>
<hr>
<p style="margin: 0;"><a href="https://drhanson.net/pro"><em>David Hanson</em></a></p>
</footer>
</body>
<!-- InstanceEnd --></html>
</html>
11 changes: 9 additions & 2 deletions review.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<html lang="en">
<footer>
<hr>
<p style="margin: 0;"><a href="https://drhanson.net/pro"><em>David Hanson</em></a></p>
</footer>
</body>
</html>


<head>
<title>Book review (brief)</title>
Expand Down Expand Up @@ -47,7 +54,7 @@ <h2>Book review (brief)</h2>
you'll probably like this book.

David Hanson and Christopher Fraser wrote &quot;<a
href="http://www.cs.princeton.edu/software/lcc/">A Retargetable C Compiler:
href="https://www.cs.princeton.edu/software/lcc/">A Retargetable C Compiler:
Design and Implementation</a>&quot;, which describes lcc, a compiler I am very
pleased to have. David Hanson is a very good programmer, and most of
us will learn something useful from this book.
Expand Down
16 changes: 6 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
body {
font-family: sans-serif,"Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
font-size: initial;
font-weight: normal;
background-color: #FFFFE8; /* #e0e6f1; */
font-family: sans-serif,"Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
font-size: initial;
font-weight: normal;
background-color: #FFFFE8; /* #e0e6f1; */
margin-top: 6px; font-size: medium }
h4 { margin-bottom: 0px }
h2 { margin: 0px }
h3 { margin-bottom: 0ex }
h5 { margin: 1px 0px 0px 0px; color: #5e6a72; }
.top-menu {
font-size: smaller;
font-weight: normal;
padding: 0px 0px 0px 0px;
}
.top-menu { font-size: smaller; font-weight: normal; }
p { margin: 1.5ex 0px 1.5ex 0px; }
a:link, a:visited { color: #0066CC; }
p.first, .first { margin-top: 0px }
hr {align: left; margin-right: 75%; color: black; }
hr {text-align: left; margin-right: 75%; color: black; }
46 changes: 23 additions & 23 deletions toc.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
<!doctype html>
<html><!-- InstanceBegin template="/Templates/Page.dwt" codeOutsideHTMLIsLocked="false" -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Contents</title>
<!-- InstanceEndEditable -->
<link href="style.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<meta charset="UTF-8">
<title>C Interfaces and Implementations</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div>
<h2>C Interfaces and Implementations</h2>
<p class="top-menu"><a href="index.html">Home</a> &middot;
<a href="https://github.com/drh/cii">Code</a> &middot;
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/drh/cii/master/install.html">Installation</a> &middot;
<a href="https://github.com/drh/cii/releases">Releases</a> &middot;
<a href="http://cii.s3.amazonaws.com/book/pdf/quickref.pdf">Quick Reference</a></p>
</div>
<!-- InstanceBeginEditable name="body" -->
<header>
<h2>C Interfaces and Implementations</h2>
<nav class="top-menu">
<p><a href="index.html">Home</a> &middot;
<a href="https://github.com/drh/cii">Code</a> &middot;
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/drh/cii/master/install.html">Installation</a>
&middot;
<a href="https://cii.s3.amazonaws.com/book/pdf/quickref.pdf">Quick Reference</a></p>
</nav>
</header>
<main>
<h3>Contents</h3>
<p>Click on the parenthesized links to browse the named source files. (These files have no comments because the book explains them.)</p>
<ol>
Expand All @@ -29,7 +27,7 @@ <h3>Contents</h3>
<li><b>Interfaces and Implementations</b><br>
Interfaces (<a href="https://raw.githubusercontent.com/drh/cii/master/include/arith.h">arith.h</a>)<br>
Implementations (<a href="https://raw.githubusercontent.com/drh/cii/master/src/arith.c">arith.c</a>)
<li><b>Atoms</b> <em><a href="http://ciibook.webhop.net/pdf/atom.pdf">Download/view this chapter</a> </em>(PDF, 52K)<br>
<li><b>Atoms</b> <em><a href="https://ciibook.webhop.net/pdf/atom.pdf">Download/view this chapter</a> </em>(PDF, 52K)<br>
Interface (<a href="https://raw.githubusercontent.com/drh/cii/master/include/atom.h">atom.h</a>)<br>
Implementation (<a href="https://raw.githubusercontent.com/drh/cii/master/src/atom.c">atom.c</a>)
<li><b>Exceptions and Assertions</b><br>
Expand Down Expand Up @@ -109,8 +107,10 @@ <h3>Contents</h3>
<b>Bibliography</b><br>
<b>Index</b>
</dl>
<!-- InstanceEndEditable -->
<hr>
<p style="margin: 0;"><a href="http://drh.webhop.net"><em>David Hanson</em></a></p>
</main>
<footer>
<hr>
<p style="margin: 0;"><a href="https://drhanson.net/pro"><em>David Hanson</em></a></p>
</footer>
</body>
<!-- InstanceEnd --></html>
</html>

0 comments on commit 36885b9

Please sign in to comment.