Subject: __STDC__ in cdefs_elf.h
To: None <>
From: Garrett D'Amore <>
List: tech-kern
Date: 09/08/2006 09:38:00
There are a number of tests for __STDC__ in cdefs_elf.h.  I think this
is silly, and makes the code harder to read.  Additionally, the link set
support in the file does ANSI token concatenation, but lacks the
__STDC__ checks.

I'd like to unidef that, removing all the support for pre-ANSI
environments.  About the only conceivable objection I can imagine is if
someone is still using K&R C to build kernels, or if this file is
somehow used in bootstrapping tools (e.g. to bootstrap GCC from a K&R C

I don't think _either_ is the case (I think even the pdp10 external pcc
compiler supports ANSI C now, although I don't know if those kernels are
built with ELF or not), so I'd like to clean this up.


Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
Phone: 951 325-2134  Fax: 951 325-2191