Re: [AD] Individual header dependency |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2003-03-26, Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx> wrote:
> BTW, I can't do 'void my_func(struct BITMAP *bmp)' because I get a
> warning from gcc saying that the struct is defined inside a parameter
> list. Putting 'struct BITMAP;' on a separate line before silences
> this. How is gcc so pedantic?
See the GCC manual, "Disappointments and Misunderstandings".
> Is it a bad idea to use the first
> idiom in header files? I remember doing that at work constantly to
> avoid including large header files and it worked ok...
It's fine, and IMHO preferable.
--
王浩禎