"comma at end of enumerator list" error due to macros in libqof
Tim M
tim at filmchicago.org
Tue Jun 7 23:32:51 EDT 2011
Since all roads lead to nowhere, I will just leave it alone.
Next time I have time, I'll disable iso-c and see if I can find more
important issues to address :)
Thanks,
-Tim
On Tue, Jun 7, 2011 at 12:16 PM, Derek Atkins <warlord at mit.edu> wrote:
> Jim Paris <jim at jtan.com> writes:
>
>> DEFINE_ENUM can just add a dummy element to the end which will follow
>> the trailing comma:
>>
>> #define DEFINE_ENUM(name, list) \
>> typedef enum { \
>> list(ENUM_BODY) \
>> __dummy__##name \
>> } name;
>
> This would cause problems elsewhere, because any switch(name) { }
> construct would need to be modified to either have a default or
> __dummy__name case statement! So you would break existing code.
>
>> -jim
>
> -derek
> --
> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> Member, MIT Student Information Processing Board (SIPB)
> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> warlord at MIT.EDU PGP key available
>
More information about the gnucash-devel
mailing list