[RFA] work around sigsetjmp/siglongjmp macro problems

Eli Zaretskii eliz@is.elta.co.il
Tue Aug 14 23:52:00 GMT 2001


> 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
> 



More information about the Gdb-patches mailing list