Re: -fdump-go-spec option does not handle redefinitions

2011-11-02 Thread Ian Lance Taylor
Uros Bizjak writes: > #defines with arguments are not working at all. Please consider > following testcase: You're right: this approach doesn't work for preprocessor macros with arguments. Making those work via this approach would be much much harder. > Please note missing "struct terminfos" d

Re: -fdump-go-spec option does not handle redefinitions

2011-11-02 Thread Uros Bizjak
On Wed, Nov 2, 2011 at 6:06 AM, Ian Lance Taylor wrote: >>> The problem with your proposal is that the output would be invalid Go, >>> because it would attempt to define the name _aa twice.  However, it does >>> seem plausible that in most scenarios of this type it would be more >>> useful for -f

Re: -fdump-go-spec option does not handle redefinitions

2011-11-01 Thread Ian Lance Taylor
Uros Bizjak writes: >> The problem with your proposal is that the output would be invalid Go, >> because it would attempt to define the name _aa twice.  However, it does >> seem plausible that in most scenarios of this type it would be more >> useful for -fdump-go-spec to generate >> >> const _aa