X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=doc%2Fwebserver%2Fdeveloper-manual%2Findex.html;h=9c8c8c6ee34aa8b5bddce77a67bda8dfbc79bd81;hp=5289da5644512c491d38077fb658f46de1d8e255;hb=75397537c3986cafa8dc1b4b37af40f93ab9372f;hpb=313a27012b93989133ca4c02e262c36b6d53bdc9 diff --git a/doc/webserver/developer-manual/index.html b/doc/webserver/developer-manual/index.html index 5289da56..9c8c8c6e 100644 --- a/doc/webserver/developer-manual/index.html +++ b/doc/webserver/developer-manual/index.html @@ -1,646 +1,187 @@ -Privoxy Developer Manual

Privoxy Developer Manual

By: Privoxy Developers

$Id: developer-manual.sgml,v 1.27 2002/04/08 15:31:18 hal9 Exp $

-

The developer manual gives the users information on how to help the developer - team. It provides guidance on coding, testing, documentation and other - issues. -

Privoxy is a web proxy with advanced filtering - capabilities for protecting privacy, filtering web page content, managing - cookies, controlling access, and removing ads, banners, pop-ups and other - obnoxious Internet junk. Privoxy has a very - flexible configuration and can be customized to suit individual needs and - tastes. Privoxy has application for both - stand-alone systems and multi-user networks.

Privoxy is based on the code of the - Internet Junkbuster (tm). - Junkbuster was originally written by Junkbusters - Corporation, and was released as free open-source software under the GNU GPL. - Stefan Waldherr made many improvements, and started the SourceForge project - to continue development.

Privoxy continues the - Junkbuster tradition, but adds many - refinements, enhancements and new features.

You can find the latest version of the this manual at http://www.privoxy.org/developer-manual/. - Please see the Contact section on how to contact the developers.


