Re: [AD] [4.3] get_executable_name

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


On Wednesday 30 August 2006 1:16 am, Evert Glebbeek wrote:
> > Allegro aught to be passed argv and argc. explicitly.
>
> How?
> Bear in mind: we'd rather not have a magic main hack, Allegro can be
> initialised outside of main() and main can be either main(void) or
> main(int, char**).
> And apart from get_executable_name, why?
>
> I don't have very much against it, but there are some pitfalls and caveats
> to be aware of.

Yeah, I'm not sure.

> > A relative path plus the current dir can be mashed together to provide
>
> the
>
> > full path.
>
> Not if the cwd has changed since the program started.

That would be the users fault. j/k. I'll hack the old code into the new.

> Evert
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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