Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2001 21:45:21 +0100 (MET)
From:      j@uriah.heep.sax.de (Joerg Wunsch)
To:        freebsd-current@freebsd.org
Subject:   Re: malloc.h
Message-ID:  <200111072045.fA7KjLP70989@uriah.heep.sax.de>
References:  <001201c16763$e9c35380$fe02010a@twoflower.liebende.de> <22277.1005128602@axl.seasidesoftware.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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__
# 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.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

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?200111072045.fA7KjLP70989>