emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] Omit all GCPRO stuff if GC_MAKE_GCPROS_NOOPS


From: Jan Djärv
Subject: Re: [RFC] Omit all GCPRO stuff if GC_MAKE_GCPROS_NOOPS
Date: Mon, 16 Jul 2012 15:39:06 +0200

16 jul 2012 kl. 14:42 skrev Michael Welsh Duggan:

> Paul Eggert <address@hidden> writes:
> 
>>> +#define DEFGCPRO1 void *__dummy ATTRIBUTE_UNUSED = &__dummy
>> 
>> This would be cleaner if DEFGCPRO1 etc were either empty,
>> or expanded to something that ended in ";".  Then the caller
>> can just do "DEFGCPRO1" (without the semicolon) and there's
>> no need for dummy declarations.
> 
> This I do not understand.  Macros without the semicolons make cc-mode
> have to work much, much harder to determine the current level of
> indentation.  I also find it offputting to see something that looks like
> a statement that does not terminate with a semicolon.
> 

+1.  Actually cc-mode just fails to get indentation level right after such a 
macro.  If on the other hand we would allow declarations after statements, a 
lone semicolon would not matter.

        Jan D.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]