diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-25 14:32:37 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-25 14:32:37 +0000 |
commit | 48033b252ade6819b0c2407f8c48c3fdc425aaf6 (patch) | |
tree | e3d312376353f468e740945a433cc972b5bdc6a6 /README.dev | |
parent | 3caea26f8b7d14a0d83749c3545338f0259bfc52 (diff) | |
download | mpfr-48033b252ade6819b0c2407f8c48c3fdc425aaf6.tar.gz |
Added coding recommendations concerning C++ compilers.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3597 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'README.dev')
-rw-r--r-- | README.dev | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/README.dev b/README.dev index 635e0e47f..f97048a62 100644 --- a/README.dev +++ b/README.dev @@ -154,6 +154,16 @@ for some C compiler (Old DOS compiler). ===================================================================== +Quoted from <http://www.gnu.org/software/gcc/codingconventions.html>: + + Avoid the use of identifiers or idioms that would prevent code + compiling with a C++ compiler. Identifiers such as new or class, + that are reserved words in C++, should not be used as variables + or field names. Explicit casts should be used to convert between + void* and other pointer types. + + ===================================================================== + Try to avoid "LONG_MIN/1" since it produces a SIGNAL on (old) FreeBsd. Don't forget that LONG_MIN/-1 is not representable (specially with code like MPFR_EXP_MIN/n). |