This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] Deprecate remaining STREQ uses



	#define A(B,C) ((B) + (C))
	A(b,c)

into

( ( b ) + ( c ) )


Ah, in that case indenting will not help.  But something like
replacing all occurences of "( " with "(" and " )" with ")" should do
most of the work, I think.  Press `!', the exclam mark, when Emacs
asks for confirmation of the first replacement, and it will do the
rest of the replacements automatically without asking.

Or I can just run the code through gdb_indent.sh :-) Since the result of the substitution also exceeds 80 columns, I figure using gdb_indent is easier :-)


Andrew

PS: One of your mailboxes is full.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]