Branch: Tag:


2013-05-31 17:33:01 by Per Hedbor <>

Added get_lax_type_of_svalue. Used for constant:s.

int(0..0) -> zero
int(X..Y) -> int
string(X..Y) -> string

This was done to remove some code duplication, and as an added feature
constant x = "foo"; now allows you to assign "f\xfff" when inheriting.

289:    node *args, INT32 *argno, INT32 flags);   struct pike_type *zzap_function_return(struct pike_type *t,    struct pike_type *fun_ret); + struct pike_type *get_lax_type_of_svalue( const struct svalue *s );   struct pike_type *get_type_of_svalue(const struct svalue *s);   struct pike_type *object_type_to_program_type(struct pike_type *obj_t);   PMOD_EXPORT char *get_name_of_type(TYPE_T t);