Hi,

Most if not all structures are defined in Agar's code this way:

"""
typedef struct ag_font {
    [...]
} AG_Font;
"""

It prevents to forward-declare AG_Font, whereas:

"""
typedef struct  AG_Font {
    [...]
} AG_Font;
"""

would be, AFAIK, as good, and would allow in a third-party header file something like:

"""
struct AG_Font ;

[...]

typedef ::Agar_Font LowLevelFont ;
"""

thus removing the need to include Agar's headers in that user header.


For example SDL does the same (ex: in include/SDL_video.h for SDL_Surface).
Unless ag_font and al have a special interest/meaning, would it be possible to replace them by their counterparts (ex: AG_Font)?

Thanks in advance for any answer,
Best regards,

Olivier Boudeville.


_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to