[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ISO C99 features and compatibility

On Jan 16, 2008, at 10:20 PM, Matthew Backes wrote:
We've recently stopped pretending to support building slapd with a K&R C compiler;

For years now, the Project has required ANSI C (C90) to build OpenLDAP Software (e.g., slapd(8)) but published headers for public interfaces that worked with either K&R C or ANSI C (any revision).

The Project has avoided is requiring later versions of ANSI C to build OpenLDAP Software as support for those features is not ubiquitous. Some ANSI C compilers still cannot handle inline functions (use macros instead), unrestricted variable declarations (declare variables at top of block), // comments (use /* */ comments), etc.

Debug( LDAP_DEBUG_FOO, "foo\n", 0, 0, 0 );

Support for variadic macros is not terribly ubiquitous.

But really, it seems reasonable to borrow a few features from a standard from 1999. Is anyone actively maintaining OpenLDAP on platforms with no C99ish compiler available?


-- Kurt