Re: [AD] Export AL_VECTOR

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


On Thu, June 19, 2008 3:23 pm, Thomas Fjellstrom said:
>> Something like this?
>>
>>     AL_PATH *al_path_init(void);
>>     AL_PATH *al_path_init_from_string(const char *s, char delim);
>>     int al_path_num_components(AL_PATH *path);
>>     const char *al_path_index(AL_PATH *path, int i);
>>     void al_path_replace(AL_PATH *path, int i, const char *s);
>>     void al_path_delete(AL_PATH *path, int i);
>>     void al_path_insert(AL_PATH *path, int i, const char *s);
>>     const char *al_path_tail(AL_PATH *path);
>>     void al_path_drop_tail(AL_PATH *path);
>>     void al_path_append(AL_PATH *path, const char *s);
>>     void al_path_concat(AL_PATH *path, const AL_PATH *tail);
>>     char *al_path_to_string(AL_PATH *path, char delim);
>>     void al_path_free(AL_PATH *path);
> What does everyone else think about this api? Any problems with it?
> Any
> suggestions?

I think it looks nice, and in a way is probably easier to use than a
non standard vector type invented for this purpose.

Trent :{)>




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