From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: Another small problem of CC Mode Date: Fri, 12 Jan 2007 04:13:47 +0100 (CET) Message-ID: <20070112031347.0F3BC44006@Psilocybe.Update.UU.SE> References: Reply-To: ams@gnu.org NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1168571651 25270 80.91.229.12 (12 Jan 2007 03:14:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2007 03:14:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 12 04:14:09 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H5Crh-0000ji-VU for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2007 04:14:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5Crh-0002e0-Nj for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2007 22:14:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5CrW-0002dM-Ma for emacs-devel@gnu.org; Thu, 11 Jan 2007 22:13:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5CrU-0002cp-3y for emacs-devel@gnu.org; Thu, 11 Jan 2007 22:13:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5CrU-0002cm-0W for emacs-devel@gnu.org; Thu, 11 Jan 2007 22:13:48 -0500 Original-Received: from [130.238.19.25] (helo=Psilocybe.Update.UU.SE) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5CrT-0001sB-Ko for emacs-devel@gnu.org; Thu, 11 Jan 2007 22:13:47 -0500 Original-Received: by Psilocybe.Update.UU.SE (Postfix, from userid 30270) id 0F3BC44006; Fri, 12 Jan 2007 04:13:47 +0100 (CET) Original-To: "Herbert Euler" In-reply-to: (herberteuler@hotmail.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65159 Archived-At: Of course, this is rare. But will making CC Mode detect this situation and behave in a right way need much effort? Not exactly the answer you are looking for, but reorganising your code in the following manner would make CC mode behave properly. #ifdef M1 extern void g(void); # define M g #else extern void h(void); # define M h #endif int f(void) { do { } while (M()); } Happy hacking.