From: mquinson Date: Thu, 16 Sep 2004 11:33:03 +0000 (+0000) Subject: some notes about coding standards to ensure portability X-Git-Tag: v3.3~4929 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e83582ddbc62ff2bf8dc35cf64612df0713ac690 some notes about coding standards to ensure portability git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@421 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/README.coding b/README.coding new file mode 100644 index 0000000000..dd18e227d5 --- /dev/null +++ b/README.coding @@ -0,0 +1,12 @@ +** +** Random bits about coding standards and portability + +MALLOC: + You must cast the result of malloc on AIX. + It's even better to use gras_new when possible. + +SIZE_T + #include in all files manipulating size_t + do cast it to unsigned long before printing (and use %lu) + +