Re: [AD] Allegro 4.2 todos

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Headers inside include/allegro are all private headers included by
> allegro.h, so rand.h will never appear in user programs, but it'll be
> implicitely included.

Hum... no, headers inside include/allegro are public, otherwise they would be 
in include/allegro/internal.

Quoting ahack.html:

"Header Files

allegro.h lives in the include/ directory. It is only a placeholder which 
includes other headers which live in the include/allegro/ tree. The reason 
for this slightly odd approach is that allegro.h can include things like 
"allegro/keyboard.h", which will work both in-situ within the build 
directory, and if we copy allegro.h to the system include directory and the 
other headers into system_include/allegro/. This avoids cluttering the 
system directories with lots of our headers, while still allowing programs 
to just #include <allegro.h>, and also makes it possible for people to 
access keyboard stuff with #include <allegro/keyboard.h>. "

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/