On Saturday 23 February 2002 23:10, Brent Dax wrote:
>       struct foo_t {
>               int i;
>       };
>
>       typedef struct foo_t * FooPtr;
>       typedef struct foo_t FOO;
>
>       void bar(FooPtr);
>
>       void bar(FOO *x) {
>               x->i++;
>       }
>
>       int main() {
>               FOO* x=malloc(sizeof(struct foo_t));
>
>               x->i = -1;
>
>               bar(x);
>
>               return x->i;
>       }
>
> VC++ doesn't like stunts like that.  That's why I changed it to #define
> the types instead.

Yeah, except it'd be better fix the inconsistencies than hide them.  

-- 
Bryan C. Warnock
[EMAIL PROTECTED]

Reply via email to