emacs-devel
[Top][All Lists]
Advanced

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

C Mode possibility: optionally disabling K&R function headers. WDYT?


From: Alan Mackenzie
Subject: C Mode possibility: optionally disabling K&R function headers. WDYT?
Date: Thu, 8 Dec 2011 11:25:53 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hello Emacs and XEmacs.

I've got a knotty problem with a C Mode bug report: The use of a macro
in a typedef definition causes the following line to be parsed as a K&R
parameter.  The actual code is this:

    #ifndef G
    #define G(symbol) pieni_ ## symbol
    #endif

    typedef struct G(foobar) *G(foobar_t);
                             typedef int lahna;  <=========== K&R

Solving this bug is difficult.  One way would be just to disable K&R in
C Mode, except when explicitly enabled by the user.  After all, K&R
parameters have been obsolete for over 10 years now.

The key sequnce to toggle it would be C-c C-k.

Can anybody think up any reasons why this would be a Bad Thing.  Does
anybody feel particularly strongly about this?

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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