all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: despen@verizon.net
To: help-gnu-emacs@gnu.org
Subject: Re: Problem with braces in C
Date: Thu, 05 Nov 2009 13:47:07 -0500	[thread overview]
Message-ID: <icvdhoermc.fsf@verizon.net> (raw)
In-Reply-To: 7lfmgfF3dkps3U1@mid.individual.net

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.



  parent reply	other threads:[~2009-11-05 18:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-05 10:07 Problem with braces in C Burkhard Schultheis
2009-11-05 18:06 ` Scott Frazer
2009-11-06 11:53   ` Burkhard Schultheis
2009-11-05 18:47 ` despen [this message]
2009-11-05 20:16   ` Burkhard Schultheis
2009-11-05 23:52     ` Colin S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=icvdhoermc.fsf@verizon.net \
    --to=despen@verizon.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.