| 1 |
/** |
|---|
| 2 |
* Copyright (c) 2006, Jonas Zaddach & Brad DeMorrow |
|---|
| 3 |
* All rights reserved. |
|---|
| 4 |
* |
|---|
| 5 |
* Redistribution and use in source and binary forms, |
|---|
| 6 |
* with or without modification, are permitted provided |
|---|
| 7 |
* that the following conditions are met: |
|---|
| 8 |
* |
|---|
| 9 |
* * Redistributions of source code must retain the above copyright notice, |
|---|
| 10 |
* this list of conditions and the following disclaimer. |
|---|
| 11 |
* * Redistributions in binary form must reproduce the above copyright notice, |
|---|
| 12 |
* this list of conditions and the following disclaimer in the documentation |
|---|
| 13 |
* and/or other materials provided with the distribution. |
|---|
| 14 |
* * Neither the name of the <ORGANIZATION> nor the names of its contributors |
|---|
| 15 |
* may be used to endorse or promote products derived from this software |
|---|
| 16 |
* without specific prior written permission. |
|---|
| 17 |
* |
|---|
| 18 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|---|
| 19 |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
|---|
| 20 |
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|---|
| 21 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS |
|---|
| 22 |
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|---|
| 23 |
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|---|
| 24 |
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|---|
| 25 |
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|---|
| 26 |
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|---|
| 27 |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|---|
| 28 |
* POSSIBILITY OF SUCH DAMAGE. |
|---|
| 29 |
*/ |
|---|
| 30 |
|
|---|
| 31 |
style guidelines for coding: |
|---|
| 32 |
|
|---|
| 33 |
* source code files are stored as UTF8 files. |
|---|
| 34 |
* there may be no special characters (>127) in source code. |
|---|
| 35 |
* text lines may be no longer than 80 characters. |
|---|
| 36 |
* opening brace of class/struct/union declaration is placed in the same column |
|---|
| 37 |
as the first letter 'c'/'s'/'u' of the declaration in the next line. After |
|---|
| 38 |
the opening brace there is a newline. Closing brace is in the same column as |
|---|
| 39 |
the opening brace. |
|---|
| 40 |
|
|---|
| 41 |
Example: class Test |
|---|
| 42 |
{ |
|---|
| 43 |
<body> |
|---|
| 44 |
} |
|---|
| 45 |
|
|---|
| 46 |
* Indent is two spaces. Do not use tabs for indent. |
|---|