pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:7574:    push_type(T_MANY);    return pop_unfinished_type();    }   /* This error is bogus /Hubbe    Pike_fatal("zzap_function_return() called with unexpected value: %d\n",    EXTRACT_UCHAR(a));   */    return NULL;   }    + struct pike_type *get_lax_type_of_svalue( const struct svalue *c ) + { +  struct pike_type *res; +  if (TYPEOF(*c) == T_INT) +  { +  if (c->u.integer) +  copy_pike_type(res, int_type_string); +  else +  copy_pike_type(res, zero_type_string); +  } +  else if (TYPEOF(*c) == T_STRING ) +  copy_pike_type(res, string_type_string); +  else +  return get_type_of_svalue(c); +  +  return res; + } +    struct pike_type *get_type_of_svalue(const struct svalue *s)   {    struct pike_type *ret;    switch(TYPEOF(*s))    {    case T_FUNCTION:    if(SUBTYPEOF(*s) == FUNCTION_BUILTIN)    {    copy_pike_type(ret, s->u.efun->type);    }else{