22 Mar 2012 20:08
Re: PCC-385: function prototypes as arguments cannot take attributes
Iain Hibbert <plunky <at> rya-online.net>
2012-03-22 19:08:54 GMT
2012-03-22 19:08:54 GMT
On Mon, 19 Mar 2012, Iain Hibbert wrote: > my other fix though, while it works ok for the syntax, it doesn't seem to > work for the attributes.. but the prior art in this area doesn't seem > right either, eg > > void foo ( __a int[] ); > > arglist 0xbb901720 > 0xbb901720) NAME, 3146782408, 0x0, ARY int, 0xbb9017e4, attributes; unused: 0 0 0, > arg 0: PTR int > end arglist > > void foo ( int[] __a ); > > arglist 0xbb90174c > 0xbb90174c) NAME, 3146782604, 0x0, ARY int, 0xbb901850, attributes; > arg 0: PTR int > end arglist I investigated this some more, and it seems that the attribute is parsed but when passed to tymerge() the attribute gets lost.. tymerge() does not take attributes from the NAME though, by design according to the comments, The attributes are supposed to be on the TYPE part.. iain
RSS Feed