On Tue, 26 Aug 2008, Szakáts Viktor wrote:

Hi Viktor,

> I see what you mean, hbmain.c contains declarations
> of stuff found in the RTL, and some of those are not
> even true these days. This declarations should come
> from some .ch files, instead of being hardcoded, but
> that's just the tip of the iceberg.

Exactly. It's also the only one part of Harbour compiler
which is not MT safe due to this static tables. If you
look carefully at the code then you will find that this
static declarations forced additional hacks for freeing
memory which also effected search order when they are
used, etc.
In practice it has to be written from scratch without
any hard coded rules. Definitions should come from .ch
files or some others with function and class prototypes
(f.e. .ph), compiler should have support for automatic
generation such prototype files and finally if we will
find it useful then we can add support to generate code
for hard coded rules just like built in PP tables are
created by hbpp from our std.ch.

> Can't we just remove this stuff?

Probably it's the best idea. They do not give any valuable
information now. Anyhow the code should be updated for empty
tables. I'll make it and comment the static tables.

best regards
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to