curses suggestions wanted_(re)

Thu, 7 Aug 1997 13:24:42 +0200 (MET DST)


According to Ken Linder:
> 
> I have come across a problem (bug? feature?) trying to pass a string schema
> parameter to a procedure with a parameter defined as a __cstring__.  Please
> note that I am still using ver 2.0 so if this is fixed in the newer version,
> let me know.  Here is the problem:

It is fixed.  Also the problem which occured with `foofoo' in a Unit.

Since there are more bugs with `CString' in gpc-2.0, I suggest you to
upgrade to gpc-970714.

> [...] The way I understand linking to a C rtn like:
> function cfoo(SomeNum : integer) : integer; C;
> requires that I link a C library that contains a function called `cfoo'.

    Function CFoo ( SomeNum: Integer ): Integer; AsmName 'foo';

together with the Pascal version

    Function Foo ( SomeNum: Integer ): Integer;  (* yields 'Foo' *)

solves the problem.

Greetings,

    Peter

 Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
 maintainer GNU Pascal [970714] - http://home.pages.de/~gnu-pascal/ [970125]


Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es