Author: chromatic Date: Tue Jun 5 19:12:10 2007 New Revision: 18832 Modified: trunk/docs/pdds/pdd07_codingstd.pod
Changes in other areas also in this revision: Modified: trunk/src/gc/register.c trunk/src/objects.c trunk/src/stm/waitlist.c trunk/src/vtables.c Log: [GC] Use more mem_sys_*_zeroed (Mehmet Yavuz Selim Soyturk). Document their assumptions about '\0' == NULL (Bernhard Schmalhofer). See RT #43105. Modified: trunk/docs/pdds/pdd07_codingstd.pod ============================================================================== --- trunk/docs/pdds/pdd07_codingstd.pod (original) +++ trunk/docs/pdds/pdd07_codingstd.pod Tue Jun 5 19:12:10 2007 @@ -62,6 +62,9 @@ integral type (no smaller than typedef C<INTVAL> in Parrot), then back to its original type, without loss. +Also C code may assume that there is a single NULL pointer representation +and that it consists of a number, usually 4 or 8, of '\0' chars in memory. + C code that makes assumptions beyond these must depend on the configuration system, either to not compile an entire non-portable source where it will not work, or to provide an appropriate #ifdef macro.