From: Erik P. <epe...@iv...> - 2005-03-30 14:49:06
|
On Wed, 30 Mar 2005, Martin Leopold wrote: > On tir, 2005-03-29 at 12:56 +0100, Frieder Ferlemann wrote: > > SDCC accepts both as other 8051 compilers do also accept both versions. > > Changing this would probably highly unpopular. > > I was kind of expecting that answer =]. > > > Not all is lost though: Coincidently 3 days ago Erik introduced an > > option to use a more ANSI compliant double underscore before the > > memory space specifiers:) See the Changelog. > > But does his patch allow identifies to have the same names as the > storrage class definitions? Yes. Using either #pragma std-c89 or the command line option --std-c89 will disable the keywords that conflict with allowable identifiers. However, this support is only in the compiler itself at the momement; I still need to update the CPU specific header files to operate in either mode and update the manual (in the next few days, hopefully). The extended storage class keywords are now always available in a form with leading double underscores. This should not conflict, since the standard reserves this part of the namespace for the use of the compiler and its libraries. Erik |