[YAMos-dev] Re: YAM build broken for OS3

  • From: Jens Langner <Jens.Langner@xxxxxxxxxxxxxx>
  • To: yamos-dev@xxxxxxxxxxxxx
  • Date: Mon, 28 Feb 2005 18:52:15 +0100

Gunther Nikl wrote:

However, my approach to correct that would be to introduce such a "#define NewMinList NewList" like I proposed.

  Why is that a correct solution? If NewMinList isn't a macro your approch

You are probably right. Placing a preprocessor define there would cause problems with NDK where NewMinList is an exec function. So we would have to encapsulate that define into another bunch of defines to catch that.
So I would definitly say, lets replace all NewMinList by NewList calls for the sake of simplicity.

See above. This time its not a simple NDK issue. In this case you woold
need a wrapper if you insist in using this function. It could be added
to extra.h (thats where I placed my macro to get the tree compiling).
The macro can check for exec v45 or use the exec function unconditional
for OS4.

Oh no. please no real wrapper or stub function. Just a plain preprocessor macro would be fine or simply just change all NewMinList
by NewList. But definitly no wrapper function please.

I wrote *macro*! A macro that either checks Exec version or simply calls NewMinList() when compiling for OS4.

A ok. I thought you proposed a stub/wrapper function. A macro would be probably fine, but I guess that would be simply overkill. So just replacing NewMinList by NewList() calls is really the better approach. So go ahead.

Jens Langner                                         Ph: +49-351-4716545
Lannerstrasse 1
01219 Dresden                                Jens.Langner@xxxxxxxxxxxxxx
Germany                                      http://www.jens-langner.de/
YAMOS developers mailing list - http://www.freelists.org/list/yamos-dev
Listserver help.......: yamos-dev-request@xxxxxxxxxxxxx, subject "HELP"
Unsubscribe....: yamos-dev-request@xxxxxxxxxxxxx, subject "UNSUBSCRIBE"

Other related posts: