[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sunday 28 September 2008, Evert Glebbeek wrote:
> On 28 Sep 2008, at 21:02, Thomas Fjellstrom wrote:
> > AL_PATH parses the path into the drive, path, and filename portion.
> > its not a
> > strict list of path items.
>
> Semantics, I say. As I said, if the last thing in the path that I
> pass in happens to be the name of a directory, I expect it to return
> that as the filename and the rest as the directory path. dirname/
> basename work the same way, except that they will disregard any
> trailing slash. I think your implementation is better in this regard.
I just think its better to pass in all paths from allegro with an appended /
so it knows what are dirs. See, if you call set_filename on an AL_PATH it
clobbers the old filename portion, so if you want it as part of the path, you
have to al_path_append(path, al_path_get_filename()), which to me sounds silly
;) but whatever works for you ;)
> Anyway, doesn't matter. I don't think we're even disagreeing on
> anything so probably no point in getting into a discussion about
> this. :)
k
> Evert
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx