pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:2822:    {    /* function == function(zero...:mixed|void) or    * function(zero|void...:mixed|void)    */    string_builder_strcat(s, "function");    /* done */    break;    } else {    int arg = 0;    string_builder_strcat(s, "function("); -  while(t->type == T_FUNCTION) +  while(t && (t->type == T_FUNCTION))    {    if(arg++) string_builder_strcat(s, ", ");    low_describe_type(s, t->car);    t = t->cdr;    } -  if (t->type != T_MANY) { +  if (!t || (t->type != T_MANY)) {    string_builder_sprintf(s, ", @%T)", t);    } else {    if(!t->car || (t->car->type != T_VOID))    {    if(arg++) string_builder_strcat(s, ", ");    if (t->car) low_describe_type(s, t->car);    string_builder_strcat(s, " ...");    }    t = t->cdr;    string_builder_sprintf(s, " : %T)", t);