59 |
|
|
60 |
struct foo_t |
struct foo_t |
61 |
{ |
{ |
62 |
body of the strcuture |
body of the structure |
63 |
} |
} |
64 |
|
|
65 |
Note that the closing brace is empty on a line of its own, _except_ in |
Note that the closing brace is empty on a line of its own, _except_ in |
77 |
.. |
.. |
78 |
} else if (x > y) { |
} else if (x > y) { |
79 |
... |
... |
80 |
} |
} else { |
|
else { |
|
81 |
.... |
.... |
82 |
} |
} |
83 |
|
|
268 |
|
|
269 |
The code _must_ be portable. Don't use specific functions to a |
The code _must_ be portable. Don't use specific functions to a |
270 |
compiler/OS/libC. Don't use specific compiler pragmas, or syntax |
compiler/OS/libC. Don't use specific compiler pragmas, or syntax |
271 |
extensions. |
extensions. The code _must_ be ANSI C compliant to ease portability |
272 |
|
on exotic platforms with only ANSI C compilers, much more widespread |
273 |
|
than ISO C99 compilers. |
274 |
|
|
275 |
Btw, if you have to use those deprecated/not portable features, then |
Btw, if you have to use those deprecated/not portable features, then |
276 |
use the src/portab.h to write a wrapper for each targeted system. |
use the src/portab.h to write a wrapper for each targeted system. |
278 |
For the moment, the supported platforms are : |
For the moment, the supported platforms are : |
279 |
- Win32 family (x86) with VC++ |
- Win32 family (x86) with VC++ |
280 |
- Cygwin env (bypassing the cygwin.dll with -mno-cygwin flag) |
- Cygwin env (bypassing the cygwin.dll with -mno-cygwin flag) |
281 |
- Mingw ??? |
- Mingw + Minsys |
282 |
- GNU/Linux (x86 and ppc for optimized code, or any other arch for |
- GNU/Linux (x86 and ppc for optimized code, or any other arch for |
283 |
the pure C version of the library) |
the pure C version of the library) |
284 |
- *BSD (same archs as GNU/Linux) |
- *BSD (same archs as GNU/Linux) |
285 |
|
- Solaris. |