Writing Externals in Pascal?

Alejandro Tejada capellan2000 at gmail.com
Mon Jul 5 13:06:02 EDT 2010


Hi Scott,

Hopefully, you could find help among the Free Pascal
developers and programmers to workaround the
problems that Mark Wieder reported in 2004:
--------------------------------------------------
http://quality.runrev.com/qacenter/show_bug.cgi?id=1526

Presently only external libraries in Microsoft-compatible
binary form will work with the engine. This is due to the
necessity of recognizing a signature of the exported
Xtable and Xname items. It is impossible to get the level
of granularity of compiler options with Borland's compilers
(C++ Builder, Delphi) to get the combination of:

1. no leading underscore
2. mixed case exported symbols
3. C-style parameter passing (first to last)
4- C-style stack frames (calling program cleans up
the stack)

The way around this would be to accept alternate entry
points of _Xtable and _Xname if the first check of Xtable
and Xname failed. This would open up the development
of external libraries to existing BCCB and Delphi programmers
and allow the simple modification of libraries that currently
exist for other environments. To me this seems like a simple
change to the engine with large paybacks in terms of
opening things up for third-parties to develop add-ons.
----------------------------------------------------
Al


-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Writing-Externals-in-Pascal-tp2278157p2278631.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list