From: Bernhard Held <Bernhard.Held@ot...> - 2001-06-27 21:23:00
I've still problems with the modifiers. The doc says, that idata, data and
code are "new", but most people use the "old" style _idata, _data and _code.
Is anything obsolete? What do you recommend?
What about the near modifier? Am I wrong or SDCC?
char idata a;
char near *p;
p = a;
warning *** pointer being cast to incompatible type
warning *** from type '_idata *char ' to type '_near * char '
From: Johan Knol <johan.knol@id...> - 2001-06-28 01:22:14
> f ()
> char idata a;
> char near *p;
> p = a;
> warning *** pointer being cast to incompatible type
> warning *** from type '_idata *char ' to type '_near * char '
This can easely be changed in checkSClass() ( that soon will be merged with
checkType(), checkFunction() and checkTypeSanity() ) but I am not sure about
the difference between _idata data _near and xdata _xdata etc. I think this
is just a matter of the parser e.g., xdata should be placed before the type
while _xdata should be placed after the type.
We should clearly state the rules here, so obsoletes can be removed (and
documentation can be updated :).