help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Problem with braces in C


From: despen
Subject: Re: Problem with braces in C
Date: Thu, 05 Nov 2009 13:47:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Burkhard Schultheis <burkhard.schultheis@web.de> writes:

> We have overtaken a C program package with a horrible huge C function
> in it (about 3500 lines of code in a single function!). Now Emacs
> 21.3.1 shows unbalanced braces at the first 5 opening braces. But:
>
> 1.) The code compiles without problems
> 2.) We can jump with match-paren to the corresponding closing braces
> 3.) A double-click with the left mouse button jumps to the
> corresponding braces, too.
> 4.) indent-region indents perfectly the whole function.
>
> Is it a known bug?

Are there #if/#ifdef around some parts of the braces?

That's what usually gets me.
In C code, it's better to use "if" and let the
optimizer make the choices.  It doesn't confuse Emacs
and it's more readable.



reply via email to

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