Fix more attribute placements
commit3e007193a2a83540a9c7bbc21261940f0326a02f
authorMichael Matz <matz@suse.de>
Mon, 31 Dec 2018 21:00:31 +0000 (31 22:00 +0100)
committerMichael Matz <matz@suse.de>
Mon, 31 Dec 2018 21:00:31 +0000 (31 22:00 +0100)
tree4b2072027a8c0ef243b75f96f63119b40e9698f7
parent325241c0deb7f2f1d81a0228dacd737ac2acde61
Fix more attribute placements

when parsing the type in this cast:
  (int (__attribute__(X) *)(int))foo
we ignored the attribute, which matters if it's e.g. a 'stdcall'
attribute on the function pointer.  Only this particular placement
was misparsed.  Putting the attribute after the '*' or outside the inner
parens worked.  This idiom seems to be used on SQLite, perhaps this
fixes a compilation problem on win32 with that.
tccgen.c
tccpe.c
tests/tests2/82_attribs_position.c