Branch: Tag:


2014-04-26 12:06:41 by Henrik Grubbström (Grubba) <>

Runtime: Improved robustness of parent_storage().

Under some circumstances parent_storage() could return
a storage pointer to a class that had inherited the
parent program. Fix this by making sure that we get the
storage for the program that we expect to find as parent.

1062:   void string_builder_explain_not_implements(struct string_builder *s,    struct program *a,    struct program *b); - PMOD_EXPORT void *parent_storage(int depth); + PMOD_EXPORT void *parent_storage(int depth, struct program *expected);   PMOD_EXPORT void change_compiler_compatibility(int major, int minor);   void make_area_executable (char *start, size_t len);   void make_program_executable(struct program *p);