Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2001 01:20:50 +0100 (CET)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: malloc.h
Message-ID:  <200111080020.fA80Kpd99323@gits.dyndns.org>
In-Reply-To: <200111072045.fA7KjLP70989@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Joerg Wunsch wrote:
> Sheldon Hearn <sheldonh@starjuice.net> wrote:
> 
> > This is how we've decided to encourage progress in this specific
> > case of header misuse.
> 
> IMHO the current version of <malloc.h> is wrong.  This header
> file used to be a legitimate header file prior to ANSI C.  So
> it should be
> 
> #if __STDC__

this statement is wrong. it should be

#ifdef __STDC__

or

#if (__STDC__-0) == 0

> # error "<malloc.h> is not part of the C standard, use <stdlib.h>"
> #else
> # include <stdlib.h>
> #endif
> 
> This way, if someone explicitly expresses his wish to compile ancient
> C code by using "-traditional", he could get what he wants.

Cyrille.
-- 
Cyrille Lefevre                 mailto:clefevre@citeweb.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111080020.fA80Kpd99323>