--- branches/dev-api-4/xvidcore/CodingStyle 2003/02/21 14:49:29 886 +++ branches/dev-api-4/xvidcore/CodingStyle 2003/10/21 16:48:58 1182 @@ -4,7 +4,7 @@ Inspired by the Linux Kernel Coding Style ---------------------------------------------------------------------- -$Id: CodingStyle,v 1.2 2002-06-12 21:23:49 edgomez Exp $ +$Id: CodingStyle,v 1.2.4.1 2003-10-21 16:48:58 edgomez Exp $ This is a short document describing the preferred coding style for the @@ -55,11 +55,11 @@ int function(int x) { body of function - } + } struct foo_t { - body of the strcuture + body of the structure } Note that the closing brace is empty on a line of its own, _except_ in @@ -77,10 +77,9 @@ .. } else if (x > y) { ... - } - else { + } else { .... - } + } Chapter 3: Naming @@ -269,7 +268,9 @@ The code _must_ be portable. Don't use specific functions to a compiler/OS/libC. Don't use specific compiler pragmas, or syntax -extensions. +extensions. The code _must_ be ANSI C compliant to ease portability +on exotic platforms with only ANSI C compilers, much more widespread +than ISO C99 compilers. Btw, if you have to use those deprecated/not portable features, then use the src/portab.h to write a wrapper for each targeted system. @@ -277,7 +278,8 @@ For the moment, the supported platforms are : - Win32 family (x86) with VC++ - Cygwin env (bypassing the cygwin.dll with -mno-cygwin flag) - - Mingw ??? + - Mingw + Minsys - GNU/Linux (x86 and ppc for optimized code, or any other arch for the pure C version of the library) - - *BSD (same archs as GNU/Linux) \ No newline at end of file + - *BSD (same archs as GNU/Linux) + - Solaris.