pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:2247:    struct svalue *s=(struct svalue *)arg1;    switch(TYPEOF(*s))    {    case T_INT:    if (!s->u.integer) {    PIKE_ERROR("0", "Attempt to call the NULL-value\n", Pike_sp, args);    } else {    Pike_error("Attempt to call the value %"PRINTPIKEINT"d\n",    s->u.integer);    } +  break;       case T_STRING:    if (s->u.string->len > 20) {    Pike_error("Attempt to call the string \"%20S\"...\n", s->u.string);    } else {    Pike_error("Attempt to call the string \"%S\"\n", s->u.string);    } -  +  break; +     case T_MAPPING:    Pike_error("Attempt to call a mapping\n"); -  +  break; +     default:    Pike_error("Call to non-function value type:%s.\n",    get_name_of_type(TYPEOF(*s))); -  +  break;       case T_FUNCTION:    if(SUBTYPEOF(*s) == FUNCTION_BUILTIN)    {   #ifdef PIKE_DEBUG    struct svalue *expected_stack = Pike_sp-args;   #endif    if(Pike_interpreter.trace_level>1)    {    dynamic_buffer save_buf;