[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is INLINE_HEADER_BEGIN still useful?

From: Oleh Krehel
Subject: Is INLINE_HEADER_BEGIN still useful?
Date: Wed, 29 Apr 2015 13:21:59 +0200

Hi all,

This macro, encountered in most headers, seems to work around some
compilers not supporting C99.  A quick internet search shows that no
other software except Emacs uses this (any more, I assume some did in
the past).

Is it still useful? If not, it unnecessarily complicates the header
structure and should be removed.

I attach an example patch for only buffer.h that compiles and works

Also, what's the stance on C11? I don't know a lot of C outside of what
C++ includes, but I'm considering to learn more of it just for Emacs.
Is C11 encouraged / allowed / discouraged / disallowed?

I assume that C99 is at least allowed since #17487. Is it encouraged?
In that case, surely INLINE_HEADER_BEGIN should be removed.


Attachment: 0001-Remove-INLINE_HEADER_BEGIN-in-buffer.h.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]