comparison test/ps2.c @ 872:11abda130b91

struct init on going ...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 01 Apr 2014 16:57:16 +0900
parents bdb63568ca08
children 5313ed059cee
comparison
equal deleted inserted replaced
871:662e2b778fc2 872:11abda130b91
74 bzero(&work,sizeof(work)); work[1][1] = 0.33; 74 bzero(&work,sizeof(work)); work[1][1] = 0.33;
75 75
76 if(!this) return; 76 if(!this) return;
77 if(this->mtd) this->mtd( this ); 77 if(this->mtd) this->mtd( this );
78 if(this->draw) this->draw( this, work, base ); 78 if(this->draw) this->draw( this, work, base );
79 printf("#0078:offset draw %ld\n",((char*)(&this->draw) - ((char*)&this->object))); 79 printf("#0078:offset draw %ld\n",(long)((char*)(&this->draw) - ((char*)&this->object)));
80 printf("#0079:offset next %ld\n",((char*)(&this->next) - ((char*)&this->object))); 80 printf("#0079:offset next %ld\n",(long)((char*)(&this->next) - ((char*)&this->object)));
81 81
82 if(this->child) graphic_ObjNode_draw( this->child, work ); 82 if(this->child) graphic_ObjNode_draw( this->child, work );
83 if(this->next) graphic_ObjNode_draw( this->next, base ); 83 if(this->next) graphic_ObjNode_draw( this->next, base );
84 return; 84 return;
85 } 85 }