PRINTPTRDIFFT is not defined.
/ Niels Möller (vässar rödpennan)
Previous text:
2004-01-16 13:24: Subject: PRINTPTRDIFFT on pike 7.5
Hello there,
Seems that some code in new pike 7.5 use some special extension of Gcc (3.x I assume) :
/usr/home/kiwi/Pike-v7.5.17/src/array.c:268: syntax error before `PRINTPTRDIFFT' /usr/home/kiwi/Pike-v7.5.17/src/array.c: In function `simple_set_index': /usr/home/kiwi/Pike-v7.5.17/src/array.c:321: syntax error before `PRINTPTRDIFFT' /usr/home/kiwi/Pike-v7.5.17/src/array.c: In function `array_get_item_ptr': /usr/home/kiwi/Pike-v7.5.17/src/array.c:1295: syntax error before `PRINTPTRDIFFT'
The code that blown is :
index_error(0,0,0,&tmp,ind, "Index %"PRINTPIKEINT"d is out of array range " "%"PRINTPTRDIFFT"d..%"PRINTPTRDIFFT"d.\n", p, -a->size, a->size-1);
The %"PRINTPTRDIFFT" part is not handled by my GCC (gcc 2.95.4 20020320 [FreeBSD]).
Removing the "PRINTPTRDIFFT solve the problem since FreeBSD 4.8 / 4.9 are stable OS and gcc 2.95.x are on lots of OS.
BTW: I am in the process to add a pikefarm there to show Pike developpers the problems.
/Xavier
/ Brevbäraren