From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29482 invoked by alias); 6 Dec 2003 14:09:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29454 invoked from network); 6 Dec 2003 14:09:02 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.0.121) by sources.redhat.com with SMTP; 6 Dec 2003 14:09:02 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id DA9BF2B8F; Sat, 6 Dec 2003 09:08:57 -0500 (EST) Message-ID: <3FD1E2F9.30009@gnu.org> Date: Sat, 06 Dec 2003 14:09:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: [commit] Deprecate remaining STREQ uses References: <3FC119EB.1060102@gnu.org> <3FC234C0.1000500@gnu.org> <2914-Mon24Nov2003212333+0200-eliz@elta.co.il> <3FD0B1B8.4030807@gnu.org> <7137-Fri05Dec2003195510+0200-eliz@elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-12/txt/msg00237.txt.bz2 > It sounds like you missed the documentation of c-macro-expand, which > says: > > c-macro-expand is an interactive autoloaded Lisp function in `cmacexp'. > (c-macro-expand START END SUBST) > > Expand C macros in the region, using the C preprocessor. > Normally display output in temp buffer, but > prefix arg means replace the region with it. > > Note the last sentence: it means that "C-u M-x c-macro-expand RET" > will replace the marked region with the results of the expansion. I found the documentation (needed it to set the variable that makes it prompt for the command arguments, and set the CPP to run :-) but could make neither head nor tails out of "prefix arg". >> PS: Steps will likely be: >> >> - change streq[n] to sane equivalents >> - re-indent rougly half of GDB >> the output of cpp is messy, I'm going to need to re-indent it, which >> means I'm going to need to re-indent befor the event >> - this to-be-determined step > > > For reindenting, just mark the region and then type "C-M-\". It's the spaces between the paren that's the problem. CPP turns: #define A(B,C) ((B) + (C)) A(b,c) into ( ( b ) + ( c ) ) I'm hoping that indent will eat a few of the unnecessary spaces (the paren are a lost cause). Andrew