From: simonmar Date: Thu, 6 Apr 2000 10:45:11 +0000 (+0000) Subject: [project @ 2000-04-06 10:45:11 by simonmar] X-Git-Tag: Approximately_9120_patches~4797 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=ba53144974730a4a6fecc4ec120ad25eed91848e [project @ 2000-04-06 10:45:11 by simonmar] add a note about POSIX compliance. --- 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:
  • #elsif, #error, #warning, ## and other cpp features +
  • Our POSIX policy: try to write code that only uses POSIX (IEEE +Std 1003.1) interfaces and APIs. When you include 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.
  • +
  • We use the following gcc extensions (see gcc documentation):
      @@ -509,7 +518,6 @@ within Hugs. Add this to your .emacs file. ) -

    CVS issues