From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Jumping to C source from *Help* Date: Wed, 07 Apr 2004 03:01:32 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040407025556.FCC3.LEKTU@mi.madritel.es> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1081299821 16855 80.91.224.253 (7 Apr 2004 01:03:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2004 01:03:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Apr 07 03:03:28 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BB1TU-0007VP-00 for ; Wed, 07 Apr 2004 03:03:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BB1TU-0003ep-00 for ; Wed, 07 Apr 2004 03:03:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BB1TC-0001QH-1A for emacs-devel@quimby.gnus.org; Tue, 06 Apr 2004 21:03:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BB1Sn-0000zJ-M1 for emacs-devel@gnu.org; Tue, 06 Apr 2004 21:02:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BB1Ru-0008Hn-Ug for emacs-devel@gnu.org; Tue, 06 Apr 2004 21:02:23 -0400 Original-Received: from [62.81.186.16] (helo=smtp06.retemail.es) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BB1Ra-00080a-VV for emacs-devel@gnu.org; Tue, 06 Apr 2004 21:01:31 -0400 Original-Received: from [127.0.0.1] ([213.37.34.136]) by smtp06.retemail.es (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20040407010125.YQVF8269.smtp06.retemail.es@[127.0.0.1]> for ; Wed, 7 Apr 2004 03:01:25 +0200 Original-To: emacs-devel@gnu.org In-Reply-To: X-Mailer: Becky! ver. 2.08.01 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21304 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21304 On 06 Apr 2004 18:35:24 -0400, Stefan Monnier wr= ote: > + else if (len > 2 && !strcmp (filename + len - 2, ".o")) > + /* Switch `.o' to `.c'. */ > + filename[len - 1] =3D 'c'; MinGW object files are .o, but MSVC objects are .obj (and conceivably =2EOBJ) so something like this should be needed: + else if (len > 4 && !stricmp (filename + len - 4, ".obj")) + { + /* Switch `.obj' to `.c'. */ + filename[len - 3] =3D 'c'; + filename[len - 2] =3D 0; + } /L/e/k/t/u