pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:3334:    fputs (safe_idname_from_int(f->current_program, f->fun), stderr);    fputc ('(', stderr);    }    else    fputs ("unknown function(", stderr);       if(!f->locals)    {    args=0;    }else{ -  args=f->num_args; -  args = DO_NOT_WARN((INT32) MINIMUM(f->num_args, Pike_sp - f->locals)); -  if(of) -  args = DO_NOT_WARN((INT32)MINIMUM(f->num_args,of->locals - f->locals)); -  args=MAXIMUM(args,0); +  ptrdiff_t tmp; +  +  if(of) { +  tmp = of->locals - f->locals; +  } else { +  tmp = ts->state.stack_pointer - f->locals;    } -  +  args = (INT32)tmp; +  args = MAXIMUM(MINIMUM(args, f->num_args),0); +  }       for (i = 0; i < args; i++) {    struct svalue *arg = f->locals + i;       switch (TYPEOF(*arg)) {    case T_INT:    fprintf (stderr, "%ld", (long) arg->u.integer);    break;       case T_TYPE: