On Sun, Feb 12, 2012 at 2:33 PM, Matthieu Monrocq
<[email protected]> wrote:
> Le 11 février 2012 21:09, Dmitri Gribenko <[email protected]> a écrit :
>> mpi_typed_arg(buffer-arg-index, type-arg-index) attribute:
>>
>> int MPI_Send(void *buf, int count, MPI_Datatype datatype, ...etc...)
>>    __attribute__(( mpi_typed_arg(1,3) ));
>
> Just a small remark here: indexes in C and C++ are usually 0-based, while
> counting is 1-based. To avoid the ambiguity altogether it would be even
> simpler to use the *names* of the arguments rather than their position, it
> seems to be it would also be slightly easier to read and maintain.

I completely agree with you, specifying names would be much more
user-friendly.  I decided to use indexes only because of consistency
with format attribute, which looks much the same.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to