Clyde Meli wrote:
Bpcompat already exists, and as far I am aware most of the stuff is now incorporated in the gpc library. Ah, I have one suggestion - please add FillChar and StrPas to the main library....
FillChar is already built into the compiler. StrPas is available under the name `CString2String' (which is more understandable than `StrPas' which tells almost nothing to me). In case you need it as `StrPas', here's the complete(!) BP compatible `Strings' unit for the next release of BPCompat (all the other CString functions are already or will then be in a RTS unit).
{ BP compatible strings unit. Everything else is in the RTS. Donated to the public domain. :-) }
unit Strings;
interface
uses GPC;
function StrPas (Str : CString) : TString;
implementation
function StrPas (Str : CString) : TString; begin StrPas := CString2String (Str) end;
end.
-- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan