Branch: Tag:

2001-03-04

2001-03-04 19:27:20 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

more fixes to support INT_TYPE > INT32

Rev: src/acconfig.h:1.81
Rev: src/configure.in:1.495
Rev: src/error.c:1.70
Rev: src/interpret.c:1.188
Rev: src/interpret.h:1.78
Rev: src/modules/Gmp/mpz_glue.c:1.90
Rev: src/modules/Image/colors.c:1.46
Rev: src/modules/sprintf/acconfig.h:1.3
Rev: src/modules/sprintf/configure.in:1.8
Rev: src/modules/sprintf/sprintf.c:1.77
Rev: src/opcodes.c:1.103
Rev: src/operators.c:1.129
Rev: src/svalue.c:1.99

21:   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.69 2001/02/06 19:31:39 grubba Exp $"); + RCSID("$Id: error.c,v 1.70 2001/03/04 19:27:17 mirar Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
129:    if (index < 0) {    /* Indexing from end not supported. */    index_error("backtrace->`[]", Pike_sp-args, args, NULL, Pike_sp-args, -  "Indexing with negative value (%d).\n", index); +  "Indexing with negative value (%"PRINTPIKEINT"d).\n", index);    }       if (index < THIS_BT->iterator_index) {
188:       if (!f) {    index_error("pike_frame->`[]", Pike_sp-args, args, NULL, Pike_sp-args, -  "Indexing the empty array with %d.\n", index); +  "Indexing the empty array with %"PRINTPIKEINT"d.\n", index);    }    if (index < 0) {    index_error("pike_frame->`[]", Pike_sp-args, args, NULL, Pike_sp-args, -  "Indexing with negative index (%d)\n", index); +  "Indexing with negative index (%"PRINTPIKEINT"d)\n", index);    }    if (!(f->current_object && f->context.prog)) {    index_error("pike_frame->`[]", Pike_sp-args, args, NULL, Pike_sp-args, -  "Indexing the NULL value with %d.\n", index); +  "Indexing the NULL value with %"PRINTPIKEINT"d.\n", index);    }    switch(index) {    case 0: /* Filename */
601:    break;    default:    index_error("error->`[]", Pike_sp-args, args, NULL, Pike_sp-args, -  "Index %d is out of range 0 - 1.\n", ind); +  "Index %"PRINTPIKEINT"d is out of range 0 - 1.\n", ind);    break;    }   }