"mallinfo" in GPC?

Prof. A Olowofoyeku (The African Chief) african_chief at bigfoot.com
Tue Mar 27 14:12:11 CEST 2001


On 27 Mar 2001, at 7:40, Tomasz Kowaltowski wrote:

> It works, but if I use the directive "--borland-pascal", the compiler
> complains about the declaration:
> 
>    function Mallinfo : mallocinfo; asmname 'mallinfo';

Borland Pascal does not understand "asmname".

> Is there is any way around this problem?

Why do you need to use the --borland-pascal switch? GPC should be able to 
cope with BP code without using that switch. However, if you do need to 
use the switch, you might try this;

{$gnu-pascal}
function Mallinfo : mallocinfo; asmname 'mallinfo';
{$borland-pascal} <-- I am not sure if this exists!



Best regards, The Chief
---------
Prof. Abimbola Olowofoyeku (The African Chief)
Author of Chief's Installer Pro for Win32
Email: African_Chief at bigfoot.com
http://www.bigfoot.com/~african_chief/




More information about the Gpc mailing list