From: xchaos Date: Fri, 11 Jan 2008 15:04:58 +0000 (+0000) Subject: namespace experiment X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=430e7902bb0ac308bff1302fadaa68dba97a8537;p=svn%2FCll1h%2F.git namespace experiment git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@10 4bb87942-c103-4e5a-b51c-0ebff58f8515 --- diff --git a/objects/cobjects.c b/objects/cobjects.c index 465231b..d75befb 100644 --- a/objects/cobjects.c +++ b/objects/cobjects.c @@ -27,10 +27,10 @@ struct Rect int x1; int y1; int x2; int y2; }; -void draw_tri(void *self) +void draw_tri(void *_self) { - struct Tri *t=(struct Tri *)self; - printf("%d,%d - %d,%d - %d,%d\n",t->x1,t->y1,t->x2,t->y2,t->x3,t->y3); + struct Tri *self=(struct Tri *)_self; + printf("%d,%d - %d,%d - %d,%d\n",self->x1,self->y1,self->x2,self->y2,self->x3,self->y3); }; void draw_rect(void *self)