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]

Re: [RFA] work around sigsetjmp/siglongjmp macro problems


> Date: Tue, 14 Aug 2001 16:08:13 -0400
> From: Christopher Faylor <cgf@redhat.com>
> 
> >Maybe in the gdb coding style section of the gdb internal manual, we
> >should make this point about macro's arguments.  Eli?
> 
> How about this:

Approved.

> Index: gdbint.texinfo
> ===================================================================
> RCS file: /cvs/uberbaum/gdb/doc/gdbint.texinfo,v
> retrieving revision 1.34
> diff -p -r1.34 gdbint.texinfo
> *** gdbint.texinfo	2001/07/31 17:30:56	1.34
> --- gdbint.texinfo	2001/08/14 20:07:27
> *************** However, use functions with moderation. 
> *** 4395,4400 ****
> --- 4395,4402 ----
>   are just as hard to understand as a single thousand-line function.
>   
>   @emph{Macros are bad, M'kay.}
> + (But if you have to use a macro, make sure that the macro arguments are
> + protected with parentheses.)
>   
>   @cindex types
>   
> cgf
> 


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