Re: [AD] Proposal for first step towards new api

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


> My proposal is at:
>
>  http://alleg.sourceforge.net/future/allegro_new_api_draft_one.txt (60Kb)

I personally would be more conservative: I'm rather for:
- just adding 'al_' to every platform-independent symbol:
    adjust_sample --> al_adjust_sample
    getpixel --> al_getpixel
    _getpixel --> _al_getpixel
    al_findfirst unchanged (findfirst is a very current pattern under
DOS/Windows, not find_first)

- keeping an init() and an exit() function, whatever name they get: init()
is a convenient way to avoid the complex prototype of install() and
al_remove() is IMHO not a very evocative name for an exit function,

- using a special rule for platform-specific symbols, in order to make
them more distinguishable:
    win_get_window --> alwin_get_window
    qnx_get_window --> alqnx_get_window

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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