[fpc-devel] New FPC Target: AROS

Karoly Balogh charlie at scenergy.dfmk.hu
Fri Aug 5 22:21:55 CEST 2011


Hi,

On Fri, 5 Aug 2011, Karoly Balogh wrote:

> The problem with your example in particular that /System/Development as
> Amiga path is perfectly valid, as it means ../System/Development in POSIX
> path, not System:Development/ Having this in FExpand() affects all apps
> using the RTL on AROS, and can end with tons of random side effects.

OK, lets clarify this. /System/Development can be interpreted both as
Amiga path and Un*x path. As Un*x path it indeed can be translated to
Amiga path System:Development/, but if it's an Amiga path, it can be
translated to ../System/Development in Un*x. You simply cannot tell by
parsing simply the input of FExpand inside FExpand, that what you should
do there, as both are valid options.

This is why a separate function is need to be added, where the context
(the calling environment) requires the path conversion.

Charlie



More information about the fpc-devel mailing list