jpayne@68
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
jpayne@68
|
2 <html>
|
jpayne@68
|
3 <!-- Created on September, 11 2022 by texi2html 1.78a -->
|
jpayne@68
|
4 <!--
|
jpayne@68
|
5 Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
jpayne@68
|
6 Karl Berry <karl@freefriends.org>
|
jpayne@68
|
7 Olaf Bachmann <obachman@mathematik.uni-kl.de>
|
jpayne@68
|
8 and many others.
|
jpayne@68
|
9 Maintained by: Many creative people.
|
jpayne@68
|
10 Send bugs and suggestions to <texi2html-bug@nongnu.org>
|
jpayne@68
|
11
|
jpayne@68
|
12 -->
|
jpayne@68
|
13 <head>
|
jpayne@68
|
14 <title>GNU autosprintf</title>
|
jpayne@68
|
15
|
jpayne@68
|
16 <meta name="description" content="GNU autosprintf">
|
jpayne@68
|
17 <meta name="keywords" content="GNU autosprintf">
|
jpayne@68
|
18 <meta name="resource-type" content="document">
|
jpayne@68
|
19 <meta name="distribution" content="global">
|
jpayne@68
|
20 <meta name="Generator" content="texi2html 1.78a">
|
jpayne@68
|
21 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
jpayne@68
|
22 <style type="text/css">
|
jpayne@68
|
23 <!--
|
jpayne@68
|
24 a.summary-letter {text-decoration: none}
|
jpayne@68
|
25 pre.display {font-family: serif}
|
jpayne@68
|
26 pre.format {font-family: serif}
|
jpayne@68
|
27 pre.menu-comment {font-family: serif}
|
jpayne@68
|
28 pre.menu-preformatted {font-family: serif}
|
jpayne@68
|
29 pre.smalldisplay {font-family: serif; font-size: smaller}
|
jpayne@68
|
30 pre.smallexample {font-size: smaller}
|
jpayne@68
|
31 pre.smallformat {font-family: serif; font-size: smaller}
|
jpayne@68
|
32 pre.smalllisp {font-size: smaller}
|
jpayne@68
|
33 span.roman {font-family:serif; font-weight:normal;}
|
jpayne@68
|
34 span.sansserif {font-family:sans-serif; font-weight:normal;}
|
jpayne@68
|
35 ul.toc {list-style: none}
|
jpayne@68
|
36 -->
|
jpayne@68
|
37 </style>
|
jpayne@68
|
38
|
jpayne@68
|
39
|
jpayne@68
|
40 </head>
|
jpayne@68
|
41
|
jpayne@68
|
42 <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
|
jpayne@68
|
43
|
jpayne@68
|
44 <h1 class="settitle">GNU autosprintf</h1>
|
jpayne@68
|
45 <a name="SEC_Contents"></a>
|
jpayne@68
|
46 <h1>Table of Contents</h1>
|
jpayne@68
|
47 <div class="contents">
|
jpayne@68
|
48
|
jpayne@68
|
49 <ul class="toc">
|
jpayne@68
|
50 <li><a name="TOC1" href="#SEC1">1. Introduction</a></li>
|
jpayne@68
|
51 <li><a name="TOC2" href="#SEC2">2. The <code>autosprintf</code> class</a></li>
|
jpayne@68
|
52 <li><a name="TOC3" href="#SEC3">3. Using <code>autosprintf</code> in own programs</a></li>
|
jpayne@68
|
53 <li><a name="TOC4" href="#SEC4">A. Licenses</a>
|
jpayne@68
|
54 <ul class="toc">
|
jpayne@68
|
55 <li><a name="TOC5" href="#SEC5">A.1 GNU LESSER GENERAL PUBLIC LICENSE</a></li>
|
jpayne@68
|
56 <li><a name="TOC6" href="#SEC10">A.2 GNU GENERAL PUBLIC LICENSE</a></li>
|
jpayne@68
|
57 <li><a name="TOC7" href="#SEC14">A.3 GNU Free Documentation License</a></li>
|
jpayne@68
|
58 </ul>
|
jpayne@68
|
59 </li>
|
jpayne@68
|
60 </ul>
|
jpayne@68
|
61 </div>
|
jpayne@68
|
62
|
jpayne@68
|
63 <a name="Top"></a>
|
jpayne@68
|
64 <a name="SEC_Top"></a>
|
jpayne@68
|
65
|
jpayne@68
|
66 <p>This manual documents the GNU autosprintf class, version 1.0.
|
jpayne@68
|
67 </p>
|
jpayne@68
|
68
|
jpayne@68
|
69
|
jpayne@68
|
70 <hr size="1">
|
jpayne@68
|
71 <a name="Introduction"></a>
|
jpayne@68
|
72 <a name="SEC1"></a>
|
jpayne@68
|
73 <h1 class="chapter"> <a href="#TOC1">1. Introduction</a> </h1>
|
jpayne@68
|
74
|
jpayne@68
|
75 <p>This package makes the C formatted output routines (<code>fprintf</code> et al.)
|
jpayne@68
|
76 usable in C++ programs, for use with the <code><string></code> strings and the
|
jpayne@68
|
77 <code><iostream></code> streams.
|
jpayne@68
|
78 </p>
|
jpayne@68
|
79 <p>It allows to write code like
|
jpayne@68
|
80 </p>
|
jpayne@68
|
81 <table><tr><td> </td><td><pre class="smallexample">cerr << autosprintf ("syntax error in %s:%d: %s", filename, line, errstring);
|
jpayne@68
|
82 </pre></td></tr></table>
|
jpayne@68
|
83
|
jpayne@68
|
84 <p>instead of
|
jpayne@68
|
85 </p>
|
jpayne@68
|
86 <table><tr><td> </td><td><pre class="smallexample">cerr << "syntax error in " << filename << ":" << line << ": " << errstring;
|
jpayne@68
|
87 </pre></td></tr></table>
|
jpayne@68
|
88
|
jpayne@68
|
89 <p>The benefits of the autosprintf syntax are:
|
jpayne@68
|
90 </p>
|
jpayne@68
|
91 <ul>
|
jpayne@68
|
92 <li>
|
jpayne@68
|
93 It reuses the standard POSIX printf facility. Easy migration from C to C++.
|
jpayne@68
|
94
|
jpayne@68
|
95 </li><li>
|
jpayne@68
|
96 English sentences are kept together.
|
jpayne@68
|
97
|
jpayne@68
|
98 </li><li>
|
jpayne@68
|
99 It makes internationalization possible. Internationalization requires format
|
jpayne@68
|
100 strings, because in some cases the translator needs to change the order of a
|
jpayne@68
|
101 sentence, and more generally it is easier for the translator to work with a
|
jpayne@68
|
102 single string for a sentence than with multiple string pieces.
|
jpayne@68
|
103
|
jpayne@68
|
104 </li><li>
|
jpayne@68
|
105 It reduces the risk of programming errors due to forgotten state in the
|
jpayne@68
|
106 output stream (e.g. <code>cout << hex;</code> not followed by <code>cout << dec;</code>).
|
jpayne@68
|
107 </li></ul>
|
jpayne@68
|
108
|
jpayne@68
|
109
|
jpayne@68
|
110 <a name="Class-autosprintf"></a>
|
jpayne@68
|
111 <a name="SEC2"></a>
|
jpayne@68
|
112 <h1 class="chapter"> <a href="#TOC2">2. The <code>autosprintf</code> class</a> </h1>
|
jpayne@68
|
113
|
jpayne@68
|
114 <p>An instance of class <code>autosprintf</code> just contains a string with the
|
jpayne@68
|
115 formatted output result. Such an instance is usually allocated as an
|
jpayne@68
|
116 automatic storage variable, i.e. on the stack, not with <code>new</code> on the
|
jpayne@68
|
117 heap.
|
jpayne@68
|
118 </p>
|
jpayne@68
|
119 <p>The constructor <code>autosprintf (const char *format, ...)</code> takes a format
|
jpayne@68
|
120 string and additional arguments, like the C function <code>printf</code>.
|
jpayne@68
|
121 </p>
|
jpayne@68
|
122 <p>Conversions to <code>char *</code> and <code>std::string</code> are defined that return
|
jpayne@68
|
123 the encapsulated string. The conversion to <code>char *</code> returns a freshly
|
jpayne@68
|
124 allocated copy of the encapsulated string; it needs to be freed using
|
jpayne@68
|
125 <code>delete[]</code>. The conversion to <code>std::string</code> returns a copy of
|
jpayne@68
|
126 the encapsulated string, with automatic memory management.
|
jpayne@68
|
127 </p>
|
jpayne@68
|
128 <p>The destructor <code>~autosprintf ()</code> destroys the encapsulated string.
|
jpayne@68
|
129 </p>
|
jpayne@68
|
130 <p>An <code>operator <<</code> is provided that outputs the encapsulated string to the
|
jpayne@68
|
131 given <code>ostream</code>.
|
jpayne@68
|
132 </p>
|
jpayne@68
|
133
|
jpayne@68
|
134 <a name="Using-autosprintf"></a>
|
jpayne@68
|
135 <a name="SEC3"></a>
|
jpayne@68
|
136 <h1 class="chapter"> <a href="#TOC3">3. Using <code>autosprintf</code> in own programs</a> </h1>
|
jpayne@68
|
137
|
jpayne@68
|
138 <p>To use the <code>autosprintf</code> class in your programs, you need to add
|
jpayne@68
|
139 </p>
|
jpayne@68
|
140 <table><tr><td> </td><td><pre class="smallexample">#include "autosprintf.h"
|
jpayne@68
|
141 using gnu::autosprintf;
|
jpayne@68
|
142 </pre></td></tr></table>
|
jpayne@68
|
143
|
jpayne@68
|
144 <p>to your source code.
|
jpayne@68
|
145 The include file defines the class <code>autosprintf</code>, in a namespace called
|
jpayne@68
|
146 <code>gnu</code>. The ‘<samp>using</samp>’ statement makes it possible to use the class
|
jpayne@68
|
147 without the (otherwise natural) <code>gnu::</code> prefix.
|
jpayne@68
|
148 </p>
|
jpayne@68
|
149 <p>When linking your program, you need to link with <code>libasprintf</code>, because
|
jpayne@68
|
150 that's where the class is defined. In projects using GNU <code>autoconf</code>,
|
jpayne@68
|
151 this means adding ‘<samp>AC_LIB_LINKFLAGS([asprintf])</samp>’ to <code>configure.in</code>
|
jpayne@68
|
152 or <code>configure.ac</code>, and using the @LIBASPRINTF@ Makefile variable that
|
jpayne@68
|
153 it provides.
|
jpayne@68
|
154 </p>
|
jpayne@68
|
155
|
jpayne@68
|
156 <a name="Licenses"></a>
|
jpayne@68
|
157 <a name="SEC4"></a>
|
jpayne@68
|
158 <h1 class="appendix"> <a href="#TOC4">A. Licenses</a> </h1>
|
jpayne@68
|
159
|
jpayne@68
|
160 <p>The files of this package are covered by the licenses indicated in each
|
jpayne@68
|
161 particular file or directory. Here is a summary:
|
jpayne@68
|
162 </p>
|
jpayne@68
|
163 <ul>
|
jpayne@68
|
164 <li>
|
jpayne@68
|
165 The <code>libasprintf</code> library is covered by the
|
jpayne@68
|
166 GNU Lesser General Public License (LGPL), either version 2.1 of the
|
jpayne@68
|
167 License, or (at your option) any later version published by the
|
jpayne@68
|
168 Free Software Foundation (FSF).
|
jpayne@68
|
169 A copy of the license is included in <a href="#SEC5">GNU LESSER GENERAL PUBLIC LICENSE</a>.
|
jpayne@68
|
170
|
jpayne@68
|
171 </li><li>
|
jpayne@68
|
172 This manual is free documentation. It is dually licensed under the
|
jpayne@68
|
173 GNU FDL and the GNU GPL. This means that you can redistribute this
|
jpayne@68
|
174 manual under either of these two licenses, at your choice.
|
jpayne@68
|
175 <br>
|
jpayne@68
|
176 This manual is covered by the GNU FDL. Permission is granted to copy,
|
jpayne@68
|
177 distribute and/or modify this document under the terms of the
|
jpayne@68
|
178 GNU Free Documentation License (FDL), either version 1.2 of the
|
jpayne@68
|
179 License, or (at your option) any later version published by the
|
jpayne@68
|
180 Free Software Foundation (FSF); with no Invariant Sections, with no
|
jpayne@68
|
181 Front-Cover Text, and with no Back-Cover Texts.
|
jpayne@68
|
182 A copy of the license is included in <a href="#SEC14">GNU Free Documentation License</a>.
|
jpayne@68
|
183 <br>
|
jpayne@68
|
184 This manual is covered by the GNU GPL. You can redistribute it and/or
|
jpayne@68
|
185 modify it under the terms of the GNU General Public License (GPL), either
|
jpayne@68
|
186 version 2 of the License, or (at your option) any later version published
|
jpayne@68
|
187 by the Free Software Foundation (FSF).
|
jpayne@68
|
188 A copy of the license is included in <a href="#SEC10">GNU GENERAL PUBLIC LICENSE</a>.
|
jpayne@68
|
189 </li></ul>
|
jpayne@68
|
190
|
jpayne@68
|
191
|
jpayne@68
|
192
|
jpayne@68
|
193
|
jpayne@68
|
194 <a name="GNU-LGPL"></a>
|
jpayne@68
|
195 <a name="SEC5"></a>
|
jpayne@68
|
196 <h2 class="appendixsec"> <a href="#TOC5">A.1 GNU LESSER GENERAL PUBLIC LICENSE</a> </h2>
|
jpayne@68
|
197 <p align="center"> Version 2.1, February 1999
|
jpayne@68
|
198 </p>
|
jpayne@68
|
199
|
jpayne@68
|
200 <table><tr><td> </td><td><pre class="display">Copyright © 1991, 1999 Free Software Foundation, Inc.
|
jpayne@68
|
201 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
jpayne@68
|
202
|
jpayne@68
|
203 Everyone is permitted to copy and distribute verbatim copies
|
jpayne@68
|
204 of this license document, but changing it is not allowed.
|
jpayne@68
|
205
|
jpayne@68
|
206 [This is the first released version of the Lesser GPL. It also counts
|
jpayne@68
|
207 as the successor of the GNU Library Public License, version 2, hence the
|
jpayne@68
|
208 version number 2.1.]
|
jpayne@68
|
209 </pre></td></tr></table>
|
jpayne@68
|
210
|
jpayne@68
|
211 <a name="SEC6"></a>
|
jpayne@68
|
212 <h3 class="subheading"> Preamble </h3>
|
jpayne@68
|
213
|
jpayne@68
|
214 <p> The licenses for most software are designed to take away your
|
jpayne@68
|
215 freedom to share and change it. By contrast, the GNU General Public
|
jpayne@68
|
216 Licenses are intended to guarantee your freedom to share and change
|
jpayne@68
|
217 free software—to make sure the software is free for all its users.
|
jpayne@68
|
218 </p>
|
jpayne@68
|
219 <p> This license, the Lesser General Public License, applies to some
|
jpayne@68
|
220 specially designated software—typically libraries—of the Free
|
jpayne@68
|
221 Software Foundation and other authors who decide to use it. You can use
|
jpayne@68
|
222 it too, but we suggest you first think carefully about whether this
|
jpayne@68
|
223 license or the ordinary General Public License is the better strategy to
|
jpayne@68
|
224 use in any particular case, based on the explanations below.
|
jpayne@68
|
225 </p>
|
jpayne@68
|
226 <p> When we speak of free software, we are referring to freedom of use,
|
jpayne@68
|
227 not price. Our General Public Licenses are designed to make sure that
|
jpayne@68
|
228 you have the freedom to distribute copies of free software (and charge
|
jpayne@68
|
229 for this service if you wish); that you receive source code or can get
|
jpayne@68
|
230 it if you want it; that you can change the software and use pieces of it
|
jpayne@68
|
231 in new free programs; and that you are informed that you can do these
|
jpayne@68
|
232 things.
|
jpayne@68
|
233 </p>
|
jpayne@68
|
234 <p> To protect your rights, we need to make restrictions that forbid
|
jpayne@68
|
235 distributors to deny you these rights or to ask you to surrender these
|
jpayne@68
|
236 rights. These restrictions translate to certain responsibilities for
|
jpayne@68
|
237 you if you distribute copies of the library or if you modify it.
|
jpayne@68
|
238 </p>
|
jpayne@68
|
239 <p> For example, if you distribute copies of the library, whether gratis
|
jpayne@68
|
240 or for a fee, you must give the recipients all the rights that we gave
|
jpayne@68
|
241 you. You must make sure that they, too, receive or can get the source
|
jpayne@68
|
242 code. If you link other code with the library, you must provide
|
jpayne@68
|
243 complete object files to the recipients, so that they can relink them
|
jpayne@68
|
244 with the library after making changes to the library and recompiling
|
jpayne@68
|
245 it. And you must show them these terms so they know their rights.
|
jpayne@68
|
246 </p>
|
jpayne@68
|
247 <p> We protect your rights with a two-step method: (1) we copyright the
|
jpayne@68
|
248 library, and (2) we offer you this license, which gives you legal
|
jpayne@68
|
249 permission to copy, distribute and/or modify the library.
|
jpayne@68
|
250 </p>
|
jpayne@68
|
251 <p> To protect each distributor, we want to make it very clear that
|
jpayne@68
|
252 there is no warranty for the free library. Also, if the library is
|
jpayne@68
|
253 modified by someone else and passed on, the recipients should know
|
jpayne@68
|
254 that what they have is not the original version, so that the original
|
jpayne@68
|
255 author's reputation will not be affected by problems that might be
|
jpayne@68
|
256 introduced by others.
|
jpayne@68
|
257 </p>
|
jpayne@68
|
258 <p> Finally, software patents pose a constant threat to the existence of
|
jpayne@68
|
259 any free program. We wish to make sure that a company cannot
|
jpayne@68
|
260 effectively restrict the users of a free program by obtaining a
|
jpayne@68
|
261 restrictive license from a patent holder. Therefore, we insist that
|
jpayne@68
|
262 any patent license obtained for a version of the library must be
|
jpayne@68
|
263 consistent with the full freedom of use specified in this license.
|
jpayne@68
|
264 </p>
|
jpayne@68
|
265 <p> Most GNU software, including some libraries, is covered by the
|
jpayne@68
|
266 ordinary GNU General Public License. This license, the GNU Lesser
|
jpayne@68
|
267 General Public License, applies to certain designated libraries, and
|
jpayne@68
|
268 is quite different from the ordinary General Public License. We use
|
jpayne@68
|
269 this license for certain libraries in order to permit linking those
|
jpayne@68
|
270 libraries into non-free programs.
|
jpayne@68
|
271 </p>
|
jpayne@68
|
272 <p> When a program is linked with a library, whether statically or using
|
jpayne@68
|
273 a shared library, the combination of the two is legally speaking a
|
jpayne@68
|
274 combined work, a derivative of the original library. The ordinary
|
jpayne@68
|
275 General Public License therefore permits such linking only if the
|
jpayne@68
|
276 entire combination fits its criteria of freedom. The Lesser General
|
jpayne@68
|
277 Public License permits more lax criteria for linking other code with
|
jpayne@68
|
278 the library.
|
jpayne@68
|
279 </p>
|
jpayne@68
|
280 <p> We call this license the <em>Lesser</em> General Public License because it
|
jpayne@68
|
281 does <em>Less</em> to protect the user's freedom than the ordinary General
|
jpayne@68
|
282 Public License. It also provides other free software developers Less
|
jpayne@68
|
283 of an advantage over competing non-free programs. These disadvantages
|
jpayne@68
|
284 are the reason we use the ordinary General Public License for many
|
jpayne@68
|
285 libraries. However, the Lesser license provides advantages in certain
|
jpayne@68
|
286 special circumstances.
|
jpayne@68
|
287 </p>
|
jpayne@68
|
288 <p> For example, on rare occasions, there may be a special need to
|
jpayne@68
|
289 encourage the widest possible use of a certain library, so that it becomes
|
jpayne@68
|
290 a de-facto standard. To achieve this, non-free programs must be
|
jpayne@68
|
291 allowed to use the library. A more frequent case is that a free
|
jpayne@68
|
292 library does the same job as widely used non-free libraries. In this
|
jpayne@68
|
293 case, there is little to gain by limiting the free library to free
|
jpayne@68
|
294 software only, so we use the Lesser General Public License.
|
jpayne@68
|
295 </p>
|
jpayne@68
|
296 <p> In other cases, permission to use a particular library in non-free
|
jpayne@68
|
297 programs enables a greater number of people to use a large body of
|
jpayne@68
|
298 free software. For example, permission to use the GNU C Library in
|
jpayne@68
|
299 non-free programs enables many more people to use the whole GNU
|
jpayne@68
|
300 operating system, as well as its variant, the GNU/Linux operating
|
jpayne@68
|
301 system.
|
jpayne@68
|
302 </p>
|
jpayne@68
|
303 <p> Although the Lesser General Public License is Less protective of the
|
jpayne@68
|
304 users' freedom, it does ensure that the user of a program that is
|
jpayne@68
|
305 linked with the Library has the freedom and the wherewithal to run
|
jpayne@68
|
306 that program using a modified version of the Library.
|
jpayne@68
|
307 </p>
|
jpayne@68
|
308 <p> The precise terms and conditions for copying, distribution and
|
jpayne@68
|
309 modification follow. Pay close attention to the difference between a
|
jpayne@68
|
310 “work based on the library” and a “work that uses the library”. The
|
jpayne@68
|
311 former contains code derived from the library, whereas the latter must
|
jpayne@68
|
312 be combined with the library in order to run.
|
jpayne@68
|
313 </p>
|
jpayne@68
|
314 <a name="SEC7"></a>
|
jpayne@68
|
315 <h3 class="subheading"> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION </h3>
|
jpayne@68
|
316
|
jpayne@68
|
317 <ol>
|
jpayne@68
|
318 <li>
|
jpayne@68
|
319 This License Agreement applies to any software library or other program
|
jpayne@68
|
320 which contains a notice placed by the copyright holder or other
|
jpayne@68
|
321 authorized party saying it may be distributed under the terms of this
|
jpayne@68
|
322 Lesser General Public License (also called “this License”). Each
|
jpayne@68
|
323 licensee is addressed as “you”.
|
jpayne@68
|
324
|
jpayne@68
|
325 <p> A “library” means a collection of software functions and/or data
|
jpayne@68
|
326 prepared so as to be conveniently linked with application programs
|
jpayne@68
|
327 (which use some of those functions and data) to form executables.
|
jpayne@68
|
328 </p>
|
jpayne@68
|
329 <p> The “Library”, below, refers to any such software library or work
|
jpayne@68
|
330 which has been distributed under these terms. A “work based on the
|
jpayne@68
|
331 Library” means either the Library or any derivative work under
|
jpayne@68
|
332 copyright law: that is to say, a work containing the Library or a
|
jpayne@68
|
333 portion of it, either verbatim or with modifications and/or translated
|
jpayne@68
|
334 straightforwardly into another language. (Hereinafter, translation is
|
jpayne@68
|
335 included without limitation in the term “modification”.)
|
jpayne@68
|
336 </p>
|
jpayne@68
|
337 <p> “Source code” for a work means the preferred form of the work for
|
jpayne@68
|
338 making modifications to it. For a library, complete source code means
|
jpayne@68
|
339 all the source code for all modules it contains, plus any associated
|
jpayne@68
|
340 interface definition files, plus the scripts used to control compilation
|
jpayne@68
|
341 and installation of the library.
|
jpayne@68
|
342 </p>
|
jpayne@68
|
343 <p> Activities other than copying, distribution and modification are not
|
jpayne@68
|
344 covered by this License; they are outside its scope. The act of
|
jpayne@68
|
345 running a program using the Library is not restricted, and output from
|
jpayne@68
|
346 such a program is covered only if its contents constitute a work based
|
jpayne@68
|
347 on the Library (independent of the use of the Library in a tool for
|
jpayne@68
|
348 writing it). Whether that is true depends on what the Library does
|
jpayne@68
|
349 and what the program that uses the Library does.
|
jpayne@68
|
350 </p>
|
jpayne@68
|
351 </li><li>
|
jpayne@68
|
352 You may copy and distribute verbatim copies of the Library's
|
jpayne@68
|
353 complete source code as you receive it, in any medium, provided that
|
jpayne@68
|
354 you conspicuously and appropriately publish on each copy an
|
jpayne@68
|
355 appropriate copyright notice and disclaimer of warranty; keep intact
|
jpayne@68
|
356 all the notices that refer to this License and to the absence of any
|
jpayne@68
|
357 warranty; and distribute a copy of this License along with the
|
jpayne@68
|
358 Library.
|
jpayne@68
|
359
|
jpayne@68
|
360 <p> You may charge a fee for the physical act of transferring a copy,
|
jpayne@68
|
361 and you may at your option offer warranty protection in exchange for a
|
jpayne@68
|
362 fee.
|
jpayne@68
|
363 </p>
|
jpayne@68
|
364 </li><li>
|
jpayne@68
|
365 You may modify your copy or copies of the Library or any portion
|
jpayne@68
|
366 of it, thus forming a work based on the Library, and copy and
|
jpayne@68
|
367 distribute such modifications or work under the terms of Section 1
|
jpayne@68
|
368 above, provided that you also meet all of these conditions:
|
jpayne@68
|
369
|
jpayne@68
|
370 <ol>
|
jpayne@68
|
371 <li>
|
jpayne@68
|
372 The modified work must itself be a software library.
|
jpayne@68
|
373
|
jpayne@68
|
374 </li><li>
|
jpayne@68
|
375 You must cause the files modified to carry prominent notices
|
jpayne@68
|
376 stating that you changed the files and the date of any change.
|
jpayne@68
|
377
|
jpayne@68
|
378 </li><li>
|
jpayne@68
|
379 You must cause the whole of the work to be licensed at no
|
jpayne@68
|
380 charge to all third parties under the terms of this License.
|
jpayne@68
|
381
|
jpayne@68
|
382 </li><li>
|
jpayne@68
|
383 If a facility in the modified Library refers to a function or a
|
jpayne@68
|
384 table of data to be supplied by an application program that uses
|
jpayne@68
|
385 the facility, other than as an argument passed when the facility
|
jpayne@68
|
386 is invoked, then you must make a good faith effort to ensure that,
|
jpayne@68
|
387 in the event an application does not supply such function or
|
jpayne@68
|
388 table, the facility still operates, and performs whatever part of
|
jpayne@68
|
389 its purpose remains meaningful.
|
jpayne@68
|
390
|
jpayne@68
|
391 <p>(For example, a function in a library to compute square roots has
|
jpayne@68
|
392 a purpose that is entirely well-defined independent of the
|
jpayne@68
|
393 application. Therefore, Subsection 2d requires that any
|
jpayne@68
|
394 application-supplied function or table used by this function must
|
jpayne@68
|
395 be optional: if the application does not supply it, the square
|
jpayne@68
|
396 root function must still compute square roots.)
|
jpayne@68
|
397 </p></li></ol>
|
jpayne@68
|
398
|
jpayne@68
|
399 <p>These requirements apply to the modified work as a whole. If
|
jpayne@68
|
400 identifiable sections of that work are not derived from the Library,
|
jpayne@68
|
401 and can be reasonably considered independent and separate works in
|
jpayne@68
|
402 themselves, then this License, and its terms, do not apply to those
|
jpayne@68
|
403 sections when you distribute them as separate works. But when you
|
jpayne@68
|
404 distribute the same sections as part of a whole which is a work based
|
jpayne@68
|
405 on the Library, the distribution of the whole must be on the terms of
|
jpayne@68
|
406 this License, whose permissions for other licensees extend to the
|
jpayne@68
|
407 entire whole, and thus to each and every part regardless of who wrote
|
jpayne@68
|
408 it.
|
jpayne@68
|
409 </p>
|
jpayne@68
|
410 <p>Thus, it is not the intent of this section to claim rights or contest
|
jpayne@68
|
411 your rights to work written entirely by you; rather, the intent is to
|
jpayne@68
|
412 exercise the right to control the distribution of derivative or
|
jpayne@68
|
413 collective works based on the Library.
|
jpayne@68
|
414 </p>
|
jpayne@68
|
415 <p>In addition, mere aggregation of another work not based on the Library
|
jpayne@68
|
416 with the Library (or with a work based on the Library) on a volume of
|
jpayne@68
|
417 a storage or distribution medium does not bring the other work under
|
jpayne@68
|
418 the scope of this License.
|
jpayne@68
|
419 </p>
|
jpayne@68
|
420 </li><li>
|
jpayne@68
|
421 You may opt to apply the terms of the ordinary GNU General Public
|
jpayne@68
|
422 License instead of this License to a given copy of the Library. To do
|
jpayne@68
|
423 this, you must alter all the notices that refer to this License, so
|
jpayne@68
|
424 that they refer to the ordinary GNU General Public License, version 2,
|
jpayne@68
|
425 instead of to this License. (If a newer version than version 2 of the
|
jpayne@68
|
426 ordinary GNU General Public License has appeared, then you can specify
|
jpayne@68
|
427 that version instead if you wish.) Do not make any other change in
|
jpayne@68
|
428 these notices.
|
jpayne@68
|
429
|
jpayne@68
|
430 <p> Once this change is made in a given copy, it is irreversible for
|
jpayne@68
|
431 that copy, so the ordinary GNU General Public License applies to all
|
jpayne@68
|
432 subsequent copies and derivative works made from that copy.
|
jpayne@68
|
433 </p>
|
jpayne@68
|
434 <p> This option is useful when you wish to copy part of the code of
|
jpayne@68
|
435 the Library into a program that is not a library.
|
jpayne@68
|
436 </p>
|
jpayne@68
|
437 </li><li>
|
jpayne@68
|
438 You may copy and distribute the Library (or a portion or
|
jpayne@68
|
439 derivative of it, under Section 2) in object code or executable form
|
jpayne@68
|
440 under the terms of Sections 1 and 2 above provided that you accompany
|
jpayne@68
|
441 it with the complete corresponding machine-readable source code, which
|
jpayne@68
|
442 must be distributed under the terms of Sections 1 and 2 above on a
|
jpayne@68
|
443 medium customarily used for software interchange.
|
jpayne@68
|
444
|
jpayne@68
|
445 <p> If distribution of object code is made by offering access to copy
|
jpayne@68
|
446 from a designated place, then offering equivalent access to copy the
|
jpayne@68
|
447 source code from the same place satisfies the requirement to
|
jpayne@68
|
448 distribute the source code, even though third parties are not
|
jpayne@68
|
449 compelled to copy the source along with the object code.
|
jpayne@68
|
450 </p>
|
jpayne@68
|
451 </li><li>
|
jpayne@68
|
452 A program that contains no derivative of any portion of the
|
jpayne@68
|
453 Library, but is designed to work with the Library by being compiled or
|
jpayne@68
|
454 linked with it, is called a “work that uses the Library”. Such a
|
jpayne@68
|
455 work, in isolation, is not a derivative work of the Library, and
|
jpayne@68
|
456 therefore falls outside the scope of this License.
|
jpayne@68
|
457
|
jpayne@68
|
458 <p> However, linking a “work that uses the Library” with the Library
|
jpayne@68
|
459 creates an executable that is a derivative of the Library (because it
|
jpayne@68
|
460 contains portions of the Library), rather than a “work that uses the
|
jpayne@68
|
461 library”. The executable is therefore covered by this License.
|
jpayne@68
|
462 Section 6 states terms for distribution of such executables.
|
jpayne@68
|
463 </p>
|
jpayne@68
|
464 <p> When a “work that uses the Library” uses material from a header file
|
jpayne@68
|
465 that is part of the Library, the object code for the work may be a
|
jpayne@68
|
466 derivative work of the Library even though the source code is not.
|
jpayne@68
|
467 Whether this is true is especially significant if the work can be
|
jpayne@68
|
468 linked without the Library, or if the work is itself a library. The
|
jpayne@68
|
469 threshold for this to be true is not precisely defined by law.
|
jpayne@68
|
470 </p>
|
jpayne@68
|
471 <p> If such an object file uses only numerical parameters, data
|
jpayne@68
|
472 structure layouts and accessors, and small macros and small inline
|
jpayne@68
|
473 functions (ten lines or less in length), then the use of the object
|
jpayne@68
|
474 file is unrestricted, regardless of whether it is legally a derivative
|
jpayne@68
|
475 work. (Executables containing this object code plus portions of the
|
jpayne@68
|
476 Library will still fall under Section 6.)
|
jpayne@68
|
477 </p>
|
jpayne@68
|
478 <p> Otherwise, if the work is a derivative of the Library, you may
|
jpayne@68
|
479 distribute the object code for the work under the terms of Section 6.
|
jpayne@68
|
480 Any executables containing that work also fall under Section 6,
|
jpayne@68
|
481 whether or not they are linked directly with the Library itself.
|
jpayne@68
|
482 </p>
|
jpayne@68
|
483 </li><li>
|
jpayne@68
|
484 As an exception to the Sections above, you may also combine or
|
jpayne@68
|
485 link a “work that uses the Library” with the Library to produce a
|
jpayne@68
|
486 work containing portions of the Library, and distribute that work
|
jpayne@68
|
487 under terms of your choice, provided that the terms permit
|
jpayne@68
|
488 modification of the work for the customer's own use and reverse
|
jpayne@68
|
489 engineering for debugging such modifications.
|
jpayne@68
|
490
|
jpayne@68
|
491 <p> You must give prominent notice with each copy of the work that the
|
jpayne@68
|
492 Library is used in it and that the Library and its use are covered by
|
jpayne@68
|
493 this License. You must supply a copy of this License. If the work
|
jpayne@68
|
494 during execution displays copyright notices, you must include the
|
jpayne@68
|
495 copyright notice for the Library among them, as well as a reference
|
jpayne@68
|
496 directing the user to the copy of this License. Also, you must do one
|
jpayne@68
|
497 of these things:
|
jpayne@68
|
498 </p>
|
jpayne@68
|
499 <ol>
|
jpayne@68
|
500 <li>
|
jpayne@68
|
501 Accompany the work with the complete corresponding
|
jpayne@68
|
502 machine-readable source code for the Library including whatever
|
jpayne@68
|
503 changes were used in the work (which must be distributed under
|
jpayne@68
|
504 Sections 1 and 2 above); and, if the work is an executable linked
|
jpayne@68
|
505 with the Library, with the complete machine-readable “work that
|
jpayne@68
|
506 uses the Library”, as object code and/or source code, so that the
|
jpayne@68
|
507 user can modify the Library and then relink to produce a modified
|
jpayne@68
|
508 executable containing the modified Library. (It is understood
|
jpayne@68
|
509 that the user who changes the contents of definitions files in the
|
jpayne@68
|
510 Library will not necessarily be able to recompile the application
|
jpayne@68
|
511 to use the modified definitions.)
|
jpayne@68
|
512
|
jpayne@68
|
513 </li><li>
|
jpayne@68
|
514 Use a suitable shared library mechanism for linking with the Library. A
|
jpayne@68
|
515 suitable mechanism is one that (1) uses at run time a copy of the
|
jpayne@68
|
516 library already present on the user's computer system, rather than
|
jpayne@68
|
517 copying library functions into the executable, and (2) will operate
|
jpayne@68
|
518 properly with a modified version of the library, if the user installs
|
jpayne@68
|
519 one, as long as the modified version is interface-compatible with the
|
jpayne@68
|
520 version that the work was made with.
|
jpayne@68
|
521
|
jpayne@68
|
522 </li><li>
|
jpayne@68
|
523 Accompany the work with a written offer, valid for at
|
jpayne@68
|
524 least three years, to give the same user the materials
|
jpayne@68
|
525 specified in Subsection 6a, above, for a charge no more
|
jpayne@68
|
526 than the cost of performing this distribution.
|
jpayne@68
|
527
|
jpayne@68
|
528 </li><li>
|
jpayne@68
|
529 If distribution of the work is made by offering access to copy
|
jpayne@68
|
530 from a designated place, offer equivalent access to copy the above
|
jpayne@68
|
531 specified materials from the same place.
|
jpayne@68
|
532
|
jpayne@68
|
533 </li><li>
|
jpayne@68
|
534 Verify that the user has already received a copy of these
|
jpayne@68
|
535 materials or that you have already sent this user a copy.
|
jpayne@68
|
536 </li></ol>
|
jpayne@68
|
537
|
jpayne@68
|
538 <p> For an executable, the required form of the “work that uses the
|
jpayne@68
|
539 Library” must include any data and utility programs needed for
|
jpayne@68
|
540 reproducing the executable from it. However, as a special exception,
|
jpayne@68
|
541 the materials to be distributed need not include anything that is
|
jpayne@68
|
542 normally distributed (in either source or binary form) with the major
|
jpayne@68
|
543 components (compiler, kernel, and so on) of the operating system on
|
jpayne@68
|
544 which the executable runs, unless that component itself accompanies the
|
jpayne@68
|
545 executable.
|
jpayne@68
|
546 </p>
|
jpayne@68
|
547 <p> It may happen that this requirement contradicts the license
|
jpayne@68
|
548 restrictions of other proprietary libraries that do not normally
|
jpayne@68
|
549 accompany the operating system. Such a contradiction means you cannot
|
jpayne@68
|
550 use both them and the Library together in an executable that you
|
jpayne@68
|
551 distribute.
|
jpayne@68
|
552 </p>
|
jpayne@68
|
553 </li><li>
|
jpayne@68
|
554 You may place library facilities that are a work based on the
|
jpayne@68
|
555 Library side-by-side in a single library together with other library
|
jpayne@68
|
556 facilities not covered by this License, and distribute such a combined
|
jpayne@68
|
557 library, provided that the separate distribution of the work based on
|
jpayne@68
|
558 the Library and of the other library facilities is otherwise
|
jpayne@68
|
559 permitted, and provided that you do these two things:
|
jpayne@68
|
560
|
jpayne@68
|
561 <ol>
|
jpayne@68
|
562 <li>
|
jpayne@68
|
563 Accompany the combined library with a copy of the same work
|
jpayne@68
|
564 based on the Library, uncombined with any other library
|
jpayne@68
|
565 facilities. This must be distributed under the terms of the
|
jpayne@68
|
566 Sections above.
|
jpayne@68
|
567
|
jpayne@68
|
568 </li><li>
|
jpayne@68
|
569 Give prominent notice with the combined library of the fact
|
jpayne@68
|
570 that part of it is a work based on the Library, and explaining
|
jpayne@68
|
571 where to find the accompanying uncombined form of the same work.
|
jpayne@68
|
572 </li></ol>
|
jpayne@68
|
573
|
jpayne@68
|
574 </li><li>
|
jpayne@68
|
575 You may not copy, modify, sublicense, link with, or distribute
|
jpayne@68
|
576 the Library except as expressly provided under this License. Any
|
jpayne@68
|
577 attempt otherwise to copy, modify, sublicense, link with, or
|
jpayne@68
|
578 distribute the Library is void, and will automatically terminate your
|
jpayne@68
|
579 rights under this License. However, parties who have received copies,
|
jpayne@68
|
580 or rights, from you under this License will not have their licenses
|
jpayne@68
|
581 terminated so long as such parties remain in full compliance.
|
jpayne@68
|
582
|
jpayne@68
|
583 </li><li>
|
jpayne@68
|
584 You are not required to accept this License, since you have not
|
jpayne@68
|
585 signed it. However, nothing else grants you permission to modify or
|
jpayne@68
|
586 distribute the Library or its derivative works. These actions are
|
jpayne@68
|
587 prohibited by law if you do not accept this License. Therefore, by
|
jpayne@68
|
588 modifying or distributing the Library (or any work based on the
|
jpayne@68
|
589 Library), you indicate your acceptance of this License to do so, and
|
jpayne@68
|
590 all its terms and conditions for copying, distributing or modifying
|
jpayne@68
|
591 the Library or works based on it.
|
jpayne@68
|
592
|
jpayne@68
|
593 </li><li>
|
jpayne@68
|
594 Each time you redistribute the Library (or any work based on the
|
jpayne@68
|
595 Library), the recipient automatically receives a license from the
|
jpayne@68
|
596 original licensor to copy, distribute, link with or modify the Library
|
jpayne@68
|
597 subject to these terms and conditions. You may not impose any further
|
jpayne@68
|
598 restrictions on the recipients' exercise of the rights granted herein.
|
jpayne@68
|
599 You are not responsible for enforcing compliance by third parties with
|
jpayne@68
|
600 this License.
|
jpayne@68
|
601
|
jpayne@68
|
602 </li><li>
|
jpayne@68
|
603 If, as a consequence of a court judgment or allegation of patent
|
jpayne@68
|
604 infringement or for any other reason (not limited to patent issues),
|
jpayne@68
|
605 conditions are imposed on you (whether by court order, agreement or
|
jpayne@68
|
606 otherwise) that contradict the conditions of this License, they do not
|
jpayne@68
|
607 excuse you from the conditions of this License. If you cannot
|
jpayne@68
|
608 distribute so as to satisfy simultaneously your obligations under this
|
jpayne@68
|
609 License and any other pertinent obligations, then as a consequence you
|
jpayne@68
|
610 may not distribute the Library at all. For example, if a patent
|
jpayne@68
|
611 license would not permit royalty-free redistribution of the Library by
|
jpayne@68
|
612 all those who receive copies directly or indirectly through you, then
|
jpayne@68
|
613 the only way you could satisfy both it and this License would be to
|
jpayne@68
|
614 refrain entirely from distribution of the Library.
|
jpayne@68
|
615
|
jpayne@68
|
616 <p>If any portion of this section is held invalid or unenforceable under any
|
jpayne@68
|
617 particular circumstance, the balance of the section is intended to apply,
|
jpayne@68
|
618 and the section as a whole is intended to apply in other circumstances.
|
jpayne@68
|
619 </p>
|
jpayne@68
|
620 <p>It is not the purpose of this section to induce you to infringe any
|
jpayne@68
|
621 patents or other property right claims or to contest validity of any
|
jpayne@68
|
622 such claims; this section has the sole purpose of protecting the
|
jpayne@68
|
623 integrity of the free software distribution system which is
|
jpayne@68
|
624 implemented by public license practices. Many people have made
|
jpayne@68
|
625 generous contributions to the wide range of software distributed
|
jpayne@68
|
626 through that system in reliance on consistent application of that
|
jpayne@68
|
627 system; it is up to the author/donor to decide if he or she is willing
|
jpayne@68
|
628 to distribute software through any other system and a licensee cannot
|
jpayne@68
|
629 impose that choice.
|
jpayne@68
|
630 </p>
|
jpayne@68
|
631 <p>This section is intended to make thoroughly clear what is believed to
|
jpayne@68
|
632 be a consequence of the rest of this License.
|
jpayne@68
|
633 </p>
|
jpayne@68
|
634 </li><li>
|
jpayne@68
|
635 If the distribution and/or use of the Library is restricted in
|
jpayne@68
|
636 certain countries either by patents or by copyrighted interfaces, the
|
jpayne@68
|
637 original copyright holder who places the Library under this License may add
|
jpayne@68
|
638 an explicit geographical distribution limitation excluding those countries,
|
jpayne@68
|
639 so that distribution is permitted only in or among countries not thus
|
jpayne@68
|
640 excluded. In such case, this License incorporates the limitation as if
|
jpayne@68
|
641 written in the body of this License.
|
jpayne@68
|
642
|
jpayne@68
|
643 </li><li>
|
jpayne@68
|
644 The Free Software Foundation may publish revised and/or new
|
jpayne@68
|
645 versions of the Lesser General Public License from time to time.
|
jpayne@68
|
646 Such new versions will be similar in spirit to the present version,
|
jpayne@68
|
647 but may differ in detail to address new problems or concerns.
|
jpayne@68
|
648
|
jpayne@68
|
649 <p>Each version is given a distinguishing version number. If the Library
|
jpayne@68
|
650 specifies a version number of this License which applies to it and
|
jpayne@68
|
651 “any later version”, you have the option of following the terms and
|
jpayne@68
|
652 conditions either of that version or of any later version published by
|
jpayne@68
|
653 the Free Software Foundation. If the Library does not specify a
|
jpayne@68
|
654 license version number, you may choose any version ever published by
|
jpayne@68
|
655 the Free Software Foundation.
|
jpayne@68
|
656 </p>
|
jpayne@68
|
657 </li><li>
|
jpayne@68
|
658 If you wish to incorporate parts of the Library into other free
|
jpayne@68
|
659 programs whose distribution conditions are incompatible with these,
|
jpayne@68
|
660 write to the author to ask for permission. For software which is
|
jpayne@68
|
661 copyrighted by the Free Software Foundation, write to the Free
|
jpayne@68
|
662 Software Foundation; we sometimes make exceptions for this. Our
|
jpayne@68
|
663 decision will be guided by the two goals of preserving the free status
|
jpayne@68
|
664 of all derivatives of our free software and of promoting the sharing
|
jpayne@68
|
665 and reuse of software generally.
|
jpayne@68
|
666
|
jpayne@68
|
667 <p align="center"> <b>NO WARRANTY</b>
|
jpayne@68
|
668 </p>
|
jpayne@68
|
669 </li><li>
|
jpayne@68
|
670 BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
jpayne@68
|
671 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
jpayne@68
|
672 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
jpayne@68
|
673 OTHER PARTIES PROVIDE THE LIBRARY “AS IS” WITHOUT WARRANTY OF ANY
|
jpayne@68
|
674 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
jpayne@68
|
675 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
jpayne@68
|
676 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
jpayne@68
|
677 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
jpayne@68
|
678 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
jpayne@68
|
679
|
jpayne@68
|
680 </li><li>
|
jpayne@68
|
681 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
jpayne@68
|
682 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
jpayne@68
|
683 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
jpayne@68
|
684 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
jpayne@68
|
685 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
jpayne@68
|
686 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
jpayne@68
|
687 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
jpayne@68
|
688 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
jpayne@68
|
689 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
jpayne@68
|
690 DAMAGES.
|
jpayne@68
|
691 </li></ol>
|
jpayne@68
|
692
|
jpayne@68
|
693 <a name="SEC8"></a>
|
jpayne@68
|
694 <h3 class="subheading"> END OF TERMS AND CONDITIONS </h3>
|
jpayne@68
|
695
|
jpayne@68
|
696
|
jpayne@68
|
697 <a name="SEC9"></a>
|
jpayne@68
|
698 <h3 class="subheading"> How to Apply These Terms to Your New Libraries </h3>
|
jpayne@68
|
699
|
jpayne@68
|
700 <p> If you develop a new library, and you want it to be of the greatest
|
jpayne@68
|
701 possible use to the public, we recommend making it free software that
|
jpayne@68
|
702 everyone can redistribute and change. You can do so by permitting
|
jpayne@68
|
703 redistribution under these terms (or, alternatively, under the terms of the
|
jpayne@68
|
704 ordinary General Public License).
|
jpayne@68
|
705 </p>
|
jpayne@68
|
706 <p> To apply these terms, attach the following notices to the library. It is
|
jpayne@68
|
707 safest to attach them to the start of each source file to most effectively
|
jpayne@68
|
708 convey the exclusion of warranty; and each file should have at least the
|
jpayne@68
|
709 “copyright” line and a pointer to where the full notice is found.
|
jpayne@68
|
710 </p>
|
jpayne@68
|
711 <table><tr><td> </td><td><pre class="smallexample"><var>one line to give the library's name and an idea of what it does.</var>
|
jpayne@68
|
712 Copyright (C) <var>year</var> <var>name of author</var>
|
jpayne@68
|
713
|
jpayne@68
|
714 This library is free software; you can redistribute it and/or modify it
|
jpayne@68
|
715 under the terms of the GNU Lesser General Public License as published by
|
jpayne@68
|
716 the Free Software Foundation; either version 2.1 of the License, or (at
|
jpayne@68
|
717 your option) any later version.
|
jpayne@68
|
718
|
jpayne@68
|
719 This library is distributed in the hope that it will be useful, but
|
jpayne@68
|
720 WITHOUT ANY WARRANTY; without even the implied warranty of
|
jpayne@68
|
721 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
jpayne@68
|
722 Lesser General Public License for more details.
|
jpayne@68
|
723
|
jpayne@68
|
724 You should have received a copy of the GNU Lesser General Public
|
jpayne@68
|
725 License along with this library; if not, write to the Free Software
|
jpayne@68
|
726 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
jpayne@68
|
727 USA.
|
jpayne@68
|
728 </pre></td></tr></table>
|
jpayne@68
|
729
|
jpayne@68
|
730 <p>Also add information on how to contact you by electronic and paper mail.
|
jpayne@68
|
731 </p>
|
jpayne@68
|
732 <p>You should also get your employer (if you work as a programmer) or your
|
jpayne@68
|
733 school, if any, to sign a “copyright disclaimer” for the library, if
|
jpayne@68
|
734 necessary. Here is a sample; alter the names:
|
jpayne@68
|
735 </p>
|
jpayne@68
|
736 <table><tr><td> </td><td><pre class="smallexample">Yoyodyne, Inc., hereby disclaims all copyright interest in the library
|
jpayne@68
|
737 `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
jpayne@68
|
738
|
jpayne@68
|
739 <var>signature of Ty Coon</var>, 1 April 1990
|
jpayne@68
|
740 Ty Coon, President of Vice
|
jpayne@68
|
741 </pre></td></tr></table>
|
jpayne@68
|
742
|
jpayne@68
|
743 <p>That's all there is to it!
|
jpayne@68
|
744
|
jpayne@68
|
745 </p>
|
jpayne@68
|
746 <a name="GNU-GPL"></a>
|
jpayne@68
|
747 <a name="SEC10"></a>
|
jpayne@68
|
748 <h2 class="appendixsec"> <a href="#TOC6">A.2 GNU GENERAL PUBLIC LICENSE</a> </h2>
|
jpayne@68
|
749 <p align="center"> Version 2, June 1991
|
jpayne@68
|
750 </p>
|
jpayne@68
|
751
|
jpayne@68
|
752 <table><tr><td> </td><td><pre class="display">Copyright © 1989, 1991 Free Software Foundation, Inc.
|
jpayne@68
|
753 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
jpayne@68
|
754
|
jpayne@68
|
755 Everyone is permitted to copy and distribute verbatim copies
|
jpayne@68
|
756 of this license document, but changing it is not allowed.
|
jpayne@68
|
757 </pre></td></tr></table>
|
jpayne@68
|
758
|
jpayne@68
|
759 <a name="SEC11"></a>
|
jpayne@68
|
760 <h2 class="heading"> Preamble </h2>
|
jpayne@68
|
761
|
jpayne@68
|
762 <p> The licenses for most software are designed to take away your
|
jpayne@68
|
763 freedom to share and change it. By contrast, the GNU General Public
|
jpayne@68
|
764 License is intended to guarantee your freedom to share and change free
|
jpayne@68
|
765 software—to make sure the software is free for all its users. This
|
jpayne@68
|
766 General Public License applies to most of the Free Software
|
jpayne@68
|
767 Foundation's software and to any other program whose authors commit to
|
jpayne@68
|
768 using it. (Some other Free Software Foundation software is covered by
|
jpayne@68
|
769 the GNU Lesser General Public License instead.) You can apply it to
|
jpayne@68
|
770 your programs, too.
|
jpayne@68
|
771 </p>
|
jpayne@68
|
772 <p> When we speak of free software, we are referring to freedom, not
|
jpayne@68
|
773 price. Our General Public Licenses are designed to make sure that you
|
jpayne@68
|
774 have the freedom to distribute copies of free software (and charge for
|
jpayne@68
|
775 this service if you wish), that you receive source code or can get it
|
jpayne@68
|
776 if you want it, that you can change the software or use pieces of it
|
jpayne@68
|
777 in new free programs; and that you know you can do these things.
|
jpayne@68
|
778 </p>
|
jpayne@68
|
779 <p> To protect your rights, we need to make restrictions that forbid
|
jpayne@68
|
780 anyone to deny you these rights or to ask you to surrender the rights.
|
jpayne@68
|
781 These restrictions translate to certain responsibilities for you if you
|
jpayne@68
|
782 distribute copies of the software, or if you modify it.
|
jpayne@68
|
783 </p>
|
jpayne@68
|
784 <p> For example, if you distribute copies of such a program, whether
|
jpayne@68
|
785 gratis or for a fee, you must give the recipients all the rights that
|
jpayne@68
|
786 you have. You must make sure that they, too, receive or can get the
|
jpayne@68
|
787 source code. And you must show them these terms so they know their
|
jpayne@68
|
788 rights.
|
jpayne@68
|
789 </p>
|
jpayne@68
|
790 <p> We protect your rights with two steps: (1) copyright the software, and
|
jpayne@68
|
791 (2) offer you this license which gives you legal permission to copy,
|
jpayne@68
|
792 distribute and/or modify the software.
|
jpayne@68
|
793 </p>
|
jpayne@68
|
794 <p> Also, for each author's protection and ours, we want to make certain
|
jpayne@68
|
795 that everyone understands that there is no warranty for this free
|
jpayne@68
|
796 software. If the software is modified by someone else and passed on, we
|
jpayne@68
|
797 want its recipients to know that what they have is not the original, so
|
jpayne@68
|
798 that any problems introduced by others will not reflect on the original
|
jpayne@68
|
799 authors' reputations.
|
jpayne@68
|
800 </p>
|
jpayne@68
|
801 <p> Finally, any free program is threatened constantly by software
|
jpayne@68
|
802 patents. We wish to avoid the danger that redistributors of a free
|
jpayne@68
|
803 program will individually obtain patent licenses, in effect making the
|
jpayne@68
|
804 program proprietary. To prevent this, we have made it clear that any
|
jpayne@68
|
805 patent must be licensed for everyone's free use or not licensed at all.
|
jpayne@68
|
806 </p>
|
jpayne@68
|
807 <p> The precise terms and conditions for copying, distribution and
|
jpayne@68
|
808 modification follow.
|
jpayne@68
|
809 </p>
|
jpayne@68
|
810 <a name="SEC12"></a>
|
jpayne@68
|
811 <h2 class="heading"> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION </h2>
|
jpayne@68
|
812
|
jpayne@68
|
813 <ol>
|
jpayne@68
|
814 <li>
|
jpayne@68
|
815 This License applies to any program or other work which contains
|
jpayne@68
|
816 a notice placed by the copyright holder saying it may be distributed
|
jpayne@68
|
817 under the terms of this General Public License. The “Program”, below,
|
jpayne@68
|
818 refers to any such program or work, and a “work based on the Program”
|
jpayne@68
|
819 means either the Program or any derivative work under copyright law:
|
jpayne@68
|
820 that is to say, a work containing the Program or a portion of it,
|
jpayne@68
|
821 either verbatim or with modifications and/or translated into another
|
jpayne@68
|
822 language. (Hereinafter, translation is included without limitation in
|
jpayne@68
|
823 the term “modification”.) Each licensee is addressed as “you”.
|
jpayne@68
|
824
|
jpayne@68
|
825 <p>Activities other than copying, distribution and modification are not
|
jpayne@68
|
826 covered by this License; they are outside its scope. The act of
|
jpayne@68
|
827 running the Program is not restricted, and the output from the Program
|
jpayne@68
|
828 is covered only if its contents constitute a work based on the
|
jpayne@68
|
829 Program (independent of having been made by running the Program).
|
jpayne@68
|
830 Whether that is true depends on what the Program does.
|
jpayne@68
|
831 </p>
|
jpayne@68
|
832 </li><li>
|
jpayne@68
|
833 You may copy and distribute verbatim copies of the Program's
|
jpayne@68
|
834 source code as you receive it, in any medium, provided that you
|
jpayne@68
|
835 conspicuously and appropriately publish on each copy an appropriate
|
jpayne@68
|
836 copyright notice and disclaimer of warranty; keep intact all the
|
jpayne@68
|
837 notices that refer to this License and to the absence of any warranty;
|
jpayne@68
|
838 and give any other recipients of the Program a copy of this License
|
jpayne@68
|
839 along with the Program.
|
jpayne@68
|
840
|
jpayne@68
|
841 <p>You may charge a fee for the physical act of transferring a copy, and
|
jpayne@68
|
842 you may at your option offer warranty protection in exchange for a fee.
|
jpayne@68
|
843 </p>
|
jpayne@68
|
844 </li><li>
|
jpayne@68
|
845 You may modify your copy or copies of the Program or any portion
|
jpayne@68
|
846 of it, thus forming a work based on the Program, and copy and
|
jpayne@68
|
847 distribute such modifications or work under the terms of Section 1
|
jpayne@68
|
848 above, provided that you also meet all of these conditions:
|
jpayne@68
|
849
|
jpayne@68
|
850 <ol>
|
jpayne@68
|
851 <li>
|
jpayne@68
|
852 You must cause the modified files to carry prominent notices
|
jpayne@68
|
853 stating that you changed the files and the date of any change.
|
jpayne@68
|
854
|
jpayne@68
|
855 </li><li>
|
jpayne@68
|
856 You must cause any work that you distribute or publish, that in
|
jpayne@68
|
857 whole or in part contains or is derived from the Program or any
|
jpayne@68
|
858 part thereof, to be licensed as a whole at no charge to all third
|
jpayne@68
|
859 parties under the terms of this License.
|
jpayne@68
|
860
|
jpayne@68
|
861 </li><li>
|
jpayne@68
|
862 If the modified program normally reads commands interactively
|
jpayne@68
|
863 when run, you must cause it, when started running for such
|
jpayne@68
|
864 interactive use in the most ordinary way, to print or display an
|
jpayne@68
|
865 announcement including an appropriate copyright notice and a
|
jpayne@68
|
866 notice that there is no warranty (or else, saying that you provide
|
jpayne@68
|
867 a warranty) and that users may redistribute the program under
|
jpayne@68
|
868 these conditions, and telling the user how to view a copy of this
|
jpayne@68
|
869 License. (Exception: if the Program itself is interactive but
|
jpayne@68
|
870 does not normally print such an announcement, your work based on
|
jpayne@68
|
871 the Program is not required to print an announcement.)
|
jpayne@68
|
872 </li></ol>
|
jpayne@68
|
873
|
jpayne@68
|
874 <p>These requirements apply to the modified work as a whole. If
|
jpayne@68
|
875 identifiable sections of that work are not derived from the Program,
|
jpayne@68
|
876 and can be reasonably considered independent and separate works in
|
jpayne@68
|
877 themselves, then this License, and its terms, do not apply to those
|
jpayne@68
|
878 sections when you distribute them as separate works. But when you
|
jpayne@68
|
879 distribute the same sections as part of a whole which is a work based
|
jpayne@68
|
880 on the Program, the distribution of the whole must be on the terms of
|
jpayne@68
|
881 this License, whose permissions for other licensees extend to the
|
jpayne@68
|
882 entire whole, and thus to each and every part regardless of who wrote it.
|
jpayne@68
|
883 </p>
|
jpayne@68
|
884 <p>Thus, it is not the intent of this section to claim rights or contest
|
jpayne@68
|
885 your rights to work written entirely by you; rather, the intent is to
|
jpayne@68
|
886 exercise the right to control the distribution of derivative or
|
jpayne@68
|
887 collective works based on the Program.
|
jpayne@68
|
888 </p>
|
jpayne@68
|
889 <p>In addition, mere aggregation of another work not based on the Program
|
jpayne@68
|
890 with the Program (or with a work based on the Program) on a volume of
|
jpayne@68
|
891 a storage or distribution medium does not bring the other work under
|
jpayne@68
|
892 the scope of this License.
|
jpayne@68
|
893 </p>
|
jpayne@68
|
894 </li><li>
|
jpayne@68
|
895 You may copy and distribute the Program (or a work based on it,
|
jpayne@68
|
896 under Section 2) in object code or executable form under the terms of
|
jpayne@68
|
897 Sections 1 and 2 above provided that you also do one of the following:
|
jpayne@68
|
898
|
jpayne@68
|
899 <ol>
|
jpayne@68
|
900 <li>
|
jpayne@68
|
901 Accompany it with the complete corresponding machine-readable
|
jpayne@68
|
902 source code, which must be distributed under the terms of Sections
|
jpayne@68
|
903 1 and 2 above on a medium customarily used for software interchange; or,
|
jpayne@68
|
904
|
jpayne@68
|
905 </li><li>
|
jpayne@68
|
906 Accompany it with a written offer, valid for at least three
|
jpayne@68
|
907 years, to give any third party, for a charge no more than your
|
jpayne@68
|
908 cost of physically performing source distribution, a complete
|
jpayne@68
|
909 machine-readable copy of the corresponding source code, to be
|
jpayne@68
|
910 distributed under the terms of Sections 1 and 2 above on a medium
|
jpayne@68
|
911 customarily used for software interchange; or,
|
jpayne@68
|
912
|
jpayne@68
|
913 </li><li>
|
jpayne@68
|
914 Accompany it with the information you received as to the offer
|
jpayne@68
|
915 to distribute corresponding source code. (This alternative is
|
jpayne@68
|
916 allowed only for noncommercial distribution and only if you
|
jpayne@68
|
917 received the program in object code or executable form with such
|
jpayne@68
|
918 an offer, in accord with Subsection b above.)
|
jpayne@68
|
919 </li></ol>
|
jpayne@68
|
920
|
jpayne@68
|
921 <p>The source code for a work means the preferred form of the work for
|
jpayne@68
|
922 making modifications to it. For an executable work, complete source
|
jpayne@68
|
923 code means all the source code for all modules it contains, plus any
|
jpayne@68
|
924 associated interface definition files, plus the scripts used to
|
jpayne@68
|
925 control compilation and installation of the executable. However, as a
|
jpayne@68
|
926 special exception, the source code distributed need not include
|
jpayne@68
|
927 anything that is normally distributed (in either source or binary
|
jpayne@68
|
928 form) with the major components (compiler, kernel, and so on) of the
|
jpayne@68
|
929 operating system on which the executable runs, unless that component
|
jpayne@68
|
930 itself accompanies the executable.
|
jpayne@68
|
931 </p>
|
jpayne@68
|
932 <p>If distribution of executable or object code is made by offering
|
jpayne@68
|
933 access to copy from a designated place, then offering equivalent
|
jpayne@68
|
934 access to copy the source code from the same place counts as
|
jpayne@68
|
935 distribution of the source code, even though third parties are not
|
jpayne@68
|
936 compelled to copy the source along with the object code.
|
jpayne@68
|
937 </p>
|
jpayne@68
|
938 </li><li>
|
jpayne@68
|
939 You may not copy, modify, sublicense, or distribute the Program
|
jpayne@68
|
940 except as expressly provided under this License. Any attempt
|
jpayne@68
|
941 otherwise to copy, modify, sublicense or distribute the Program is
|
jpayne@68
|
942 void, and will automatically terminate your rights under this License.
|
jpayne@68
|
943 However, parties who have received copies, or rights, from you under
|
jpayne@68
|
944 this License will not have their licenses terminated so long as such
|
jpayne@68
|
945 parties remain in full compliance.
|
jpayne@68
|
946
|
jpayne@68
|
947 </li><li>
|
jpayne@68
|
948 You are not required to accept this License, since you have not
|
jpayne@68
|
949 signed it. However, nothing else grants you permission to modify or
|
jpayne@68
|
950 distribute the Program or its derivative works. These actions are
|
jpayne@68
|
951 prohibited by law if you do not accept this License. Therefore, by
|
jpayne@68
|
952 modifying or distributing the Program (or any work based on the
|
jpayne@68
|
953 Program), you indicate your acceptance of this License to do so, and
|
jpayne@68
|
954 all its terms and conditions for copying, distributing or modifying
|
jpayne@68
|
955 the Program or works based on it.
|
jpayne@68
|
956
|
jpayne@68
|
957 </li><li>
|
jpayne@68
|
958 Each time you redistribute the Program (or any work based on the
|
jpayne@68
|
959 Program), the recipient automatically receives a license from the
|
jpayne@68
|
960 original licensor to copy, distribute or modify the Program subject to
|
jpayne@68
|
961 these terms and conditions. You may not impose any further
|
jpayne@68
|
962 restrictions on the recipients' exercise of the rights granted herein.
|
jpayne@68
|
963 You are not responsible for enforcing compliance by third parties to
|
jpayne@68
|
964 this License.
|
jpayne@68
|
965
|
jpayne@68
|
966 </li><li>
|
jpayne@68
|
967 If, as a consequence of a court judgment or allegation of patent
|
jpayne@68
|
968 infringement or for any other reason (not limited to patent issues),
|
jpayne@68
|
969 conditions are imposed on you (whether by court order, agreement or
|
jpayne@68
|
970 otherwise) that contradict the conditions of this License, they do not
|
jpayne@68
|
971 excuse you from the conditions of this License. If you cannot
|
jpayne@68
|
972 distribute so as to satisfy simultaneously your obligations under this
|
jpayne@68
|
973 License and any other pertinent obligations, then as a consequence you
|
jpayne@68
|
974 may not distribute the Program at all. For example, if a patent
|
jpayne@68
|
975 license would not permit royalty-free redistribution of the Program by
|
jpayne@68
|
976 all those who receive copies directly or indirectly through you, then
|
jpayne@68
|
977 the only way you could satisfy both it and this License would be to
|
jpayne@68
|
978 refrain entirely from distribution of the Program.
|
jpayne@68
|
979
|
jpayne@68
|
980 <p>If any portion of this section is held invalid or unenforceable under
|
jpayne@68
|
981 any particular circumstance, the balance of the section is intended to
|
jpayne@68
|
982 apply and the section as a whole is intended to apply in other
|
jpayne@68
|
983 circumstances.
|
jpayne@68
|
984 </p>
|
jpayne@68
|
985 <p>It is not the purpose of this section to induce you to infringe any
|
jpayne@68
|
986 patents or other property right claims or to contest validity of any
|
jpayne@68
|
987 such claims; this section has the sole purpose of protecting the
|
jpayne@68
|
988 integrity of the free software distribution system, which is
|
jpayne@68
|
989 implemented by public license practices. Many people have made
|
jpayne@68
|
990 generous contributions to the wide range of software distributed
|
jpayne@68
|
991 through that system in reliance on consistent application of that
|
jpayne@68
|
992 system; it is up to the author/donor to decide if he or she is willing
|
jpayne@68
|
993 to distribute software through any other system and a licensee cannot
|
jpayne@68
|
994 impose that choice.
|
jpayne@68
|
995 </p>
|
jpayne@68
|
996 <p>This section is intended to make thoroughly clear what is believed to
|
jpayne@68
|
997 be a consequence of the rest of this License.
|
jpayne@68
|
998 </p>
|
jpayne@68
|
999 </li><li>
|
jpayne@68
|
1000 If the distribution and/or use of the Program is restricted in
|
jpayne@68
|
1001 certain countries either by patents or by copyrighted interfaces, the
|
jpayne@68
|
1002 original copyright holder who places the Program under this License
|
jpayne@68
|
1003 may add an explicit geographical distribution limitation excluding
|
jpayne@68
|
1004 those countries, so that distribution is permitted only in or among
|
jpayne@68
|
1005 countries not thus excluded. In such case, this License incorporates
|
jpayne@68
|
1006 the limitation as if written in the body of this License.
|
jpayne@68
|
1007
|
jpayne@68
|
1008 </li><li>
|
jpayne@68
|
1009 The Free Software Foundation may publish revised and/or new versions
|
jpayne@68
|
1010 of the General Public License from time to time. Such new versions will
|
jpayne@68
|
1011 be similar in spirit to the present version, but may differ in detail to
|
jpayne@68
|
1012 address new problems or concerns.
|
jpayne@68
|
1013
|
jpayne@68
|
1014 <p>Each version is given a distinguishing version number. If the Program
|
jpayne@68
|
1015 specifies a version number of this License which applies to it and “any
|
jpayne@68
|
1016 later version”, you have the option of following the terms and conditions
|
jpayne@68
|
1017 either of that version or of any later version published by the Free
|
jpayne@68
|
1018 Software Foundation. If the Program does not specify a version number of
|
jpayne@68
|
1019 this License, you may choose any version ever published by the Free Software
|
jpayne@68
|
1020 Foundation.
|
jpayne@68
|
1021 </p>
|
jpayne@68
|
1022 </li><li>
|
jpayne@68
|
1023 If you wish to incorporate parts of the Program into other free
|
jpayne@68
|
1024 programs whose distribution conditions are different, write to the author
|
jpayne@68
|
1025 to ask for permission. For software which is copyrighted by the Free
|
jpayne@68
|
1026 Software Foundation, write to the Free Software Foundation; we sometimes
|
jpayne@68
|
1027 make exceptions for this. Our decision will be guided by the two goals
|
jpayne@68
|
1028 of preserving the free status of all derivatives of our free software and
|
jpayne@68
|
1029 of promoting the sharing and reuse of software generally.
|
jpayne@68
|
1030
|
jpayne@68
|
1031
|
jpayne@68
|
1032 </li><li>
|
jpayne@68
|
1033 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
jpayne@68
|
1034 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
jpayne@68
|
1035 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
jpayne@68
|
1036 PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
jpayne@68
|
1037 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
jpayne@68
|
1038 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
jpayne@68
|
1039 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
jpayne@68
|
1040 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
jpayne@68
|
1041 REPAIR OR CORRECTION.
|
jpayne@68
|
1042
|
jpayne@68
|
1043 </li><li>
|
jpayne@68
|
1044 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
jpayne@68
|
1045 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
jpayne@68
|
1046 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
jpayne@68
|
1047 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
jpayne@68
|
1048 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
jpayne@68
|
1049 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
jpayne@68
|
1050 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
jpayne@68
|
1051 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
jpayne@68
|
1052 POSSIBILITY OF SUCH DAMAGES.
|
jpayne@68
|
1053 </li></ol>
|
jpayne@68
|
1054
|
jpayne@68
|
1055
|
jpayne@68
|
1056
|
jpayne@68
|
1057 <a name="SEC13"></a>
|
jpayne@68
|
1058 <h2 class="heading"> Appendix: How to Apply These Terms to Your New Programs </h2>
|
jpayne@68
|
1059
|
jpayne@68
|
1060 <p> If you develop a new program, and you want it to be of the greatest
|
jpayne@68
|
1061 possible use to the public, the best way to achieve this is to make it
|
jpayne@68
|
1062 free software which everyone can redistribute and change under these terms.
|
jpayne@68
|
1063 </p>
|
jpayne@68
|
1064 <p> To do so, attach the following notices to the program. It is safest
|
jpayne@68
|
1065 to attach them to the start of each source file to most effectively
|
jpayne@68
|
1066 convey the exclusion of warranty; and each file should have at least
|
jpayne@68
|
1067 the “copyright” line and a pointer to where the full notice is found.
|
jpayne@68
|
1068 </p>
|
jpayne@68
|
1069 <table><tr><td> </td><td><pre class="smallexample"><var>one line to give the program's name and a brief idea of what it does.</var>
|
jpayne@68
|
1070 Copyright (C) <var>yyyy</var> <var>name of author</var>
|
jpayne@68
|
1071
|
jpayne@68
|
1072 This program is free software; you can redistribute it and/or modify
|
jpayne@68
|
1073 it under the terms of the GNU General Public License as published by
|
jpayne@68
|
1074 the Free Software Foundation; either version 2 of the License, or
|
jpayne@68
|
1075 (at your option) any later version.
|
jpayne@68
|
1076
|
jpayne@68
|
1077 This program is distributed in the hope that it will be useful,
|
jpayne@68
|
1078 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
jpayne@68
|
1079 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
jpayne@68
|
1080 GNU General Public License for more details.
|
jpayne@68
|
1081
|
jpayne@68
|
1082 You should have received a copy of the GNU General Public License
|
jpayne@68
|
1083 along with this program; if not, write to the Free Software
|
jpayne@68
|
1084 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
jpayne@68
|
1085 </pre></td></tr></table>
|
jpayne@68
|
1086
|
jpayne@68
|
1087 <p>Also add information on how to contact you by electronic and paper mail.
|
jpayne@68
|
1088 </p>
|
jpayne@68
|
1089 <p>If the program is interactive, make it output a short notice like this
|
jpayne@68
|
1090 when it starts in an interactive mode:
|
jpayne@68
|
1091 </p>
|
jpayne@68
|
1092 <table><tr><td> </td><td><pre class="smallexample">Gnomovision version 69, Copyright (C) <var>year</var> <var>name of author</var>
|
jpayne@68
|
1093 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
jpayne@68
|
1094 This is free software, and you are welcome to redistribute it
|
jpayne@68
|
1095 under certain conditions; type `show c' for details.
|
jpayne@68
|
1096 </pre></td></tr></table>
|
jpayne@68
|
1097
|
jpayne@68
|
1098 <p>The hypothetical commands ‘<samp>show w</samp>’ and ‘<samp>show c</samp>’ should show
|
jpayne@68
|
1099 the appropriate parts of the General Public License. Of course, the
|
jpayne@68
|
1100 commands you use may be called something other than ‘<samp>show w</samp>’ and
|
jpayne@68
|
1101 ‘<samp>show c</samp>’; they could even be mouse-clicks or menu items—whatever
|
jpayne@68
|
1102 suits your program.
|
jpayne@68
|
1103 </p>
|
jpayne@68
|
1104 <p>You should also get your employer (if you work as a programmer) or your
|
jpayne@68
|
1105 school, if any, to sign a “copyright disclaimer” for the program, if
|
jpayne@68
|
1106 necessary. Here is a sample; alter the names:
|
jpayne@68
|
1107 </p>
|
jpayne@68
|
1108 <table><tr><td> </td><td><pre class="example">Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
jpayne@68
|
1109 `Gnomovision' (which makes passes at compilers) written by James Hacker.
|
jpayne@68
|
1110
|
jpayne@68
|
1111 <var>signature of Ty Coon</var>, 1 April 1989
|
jpayne@68
|
1112 Ty Coon, President of Vice
|
jpayne@68
|
1113 </pre></td></tr></table>
|
jpayne@68
|
1114
|
jpayne@68
|
1115 <p>This General Public License does not permit incorporating your program into
|
jpayne@68
|
1116 proprietary programs. If your program is a subroutine library, you may
|
jpayne@68
|
1117 consider it more useful to permit linking proprietary applications with the
|
jpayne@68
|
1118 library. If this is what you want to do, use the GNU Lesser General
|
jpayne@68
|
1119 Public License instead of this License.
|
jpayne@68
|
1120
|
jpayne@68
|
1121 </p>
|
jpayne@68
|
1122 <a name="GNU-FDL"></a>
|
jpayne@68
|
1123 <a name="SEC14"></a>
|
jpayne@68
|
1124 <h2 class="appendixsec"> <a href="#TOC7">A.3 GNU Free Documentation License</a> </h2>
|
jpayne@68
|
1125 <p align="center"> Version 1.2, November 2002
|
jpayne@68
|
1126 </p>
|
jpayne@68
|
1127
|
jpayne@68
|
1128 <table><tr><td> </td><td><pre class="display">Copyright © 2000,2001,2002 Free Software Foundation, Inc.
|
jpayne@68
|
1129 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
jpayne@68
|
1130
|
jpayne@68
|
1131 Everyone is permitted to copy and distribute verbatim copies
|
jpayne@68
|
1132 of this license document, but changing it is not allowed.
|
jpayne@68
|
1133 </pre></td></tr></table>
|
jpayne@68
|
1134
|
jpayne@68
|
1135 <ol>
|
jpayne@68
|
1136 <li>
|
jpayne@68
|
1137 PREAMBLE
|
jpayne@68
|
1138
|
jpayne@68
|
1139 <p>The purpose of this License is to make a manual, textbook, or other
|
jpayne@68
|
1140 functional and useful document <em>free</em> in the sense of freedom: to
|
jpayne@68
|
1141 assure everyone the effective freedom to copy and redistribute it,
|
jpayne@68
|
1142 with or without modifying it, either commercially or noncommercially.
|
jpayne@68
|
1143 Secondarily, this License preserves for the author and publisher a way
|
jpayne@68
|
1144 to get credit for their work, while not being considered responsible
|
jpayne@68
|
1145 for modifications made by others.
|
jpayne@68
|
1146 </p>
|
jpayne@68
|
1147 <p>This License is a kind of “copyleft”, which means that derivative
|
jpayne@68
|
1148 works of the document must themselves be free in the same sense. It
|
jpayne@68
|
1149 complements the GNU General Public License, which is a copyleft
|
jpayne@68
|
1150 license designed for free software.
|
jpayne@68
|
1151 </p>
|
jpayne@68
|
1152 <p>We have designed this License in order to use it for manuals for free
|
jpayne@68
|
1153 software, because free software needs free documentation: a free
|
jpayne@68
|
1154 program should come with manuals providing the same freedoms that the
|
jpayne@68
|
1155 software does. But this License is not limited to software manuals;
|
jpayne@68
|
1156 it can be used for any textual work, regardless of subject matter or
|
jpayne@68
|
1157 whether it is published as a printed book. We recommend this License
|
jpayne@68
|
1158 principally for works whose purpose is instruction or reference.
|
jpayne@68
|
1159 </p>
|
jpayne@68
|
1160 </li><li>
|
jpayne@68
|
1161 APPLICABILITY AND DEFINITIONS
|
jpayne@68
|
1162
|
jpayne@68
|
1163 <p>This License applies to any manual or other work, in any medium, that
|
jpayne@68
|
1164 contains a notice placed by the copyright holder saying it can be
|
jpayne@68
|
1165 distributed under the terms of this License. Such a notice grants a
|
jpayne@68
|
1166 world-wide, royalty-free license, unlimited in duration, to use that
|
jpayne@68
|
1167 work under the conditions stated herein. The “Document”, below,
|
jpayne@68
|
1168 refers to any such manual or work. Any member of the public is a
|
jpayne@68
|
1169 licensee, and is addressed as “you”. You accept the license if you
|
jpayne@68
|
1170 copy, modify or distribute the work in a way requiring permission
|
jpayne@68
|
1171 under copyright law.
|
jpayne@68
|
1172 </p>
|
jpayne@68
|
1173 <p>A “Modified Version” of the Document means any work containing the
|
jpayne@68
|
1174 Document or a portion of it, either copied verbatim, or with
|
jpayne@68
|
1175 modifications and/or translated into another language.
|
jpayne@68
|
1176 </p>
|
jpayne@68
|
1177 <p>A “Secondary Section” is a named appendix or a front-matter section
|
jpayne@68
|
1178 of the Document that deals exclusively with the relationship of the
|
jpayne@68
|
1179 publishers or authors of the Document to the Document's overall
|
jpayne@68
|
1180 subject (or to related matters) and contains nothing that could fall
|
jpayne@68
|
1181 directly within that overall subject. (Thus, if the Document is in
|
jpayne@68
|
1182 part a textbook of mathematics, a Secondary Section may not explain
|
jpayne@68
|
1183 any mathematics.) The relationship could be a matter of historical
|
jpayne@68
|
1184 connection with the subject or with related matters, or of legal,
|
jpayne@68
|
1185 commercial, philosophical, ethical or political position regarding
|
jpayne@68
|
1186 them.
|
jpayne@68
|
1187 </p>
|
jpayne@68
|
1188 <p>The “Invariant Sections” are certain Secondary Sections whose titles
|
jpayne@68
|
1189 are designated, as being those of Invariant Sections, in the notice
|
jpayne@68
|
1190 that says that the Document is released under this License. If a
|
jpayne@68
|
1191 section does not fit the above definition of Secondary then it is not
|
jpayne@68
|
1192 allowed to be designated as Invariant. The Document may contain zero
|
jpayne@68
|
1193 Invariant Sections. If the Document does not identify any Invariant
|
jpayne@68
|
1194 Sections then there are none.
|
jpayne@68
|
1195 </p>
|
jpayne@68
|
1196 <p>The “Cover Texts” are certain short passages of text that are listed,
|
jpayne@68
|
1197 as Front-Cover Texts or Back-Cover Texts, in the notice that says that
|
jpayne@68
|
1198 the Document is released under this License. A Front-Cover Text may
|
jpayne@68
|
1199 be at most 5 words, and a Back-Cover Text may be at most 25 words.
|
jpayne@68
|
1200 </p>
|
jpayne@68
|
1201 <p>A “Transparent” copy of the Document means a machine-readable copy,
|
jpayne@68
|
1202 represented in a format whose specification is available to the
|
jpayne@68
|
1203 general public, that is suitable for revising the document
|
jpayne@68
|
1204 straightforwardly with generic text editors or (for images composed of
|
jpayne@68
|
1205 pixels) generic paint programs or (for drawings) some widely available
|
jpayne@68
|
1206 drawing editor, and that is suitable for input to text formatters or
|
jpayne@68
|
1207 for automatic translation to a variety of formats suitable for input
|
jpayne@68
|
1208 to text formatters. A copy made in an otherwise Transparent file
|
jpayne@68
|
1209 format whose markup, or absence of markup, has been arranged to thwart
|
jpayne@68
|
1210 or discourage subsequent modification by readers is not Transparent.
|
jpayne@68
|
1211 An image format is not Transparent if used for any substantial amount
|
jpayne@68
|
1212 of text. A copy that is not “Transparent” is called “Opaque”.
|
jpayne@68
|
1213 </p>
|
jpayne@68
|
1214 <p>Examples of suitable formats for Transparent copies include plain
|
jpayne@68
|
1215 <small>ASCII</small> without markup, Texinfo input format, LaTeX input
|
jpayne@68
|
1216 format, <acronym>SGML</acronym> or <acronym>XML</acronym> using a publicly available
|
jpayne@68
|
1217 <acronym>DTD</acronym>, and standard-conforming simple <acronym>HTML</acronym>,
|
jpayne@68
|
1218 PostScript or <acronym>PDF</acronym> designed for human modification. Examples
|
jpayne@68
|
1219 of transparent image formats include <acronym>PNG</acronym>, <acronym>XCF</acronym> and
|
jpayne@68
|
1220 <acronym>JPG</acronym>. Opaque formats include proprietary formats that can be
|
jpayne@68
|
1221 read and edited only by proprietary word processors, <acronym>SGML</acronym> or
|
jpayne@68
|
1222 <acronym>XML</acronym> for which the <acronym>DTD</acronym> and/or processing tools are
|
jpayne@68
|
1223 not generally available, and the machine-generated <acronym>HTML</acronym>,
|
jpayne@68
|
1224 PostScript or <acronym>PDF</acronym> produced by some word processors for
|
jpayne@68
|
1225 output purposes only.
|
jpayne@68
|
1226 </p>
|
jpayne@68
|
1227 <p>The “Title Page” means, for a printed book, the title page itself,
|
jpayne@68
|
1228 plus such following pages as are needed to hold, legibly, the material
|
jpayne@68
|
1229 this License requires to appear in the title page. For works in
|
jpayne@68
|
1230 formats which do not have any title page as such, “Title Page” means
|
jpayne@68
|
1231 the text near the most prominent appearance of the work's title,
|
jpayne@68
|
1232 preceding the beginning of the body of the text.
|
jpayne@68
|
1233 </p>
|
jpayne@68
|
1234 <p>A section “Entitled XYZ” means a named subunit of the Document whose
|
jpayne@68
|
1235 title either is precisely XYZ or contains XYZ in parentheses following
|
jpayne@68
|
1236 text that translates XYZ in another language. (Here XYZ stands for a
|
jpayne@68
|
1237 specific section name mentioned below, such as “Acknowledgements”,
|
jpayne@68
|
1238 “Dedications”, “Endorsements”, or “History”.) To “Preserve the Title”
|
jpayne@68
|
1239 of such a section when you modify the Document means that it remains a
|
jpayne@68
|
1240 section “Entitled XYZ” according to this definition.
|
jpayne@68
|
1241 </p>
|
jpayne@68
|
1242 <p>The Document may include Warranty Disclaimers next to the notice which
|
jpayne@68
|
1243 states that this License applies to the Document. These Warranty
|
jpayne@68
|
1244 Disclaimers are considered to be included by reference in this
|
jpayne@68
|
1245 License, but only as regards disclaiming warranties: any other
|
jpayne@68
|
1246 implication that these Warranty Disclaimers may have is void and has
|
jpayne@68
|
1247 no effect on the meaning of this License.
|
jpayne@68
|
1248 </p>
|
jpayne@68
|
1249 </li><li>
|
jpayne@68
|
1250 VERBATIM COPYING
|
jpayne@68
|
1251
|
jpayne@68
|
1252 <p>You may copy and distribute the Document in any medium, either
|
jpayne@68
|
1253 commercially or noncommercially, provided that this License, the
|
jpayne@68
|
1254 copyright notices, and the license notice saying this License applies
|
jpayne@68
|
1255 to the Document are reproduced in all copies, and that you add no other
|
jpayne@68
|
1256 conditions whatsoever to those of this License. You may not use
|
jpayne@68
|
1257 technical measures to obstruct or control the reading or further
|
jpayne@68
|
1258 copying of the copies you make or distribute. However, you may accept
|
jpayne@68
|
1259 compensation in exchange for copies. If you distribute a large enough
|
jpayne@68
|
1260 number of copies you must also follow the conditions in section 3.
|
jpayne@68
|
1261 </p>
|
jpayne@68
|
1262 <p>You may also lend copies, under the same conditions stated above, and
|
jpayne@68
|
1263 you may publicly display copies.
|
jpayne@68
|
1264 </p>
|
jpayne@68
|
1265 </li><li>
|
jpayne@68
|
1266 COPYING IN QUANTITY
|
jpayne@68
|
1267
|
jpayne@68
|
1268 <p>If you publish printed copies (or copies in media that commonly have
|
jpayne@68
|
1269 printed covers) of the Document, numbering more than 100, and the
|
jpayne@68
|
1270 Document's license notice requires Cover Texts, you must enclose the
|
jpayne@68
|
1271 copies in covers that carry, clearly and legibly, all these Cover
|
jpayne@68
|
1272 Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
|
jpayne@68
|
1273 the back cover. Both covers must also clearly and legibly identify
|
jpayne@68
|
1274 you as the publisher of these copies. The front cover must present
|
jpayne@68
|
1275 the full title with all words of the title equally prominent and
|
jpayne@68
|
1276 visible. You may add other material on the covers in addition.
|
jpayne@68
|
1277 Copying with changes limited to the covers, as long as they preserve
|
jpayne@68
|
1278 the title of the Document and satisfy these conditions, can be treated
|
jpayne@68
|
1279 as verbatim copying in other respects.
|
jpayne@68
|
1280 </p>
|
jpayne@68
|
1281 <p>If the required texts for either cover are too voluminous to fit
|
jpayne@68
|
1282 legibly, you should put the first ones listed (as many as fit
|
jpayne@68
|
1283 reasonably) on the actual cover, and continue the rest onto adjacent
|
jpayne@68
|
1284 pages.
|
jpayne@68
|
1285 </p>
|
jpayne@68
|
1286 <p>If you publish or distribute Opaque copies of the Document numbering
|
jpayne@68
|
1287 more than 100, you must either include a machine-readable Transparent
|
jpayne@68
|
1288 copy along with each Opaque copy, or state in or with each Opaque copy
|
jpayne@68
|
1289 a computer-network location from which the general network-using
|
jpayne@68
|
1290 public has access to download using public-standard network protocols
|
jpayne@68
|
1291 a complete Transparent copy of the Document, free of added material.
|
jpayne@68
|
1292 If you use the latter option, you must take reasonably prudent steps,
|
jpayne@68
|
1293 when you begin distribution of Opaque copies in quantity, to ensure
|
jpayne@68
|
1294 that this Transparent copy will remain thus accessible at the stated
|
jpayne@68
|
1295 location until at least one year after the last time you distribute an
|
jpayne@68
|
1296 Opaque copy (directly or through your agents or retailers) of that
|
jpayne@68
|
1297 edition to the public.
|
jpayne@68
|
1298 </p>
|
jpayne@68
|
1299 <p>It is requested, but not required, that you contact the authors of the
|
jpayne@68
|
1300 Document well before redistributing any large number of copies, to give
|
jpayne@68
|
1301 them a chance to provide you with an updated version of the Document.
|
jpayne@68
|
1302 </p>
|
jpayne@68
|
1303 </li><li>
|
jpayne@68
|
1304 MODIFICATIONS
|
jpayne@68
|
1305
|
jpayne@68
|
1306 <p>You may copy and distribute a Modified Version of the Document under
|
jpayne@68
|
1307 the conditions of sections 2 and 3 above, provided that you release
|
jpayne@68
|
1308 the Modified Version under precisely this License, with the Modified
|
jpayne@68
|
1309 Version filling the role of the Document, thus licensing distribution
|
jpayne@68
|
1310 and modification of the Modified Version to whoever possesses a copy
|
jpayne@68
|
1311 of it. In addition, you must do these things in the Modified Version:
|
jpayne@68
|
1312 </p>
|
jpayne@68
|
1313 <ol>
|
jpayne@68
|
1314 <li>
|
jpayne@68
|
1315 Use in the Title Page (and on the covers, if any) a title distinct
|
jpayne@68
|
1316 from that of the Document, and from those of previous versions
|
jpayne@68
|
1317 (which should, if there were any, be listed in the History section
|
jpayne@68
|
1318 of the Document). You may use the same title as a previous version
|
jpayne@68
|
1319 if the original publisher of that version gives permission.
|
jpayne@68
|
1320
|
jpayne@68
|
1321 </li><li>
|
jpayne@68
|
1322 List on the Title Page, as authors, one or more persons or entities
|
jpayne@68
|
1323 responsible for authorship of the modifications in the Modified
|
jpayne@68
|
1324 Version, together with at least five of the principal authors of the
|
jpayne@68
|
1325 Document (all of its principal authors, if it has fewer than five),
|
jpayne@68
|
1326 unless they release you from this requirement.
|
jpayne@68
|
1327
|
jpayne@68
|
1328 </li><li>
|
jpayne@68
|
1329 State on the Title page the name of the publisher of the
|
jpayne@68
|
1330 Modified Version, as the publisher.
|
jpayne@68
|
1331
|
jpayne@68
|
1332 </li><li>
|
jpayne@68
|
1333 Preserve all the copyright notices of the Document.
|
jpayne@68
|
1334
|
jpayne@68
|
1335 </li><li>
|
jpayne@68
|
1336 Add an appropriate copyright notice for your modifications
|
jpayne@68
|
1337 adjacent to the other copyright notices.
|
jpayne@68
|
1338
|
jpayne@68
|
1339 </li><li>
|
jpayne@68
|
1340 Include, immediately after the copyright notices, a license notice
|
jpayne@68
|
1341 giving the public permission to use the Modified Version under the
|
jpayne@68
|
1342 terms of this License, in the form shown in the Addendum below.
|
jpayne@68
|
1343
|
jpayne@68
|
1344 </li><li>
|
jpayne@68
|
1345 Preserve in that license notice the full lists of Invariant Sections
|
jpayne@68
|
1346 and required Cover Texts given in the Document's license notice.
|
jpayne@68
|
1347
|
jpayne@68
|
1348 </li><li>
|
jpayne@68
|
1349 Include an unaltered copy of this License.
|
jpayne@68
|
1350
|
jpayne@68
|
1351 </li><li>
|
jpayne@68
|
1352 Preserve the section Entitled “History”, Preserve its Title, and add
|
jpayne@68
|
1353 to it an item stating at least the title, year, new authors, and
|
jpayne@68
|
1354 publisher of the Modified Version as given on the Title Page. If
|
jpayne@68
|
1355 there is no section Entitled “History” in the Document, create one
|
jpayne@68
|
1356 stating the title, year, authors, and publisher of the Document as
|
jpayne@68
|
1357 given on its Title Page, then add an item describing the Modified
|
jpayne@68
|
1358 Version as stated in the previous sentence.
|
jpayne@68
|
1359
|
jpayne@68
|
1360 </li><li>
|
jpayne@68
|
1361 Preserve the network location, if any, given in the Document for
|
jpayne@68
|
1362 public access to a Transparent copy of the Document, and likewise
|
jpayne@68
|
1363 the network locations given in the Document for previous versions
|
jpayne@68
|
1364 it was based on. These may be placed in the “History” section.
|
jpayne@68
|
1365 You may omit a network location for a work that was published at
|
jpayne@68
|
1366 least four years before the Document itself, or if the original
|
jpayne@68
|
1367 publisher of the version it refers to gives permission.
|
jpayne@68
|
1368
|
jpayne@68
|
1369 </li><li>
|
jpayne@68
|
1370 For any section Entitled “Acknowledgements” or “Dedications”, Preserve
|
jpayne@68
|
1371 the Title of the section, and preserve in the section all the
|
jpayne@68
|
1372 substance and tone of each of the contributor acknowledgements and/or
|
jpayne@68
|
1373 dedications given therein.
|
jpayne@68
|
1374
|
jpayne@68
|
1375 </li><li>
|
jpayne@68
|
1376 Preserve all the Invariant Sections of the Document,
|
jpayne@68
|
1377 unaltered in their text and in their titles. Section numbers
|
jpayne@68
|
1378 or the equivalent are not considered part of the section titles.
|
jpayne@68
|
1379
|
jpayne@68
|
1380 </li><li>
|
jpayne@68
|
1381 Delete any section Entitled “Endorsements”. Such a section
|
jpayne@68
|
1382 may not be included in the Modified Version.
|
jpayne@68
|
1383
|
jpayne@68
|
1384 </li><li>
|
jpayne@68
|
1385 Do not retitle any existing section to be Entitled “Endorsements” or
|
jpayne@68
|
1386 to conflict in title with any Invariant Section.
|
jpayne@68
|
1387
|
jpayne@68
|
1388 </li><li>
|
jpayne@68
|
1389 Preserve any Warranty Disclaimers.
|
jpayne@68
|
1390 </li></ol>
|
jpayne@68
|
1391
|
jpayne@68
|
1392 <p>If the Modified Version includes new front-matter sections or
|
jpayne@68
|
1393 appendices that qualify as Secondary Sections and contain no material
|
jpayne@68
|
1394 copied from the Document, you may at your option designate some or all
|
jpayne@68
|
1395 of these sections as invariant. To do this, add their titles to the
|
jpayne@68
|
1396 list of Invariant Sections in the Modified Version's license notice.
|
jpayne@68
|
1397 These titles must be distinct from any other section titles.
|
jpayne@68
|
1398 </p>
|
jpayne@68
|
1399 <p>You may add a section Entitled “Endorsements”, provided it contains
|
jpayne@68
|
1400 nothing but endorsements of your Modified Version by various
|
jpayne@68
|
1401 parties—for example, statements of peer review or that the text has
|
jpayne@68
|
1402 been approved by an organization as the authoritative definition of a
|
jpayne@68
|
1403 standard.
|
jpayne@68
|
1404 </p>
|
jpayne@68
|
1405 <p>You may add a passage of up to five words as a Front-Cover Text, and a
|
jpayne@68
|
1406 passage of up to 25 words as a Back-Cover Text, to the end of the list
|
jpayne@68
|
1407 of Cover Texts in the Modified Version. Only one passage of
|
jpayne@68
|
1408 Front-Cover Text and one of Back-Cover Text may be added by (or
|
jpayne@68
|
1409 through arrangements made by) any one entity. If the Document already
|
jpayne@68
|
1410 includes a cover text for the same cover, previously added by you or
|
jpayne@68
|
1411 by arrangement made by the same entity you are acting on behalf of,
|
jpayne@68
|
1412 you may not add another; but you may replace the old one, on explicit
|
jpayne@68
|
1413 permission from the previous publisher that added the old one.
|
jpayne@68
|
1414 </p>
|
jpayne@68
|
1415 <p>The author(s) and publisher(s) of the Document do not by this License
|
jpayne@68
|
1416 give permission to use their names for publicity for or to assert or
|
jpayne@68
|
1417 imply endorsement of any Modified Version.
|
jpayne@68
|
1418 </p>
|
jpayne@68
|
1419 </li><li>
|
jpayne@68
|
1420 COMBINING DOCUMENTS
|
jpayne@68
|
1421
|
jpayne@68
|
1422 <p>You may combine the Document with other documents released under this
|
jpayne@68
|
1423 License, under the terms defined in section 4 above for modified
|
jpayne@68
|
1424 versions, provided that you include in the combination all of the
|
jpayne@68
|
1425 Invariant Sections of all of the original documents, unmodified, and
|
jpayne@68
|
1426 list them all as Invariant Sections of your combined work in its
|
jpayne@68
|
1427 license notice, and that you preserve all their Warranty Disclaimers.
|
jpayne@68
|
1428 </p>
|
jpayne@68
|
1429 <p>The combined work need only contain one copy of this License, and
|
jpayne@68
|
1430 multiple identical Invariant Sections may be replaced with a single
|
jpayne@68
|
1431 copy. If there are multiple Invariant Sections with the same name but
|
jpayne@68
|
1432 different contents, make the title of each such section unique by
|
jpayne@68
|
1433 adding at the end of it, in parentheses, the name of the original
|
jpayne@68
|
1434 author or publisher of that section if known, or else a unique number.
|
jpayne@68
|
1435 Make the same adjustment to the section titles in the list of
|
jpayne@68
|
1436 Invariant Sections in the license notice of the combined work.
|
jpayne@68
|
1437 </p>
|
jpayne@68
|
1438 <p>In the combination, you must combine any sections Entitled “History”
|
jpayne@68
|
1439 in the various original documents, forming one section Entitled
|
jpayne@68
|
1440 “History”; likewise combine any sections Entitled “Acknowledgements”,
|
jpayne@68
|
1441 and any sections Entitled “Dedications”. You must delete all
|
jpayne@68
|
1442 sections Entitled “Endorsements.”
|
jpayne@68
|
1443 </p>
|
jpayne@68
|
1444 </li><li>
|
jpayne@68
|
1445 COLLECTIONS OF DOCUMENTS
|
jpayne@68
|
1446
|
jpayne@68
|
1447 <p>You may make a collection consisting of the Document and other documents
|
jpayne@68
|
1448 released under this License, and replace the individual copies of this
|
jpayne@68
|
1449 License in the various documents with a single copy that is included in
|
jpayne@68
|
1450 the collection, provided that you follow the rules of this License for
|
jpayne@68
|
1451 verbatim copying of each of the documents in all other respects.
|
jpayne@68
|
1452 </p>
|
jpayne@68
|
1453 <p>You may extract a single document from such a collection, and distribute
|
jpayne@68
|
1454 it individually under this License, provided you insert a copy of this
|
jpayne@68
|
1455 License into the extracted document, and follow this License in all
|
jpayne@68
|
1456 other respects regarding verbatim copying of that document.
|
jpayne@68
|
1457 </p>
|
jpayne@68
|
1458 </li><li>
|
jpayne@68
|
1459 AGGREGATION WITH INDEPENDENT WORKS
|
jpayne@68
|
1460
|
jpayne@68
|
1461 <p>A compilation of the Document or its derivatives with other separate
|
jpayne@68
|
1462 and independent documents or works, in or on a volume of a storage or
|
jpayne@68
|
1463 distribution medium, is called an “aggregate” if the copyright
|
jpayne@68
|
1464 resulting from the compilation is not used to limit the legal rights
|
jpayne@68
|
1465 of the compilation's users beyond what the individual works permit.
|
jpayne@68
|
1466 When the Document is included in an aggregate, this License does not
|
jpayne@68
|
1467 apply to the other works in the aggregate which are not themselves
|
jpayne@68
|
1468 derivative works of the Document.
|
jpayne@68
|
1469 </p>
|
jpayne@68
|
1470 <p>If the Cover Text requirement of section 3 is applicable to these
|
jpayne@68
|
1471 copies of the Document, then if the Document is less than one half of
|
jpayne@68
|
1472 the entire aggregate, the Document's Cover Texts may be placed on
|
jpayne@68
|
1473 covers that bracket the Document within the aggregate, or the
|
jpayne@68
|
1474 electronic equivalent of covers if the Document is in electronic form.
|
jpayne@68
|
1475 Otherwise they must appear on printed covers that bracket the whole
|
jpayne@68
|
1476 aggregate.
|
jpayne@68
|
1477 </p>
|
jpayne@68
|
1478 </li><li>
|
jpayne@68
|
1479 TRANSLATION
|
jpayne@68
|
1480
|
jpayne@68
|
1481 <p>Translation is considered a kind of modification, so you may
|
jpayne@68
|
1482 distribute translations of the Document under the terms of section 4.
|
jpayne@68
|
1483 Replacing Invariant Sections with translations requires special
|
jpayne@68
|
1484 permission from their copyright holders, but you may include
|
jpayne@68
|
1485 translations of some or all Invariant Sections in addition to the
|
jpayne@68
|
1486 original versions of these Invariant Sections. You may include a
|
jpayne@68
|
1487 translation of this License, and all the license notices in the
|
jpayne@68
|
1488 Document, and any Warranty Disclaimers, provided that you also include
|
jpayne@68
|
1489 the original English version of this License and the original versions
|
jpayne@68
|
1490 of those notices and disclaimers. In case of a disagreement between
|
jpayne@68
|
1491 the translation and the original version of this License or a notice
|
jpayne@68
|
1492 or disclaimer, the original version will prevail.
|
jpayne@68
|
1493 </p>
|
jpayne@68
|
1494 <p>If a section in the Document is Entitled “Acknowledgements”,
|
jpayne@68
|
1495 “Dedications”, or “History”, the requirement (section 4) to Preserve
|
jpayne@68
|
1496 its Title (section 1) will typically require changing the actual
|
jpayne@68
|
1497 title.
|
jpayne@68
|
1498 </p>
|
jpayne@68
|
1499 </li><li>
|
jpayne@68
|
1500 TERMINATION
|
jpayne@68
|
1501
|
jpayne@68
|
1502 <p>You may not copy, modify, sublicense, or distribute the Document except
|
jpayne@68
|
1503 as expressly provided for under this License. Any other attempt to
|
jpayne@68
|
1504 copy, modify, sublicense or distribute the Document is void, and will
|
jpayne@68
|
1505 automatically terminate your rights under this License. However,
|
jpayne@68
|
1506 parties who have received copies, or rights, from you under this
|
jpayne@68
|
1507 License will not have their licenses terminated so long as such
|
jpayne@68
|
1508 parties remain in full compliance.
|
jpayne@68
|
1509 </p>
|
jpayne@68
|
1510 </li><li>
|
jpayne@68
|
1511 FUTURE REVISIONS OF THIS LICENSE
|
jpayne@68
|
1512
|
jpayne@68
|
1513 <p>The Free Software Foundation may publish new, revised versions
|
jpayne@68
|
1514 of the GNU Free Documentation License from time to time. Such new
|
jpayne@68
|
1515 versions will be similar in spirit to the present version, but may
|
jpayne@68
|
1516 differ in detail to address new problems or concerns. See
|
jpayne@68
|
1517 <a href="https://www.gnu.org/copyleft/">https://www.gnu.org/copyleft/</a>.
|
jpayne@68
|
1518 </p>
|
jpayne@68
|
1519 <p>Each version of the License is given a distinguishing version number.
|
jpayne@68
|
1520 If the Document specifies that a particular numbered version of this
|
jpayne@68
|
1521 License “or any later version” applies to it, you have the option of
|
jpayne@68
|
1522 following the terms and conditions either of that specified version or
|
jpayne@68
|
1523 of any later version that has been published (not as a draft) by the
|
jpayne@68
|
1524 Free Software Foundation. If the Document does not specify a version
|
jpayne@68
|
1525 number of this License, you may choose any version ever published (not
|
jpayne@68
|
1526 as a draft) by the Free Software Foundation.
|
jpayne@68
|
1527 </p></li></ol>
|
jpayne@68
|
1528
|
jpayne@68
|
1529
|
jpayne@68
|
1530 <a name="SEC15"></a>
|
jpayne@68
|
1531 <h2 class="heading"> ADDENDUM: How to use this License for your documents </h2>
|
jpayne@68
|
1532
|
jpayne@68
|
1533 <p>To use this License in a document you have written, include a copy of
|
jpayne@68
|
1534 the License in the document and put the following copyright and
|
jpayne@68
|
1535 license notices just after the title page:
|
jpayne@68
|
1536 </p>
|
jpayne@68
|
1537 <table><tr><td> </td><td><pre class="smallexample"> Copyright (C) <var>year</var> <var>your name</var>.
|
jpayne@68
|
1538 Permission is granted to copy, distribute and/or modify this document
|
jpayne@68
|
1539 under the terms of the GNU Free Documentation License, Version 1.2
|
jpayne@68
|
1540 or any later version published by the Free Software Foundation;
|
jpayne@68
|
1541 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
|
jpayne@68
|
1542 Texts. A copy of the license is included in the section entitled ``GNU
|
jpayne@68
|
1543 Free Documentation License''.
|
jpayne@68
|
1544 </pre></td></tr></table>
|
jpayne@68
|
1545
|
jpayne@68
|
1546 <p>If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
|
jpayne@68
|
1547 replace the “with…Texts.” line with this:
|
jpayne@68
|
1548 </p>
|
jpayne@68
|
1549 <table><tr><td> </td><td><pre class="smallexample"> with the Invariant Sections being <var>list their titles</var>, with
|
jpayne@68
|
1550 the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts
|
jpayne@68
|
1551 being <var>list</var>.
|
jpayne@68
|
1552 </pre></td></tr></table>
|
jpayne@68
|
1553
|
jpayne@68
|
1554 <p>If you have Invariant Sections without Cover Texts, or some other
|
jpayne@68
|
1555 combination of the three, merge those two alternatives to suit the
|
jpayne@68
|
1556 situation.
|
jpayne@68
|
1557 </p>
|
jpayne@68
|
1558 <p>If your document contains nontrivial examples of program code, we
|
jpayne@68
|
1559 recommend releasing these examples in parallel under your choice of
|
jpayne@68
|
1560 free software license, such as the GNU General Public License,
|
jpayne@68
|
1561 to permit their use in free software.
|
jpayne@68
|
1562 </p>
|
jpayne@68
|
1563
|
jpayne@68
|
1564
|
jpayne@68
|
1565 <p>
|
jpayne@68
|
1566 <font size="-1">
|
jpayne@68
|
1567 This document was generated by <em>Bruno Haible</em> on <em>September, 11 2022</em> using <a href="https://www.nongnu.org/texi2html/"><em>texi2html 1.78a</em></a>.
|
jpayne@68
|
1568 </font>
|
jpayne@68
|
1569 <br>
|
jpayne@68
|
1570
|
jpayne@68
|
1571 </p>
|
jpayne@68
|
1572 </body>
|
jpayne@68
|
1573 </html>
|