[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] a macro problem (tcc 0.9.15)
From: |
Mitchell N Charity |
Subject: |
[Tinycc-devel] a macro problem (tcc 0.9.15) |
Date: |
Mon, 16 Dec 2002 05:52:45 -0500 |
I encountered the following while trying to compile parrot
(www.parrotcode.org) with tcc...
/*
If wrap() is a macro, then tcc fails with:
t04.c:31: field not found
If wrap() is a function, then it works.
tcc 0.9.15, RedHat 7.something
*/
typedef struct {
int flags;
} A;
typedef struct {
A obj;
} B;
typedef struct {
B data;
} C;
extern C *x;
#define flags obj.flags
#if 1
#define wrap(expr) (expr)
#else
int wrap(int);
#endif
void demo(void) {
wrap(x->data.flags);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] a macro problem (tcc 0.9.15),
Mitchell N Charity <=