As of SWI-Prolog 7.3.12, the arity of terms has changed from
size_t. To deal with this transition, all affecting
functions have two versions, where the old name exchanges the arity as
and a new function with name *_sz() exchanges the arity as
size_t. Op to 8.1.28, the default was to use the old
functions. As of 8.1.29/8.2.x, the default is to use
and the old behaviour can be restored by defining
0 (zero). This makes old code compatible, but the
following warning is printed when compiling:
#warning "Term arity has changed from int to size_t." #warning "Please update your code or use #define PL_ARITY_AS_SIZE 0."
To make the code compile silently again, change the types you use to
represent arity from
size_t. Please be
size_t is unsigned. At some point representing
int will be dropped completely.