Rebuild docs
[privoxy.git] / doc / webserver / developer-manual / coding.html
index 57e9578..42fa1ca 100644 (file)
@@ -8,7 +8,7 @@
   <link rel="PREVIOUS" title="Documentation Guidelines" href="documentation.html">
   <link rel="NEXT" title="Testing Guidelines" href="testing.html">
   <link rel="STYLESHEET" type="text/css" href="../p_doc.css">
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 </head>
 <body class="SECT1" bgcolor="#EEEEEE" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF">
   <div class="NAVHEADER">
@@ -33,7 +33,7 @@
       maintenance easier and increasing chances of success of the project.</p>
       <p>And that of course comes back to us as individuals. If we can increase our development and product
       efficiencies then we can solve more of the request for changes/improvements and in general feel good about
-      ourselves. ;-&gt;</p>
+      ourselves. ;-&#62;</p>
     </div>
     <div class="SECT2">
       <h2 class="SECT2"><a name="S2" id="S2">4.2. Using Comments</a></h2>
           <tr>
             <td>
               <pre class="PROGRAMLISTING">/* if page size greater than 1k ... */
-if (page_length() &gt; 1024)
+if (page_length() &#62; 1024)
 {
     ... "block" the page up ...
 }
 
 /* if page size is small, send it in blocks */
-if (page_length() &gt; 1024)
+if (page_length() &#62; 1024)
 {
     ... "block" the page up ...
 }
@@ -299,7 +299,7 @@ int loadSomeFile(struct client_state *csp)</pre>
           </tr>
         </table>
         <p><span class="emphasis"><i class="EMPHASIS">Note:</i></span> We have a standard naming scheme for #defines
-        that toggle a feature in the preprocessor: FEATURE_&gt;, where &gt; is a short (preferably 1 or 2 word)
+        that toggle a feature in the preprocessor: FEATURE_&#62;, where &#62; is a short (preferably 1 or 2 word)
         description.</p>
         <p><span class="emphasis"><i class="EMPHASIS">Example:</i></span></p>
         <table border="0" bgcolor="#E0E0E0" width="100%">
@@ -416,12 +416,12 @@ int loadSomeFile(struct client_state *csp)</pre>
         <table border="0" bgcolor="#E0E0E0" width="100%">
           <tr>
             <td>
-              <pre class="PROGRAMLISTING">structure-&gt;flag = (condition);</pre>
+              <pre class="PROGRAMLISTING">structure-&#62;flag = (condition);</pre>
             </td>
           </tr>
         </table>
         <p><span class="emphasis"><i class="EMPHASIS">Instead of:</i></span></p>
-        <p>if (condition) { structure-&gt;flag = 1; } else { structure-&gt;flag = 0; }</p>
+        <p>if (condition) { structure-&#62;flag = 1; } else { structure-&#62;flag = 0; }</p>
         <p><span class="emphasis"><i class="EMPHASIS">Note:</i></span> The former is readable and concise. The later is
         wordy and inefficient. Please assume that any developer new to the project has at least a "good" knowledge of
         C/C++. (Hope I do not offend by that last comment ... 8-)</p>
@@ -445,20 +445,20 @@ int this_variable = 0;</pre>
       <div class="SECT3">
         <h3 class="SECT3"><a name="S20" id="S20">4.4.5. Don't use white space around structure operators</a></h3>
         <p><span class="emphasis"><i class="EMPHASIS">Explanation:</i></span></p>
-        <p>- structure pointer operator ( "-&gt;" ) - member operator ( "." ) - functions and parentheses</p>
+        <p>- structure pointer operator ( "-&#62;" ) - member operator ( "." ) - functions and parentheses</p>
         <p>It is a general coding practice to put pointers, references, and function parentheses next to names. With
         spaces, the connection between the object and variable/function name is not as clear.</p>
         <p><span class="emphasis"><i class="EMPHASIS">Example:</i></span></p>
         <table border="0" bgcolor="#E0E0E0" width="100%">
           <tr>
             <td>
-              <pre class="PROGRAMLISTING">a_struct-&gt;a_member;
+              <pre class="PROGRAMLISTING">a_struct-&#62;a_member;
 a_struct.a_member;
 function_name();</pre>
             </td>
           </tr>
         </table>
-        <p><span class="emphasis"><i class="EMPHASIS">Instead of:</i></span> a_struct -&gt; a_member; a_struct .
+        <p><span class="emphasis"><i class="EMPHASIS">Instead of:</i></span> a_struct -&#62; a_member; a_struct .
         a_member; function_name ();</p>
       </div>
       <div class="SECT3">
@@ -885,10 +885,9 @@ static void unload_re_filterfile(void *f) { ... }</pre>
       <table border="0" bgcolor="#E0E0E0" width="100%">
         <tr>
           <td>
-            <pre class="PROGRAMLISTING">const char FILENAME_rcs[] = "$I&lt;!-- Break CVS Substitution --&gt;d$";
-/*********************************************************************
+            <pre class="PROGRAMLISTING">/*********************************************************************
  *
- * File        :  $S&lt;!-- Break CVS Substitution --&gt;ource$
+ * File        :  $Source
  *
  * Purpose     :  (Fill me in with a good description!)
  *
@@ -937,10 +936,9 @@ const char FILENAME_h_rcs[] = FILENAME_H_VERSION;</pre>
           <td>
             <pre class="PROGRAMLISTING">#ifndef _FILENAME_H
 #define _FILENAME_H
-#define FILENAME_H_VERSION "$I&lt;!-- Break CVS Substitution --&gt;d$"
 /*********************************************************************
  *
- * File        :  $S&lt;!-- Break CVS Substitution --&gt;ource$
+ * File        :  $Source
  *
  * Purpose     :  (Fill me in with a good description!)
  *
@@ -1011,7 +1009,7 @@ extern const char FILENAME_h_rcs[];
  *          1  :  param1 = pointer to an important thing
  *          2  :  x      = pointer to something else
  *
- * Returns     :  0 =&gt; Ok, everything else is an error.
+ * Returns     :  0 =&#62; Ok, everything else is an error.
  *
  *********************************************************************/
 int FUNCTION_NAME(void *param1, const char *x)