Without knowing the details, it sounds to me like you could use a parent object to store this data in. You can use LOW_PARENT_INFO(Pike_fp->current_object, program) to find the parent object, and then get_storage() the usual way to get that objects storage, which if course could contain any c level data you'd like.