pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1988:   {    struct thread_starter arg;    struct thread_state *thread_state =    (struct thread_state *)Pike_fp->current_storage;    int tmp;       if (args < 1) {    SIMPLE_TOO_FEW_ARGS_ERROR("create", 1);    }    if (!callablep(Pike_sp - args)) { -  SIMPLE_BAD_ARG_ERROR("create", 1, "function"); +  SIMPLE_ARG_TYPE_ERROR("create", 1, "function");    }       if (thread_state->status != THREAD_NOT_STARTED) {    Pike_error("Threads can not be restarted (status:%d).\n",    thread_state->status);    }       arg.args = aggregate_array(args);    arg.thread_state = thread_state;