Re: Safer vararg calls

2022-07-07 Thread Florian Weimer via Gcc
* Yair Lenga: > I prefer not to go into “flame wars” on the merits of C vs C++. My > projects are (mostly) in “C” and I am happy with this setup. In > addition, given technical / organizational / business issues, > switching to C++ not an option. Sure, but you could at least use C++ to prototype

Re: Safer vararg calls

2022-06-25 Thread Yair Lenga via Gcc
Hi Jonathan, thanks for taking the time to review. I agree with your comment about the attribute name (va_vector, va_type). My best improvement is "va_sametype". Is it better ? ? May be "va_matchtype" ? any other suggestions ? For the case of the sentinel/va_sametype, I hope that the implementati

Re: Safer vararg calls

2022-06-21 Thread Jonathan Wakely via Gcc
On Tue, 21 Jun 2022 at 11:17, Yair Lenga via Gcc wrote: > > Hi, > > Looking for feedback on the adding new attribute to function calls that will > help create safer vararg functions. > > Consider the case where a vararg function takes list of arguments of the same > type. In my case, there are t