Table of Contents
1. Introduction
3. Quickstart to Privoxy Development
4. Documentation Guidelines
4.1. Quickstart to Docbook and SGML
4.2. Privoxy Documentation Style
4.3. Privoxy Custom Entities
5. Coding Guidelines
5.1. Introduction
5.2. Using Comments
5.2.1. Comment, Comment, Comment
5.2.2. Use blocks for comments
5.2.3. Keep Comments on their own line
5.2.4. Comment each logical step
5.2.5. Comment All Functions Thoroughly
5.2.6. Comment at the end of braces if the - content is more than one screen length
5.3. Naming Conventions
5.3.1. Variable Names
5.3.2. Function Names
5.3.3. Header file prototypes
5.3.4. Enumerations, and #defines
5.3.5. Constants
5.4. Using Space
5.4.1. Put braces on a line by themselves.
5.4.2. ALL control statements should have a - block
5.4.3. Do not belabor/blow-up boolean - expressions
5.4.4. Use white space freely because it is - free
5.4.5. Don't use white space around structure - operators
5.4.6. Make the last brace of a function stand - out
5.4.7. Use 3 character indentions
5.5. Initializing
5.5.1. Initialize all variables
5.6. Functions
5.6.1. Name functions that return a boolean as a - question.
5.6.2. Always specify a return type for a - function.
5.6.3. Minimize function calls when iterating by - using variables
5.6.4. Pass and Return by Const Reference
5.6.5. Pass and Return by Value
5.6.6. Names of include files
5.6.7. Provide multiple inclusion - protection
5.6.8. Use `extern "C"` when appropriate
5.6.9. Where Possible, Use Forward Struct - Declaration Instead of Includes
5.7. General Coding Practices
5.7.1. Turn on warnings
5.7.2. Provide a default case for all switch - statements
5.7.3. Try to avoid falling through cases in a - switch statement.
5.7.4. Use 'long' or 'short' Instead of - 'int'
5.7.5. Don't mix size_t and other types
5.7.6. Declare each variable and struct on its - own line.
5.7.7. Use malloc/zalloc sparingly
5.7.8. The Programmer Who Uses 'malloc' is - Responsible for Ensuring 'free'
5.7.9. Add loaders to the `file_list' structure - and in order
5.7.10. "Uncertain" new code and/or changes to - exitinst code, use FIXME
5.8. Addendum: Template for files and function - comment blocks:
6. Version Control Guidelines
7. Testing Guidelines
7.1. Testplan for releases
7.2. Test reports
8. Releasing a new version
8.1. Before the Release
8.2. Update the webserver
8.3. SuSE or Red Hat
8.4. OS/2
8.5. Solaris
8.6. Windows
8.7. Debian
8.8. Mac OSX
8.9. FreeBSD
8.10. Tarball
8.11. HP-UX 11
8.12. Amiga OS
8.13. AIX
9. Contacting the developers, Bug Reporting and Feature Requests
10. Copyright and History
10.1. Copyright
10.2. History
11. See also


  Next
  Introduction
\ No newline at end of file + + + + Privoxy Developer Manual + + + + + + +
+
+

Privoxy Developer Manual

+

Copyright + © 2001-2018 by Privoxy Developers

+
+
+ +

The developer manual provides guidance on coding, testing, packaging, documentation and other issues of + importance to those involved with Privoxy development. It is mandatory (and + helpful!) reading for anyone who wants to join the team. Note that it's currently out of date and may not be + entirely correct. As always, patches are welcome.

+

Please note that this document is constantly evolving. This copy represents the state at the release of + version 3.0.27. You can find the latest version of the this manual at https://www.privoxy.org/developer-manual/. + Please have a look at the contact + section in the user manual if you are interested in contacting the developers.

+
+
+
+
+
+
+
Table of Contents
+
1. Introduction
+
+
+
1.1. Quickstart to Privoxy Development
+
+
+
2. The Git Repository
+
+
+
2.1. Access to Git
+
2.2. Branches
+
2.3. Git Commit Guidelines
+
+
+
3. Documentation Guidelines
+
+
+
3.1. Quickstart to Docbook and SGML
+
3.2. Privoxy Documentation + Style
+
3.3. Privoxy Custom Entities
+
+
+
4. Coding Guidelines
+
+
+
4.1. Introduction
+
4.2. Using Comments
+
+
+
4.2.1. Comment, Comment, Comment
+
4.2.2. Use blocks for comments
+
4.2.3. Keep Comments on their own line
+
4.2.4. Comment each logical step
+
4.2.5. Comment All Functions Thoroughly
+
4.2.6. Comment at the end of braces if the content is more than one screen + length
+
+
+
4.3. Naming Conventions
+
+
+
4.3.1. Variable Names
+
4.3.2. Function Names
+
4.3.3. Header file prototypes
+
4.3.4. Enumerations, and #defines
+
4.3.5. Constants
+
+
+
4.4. Using Space
+
+
+
4.4.1. Put braces on a line by themselves.
+
4.4.2. ALL control statements should have a block
+
4.4.3. Do not belabor/blow-up boolean expressions
+
4.4.4. Use white space freely because it is free
+
4.4.5. Don't use white space around structure operators
+
4.4.6. Make the last brace of a function stand out
+
4.4.7. Use 3 character indentions
+
+
+
4.5. Initializing
+
+
+
4.5.1. Initialize all variables
+
+
+
4.6. Functions
+
+
+
4.6.1. Name functions that return a boolean as a question.
+
4.6.2. Always specify a return type for a function.
+
4.6.3. Minimize function calls when iterating by using variables
+
4.6.4. Pass and Return by Const Reference
+
4.6.5. Pass and Return by Value
+
4.6.6. Names of include files
+
4.6.7. Provide multiple inclusion protection
+
4.6.8. Use `extern "C"` when appropriate
+
4.6.9. Where Possible, Use Forward Struct Declaration Instead of + Includes
+
+
+
4.7. General Coding Practices
+
+
+
4.7.1. Turn on warnings
+
4.7.2. Provide a default case for all switch statements
+
4.7.3. Try to avoid falling through cases in a switch statement.
+
4.7.4. Don't mix size_t and other types
+
4.7.5. Declare each variable and struct on its own line.
+
4.7.6. Use malloc/zalloc sparingly
+
4.7.7. The Programmer Who Uses 'malloc' is Responsible for Ensuring + 'free'
+
4.7.8. Add loaders to the `file_list' structure and in order
+
4.7.9. "Uncertain" new code and/or changes to existing code, use + XXX
+
+
+
4.8. Addendum: Template for files and function comment blocks:
+
+
+
5. Testing Guidelines
+
+
+
5.1. Testplan for releases
+
5.2. Fuzzing Privoxy
+
+
+
6. Releasing a New Version
+
+
+
6.1. Version numbers
+
6.2. Before the Release
+
6.3. Building and Releasing the Packages
+
+
+
6.3.1. Note on Privoxy Packaging
+
6.3.2. Source Tarball
+
6.3.3. SuSE, Conectiva or Red Hat RPM
+
6.3.4. OS/2
+
6.3.5. Solaris
+
6.3.6. Windows
+
6.3.7. Debian
+
6.3.8. Mac OS X
+
6.3.9. FreeBSD
+
+
+
6.4. Uploading and Releasing Your Package
+
6.5. After the Release
+
+
+
7. Update the Webserver
+
+
+
+ + +