Branch: Tag:

2014-02-26

2014-02-26 22:59:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: Added support for casting types to program.

Casting an object type value to program will now result in the
corresponding program. eg:

program p = (program)_typeof(o);

is approximately the same as

program p = object_program(o);

1042:   PMOD_EXPORT char *get_storage(struct object *o, struct program *p);   PMOD_EXPORT struct program *low_program_from_function(struct object *o, INT32 i);   PMOD_EXPORT struct program *program_from_function(const struct svalue *f); + PMOD_EXPORT struct program *program_from_type(const struct pike_type *t);   PMOD_EXPORT struct program *low_program_from_svalue(const struct svalue *s,    struct object **parent_obj,    int *parent_id);