libxine 的开发者文档有BUG?!
Posted on 2009年12月29日 09:27有关用C的OOP的 http://www.xine-project.org/hackersguide#id524081
my_stack_t *new_my_stack(void) {
intstack_t *this;
/* alloc memory */
this = malloc(sizeof(intstack_t));
/* fill in methods */
this->push = push;
this->add = add;
this->pop = pop;
/* init data fields */
this->stack_size = 0;
/* return public part */
return &this->stack;
}
this 指针应该无法访问到push函数指针的地址吧?!

