X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fcoding-style.html;fp=docs%2Fcoding-style.html;h=2bcf715470036b7aad119b2331094b0fd564eb27;hb=ba53144974730a4a6fecc4ec120ad25eed91848e;hp=6972000f13219b1aeeead5f250cd8dbf7f5e8a20;hpb=461cddc13013a0f77147d7e47d4e1b25668c34f2;p=ghc-hetmet.git diff --git a/docs/coding-style.html b/docs/coding-style.html index 6972000..2bcf715 100644 --- a/docs/coding-style.html +++ b/docs/coding-style.html @@ -61,6 +61,15 @@ We use ANSI C with some extensions. In particular, we use:
Rts.h,
+POSIX_SOURCE
is automatically defined for you before any
+system headers are slurped in, unless you define
+NON_POSIX_SOURCE
prior to including Rts.h
.
+A good C library will use the POSIX_SOURCE
define to
+eliminate non-posix types and function prototypes, so the compiler
+should complain if you venture outside the POSIX spec.