In article 200212110315.EAA24582@goedel.fjf.gnu.de, Frank Heckenbach frank@g-n-u.de writes
Another stylistic comment (but maybe this was also only done for demonstration purposes): In generally, it's easier and more portable to use the predefined types (such as `CString', with automatic conversion from Pascal strings) and routines (such as `RmDir', file bindings or `Stat' if you need it for some reason) where they are available instead of direct system calls.
Agreed. However this is old code that was originally written for a different compiler and operating system. It was judged to be easier to port their interface library than to modify our code to use the gpc library. Maybe we will do the job properly in the fullness of time.
(Besides, if you do so, a better translation of `char *' would be `protected var Path: Cstring0'. Of course, then a function returning `Cstring0' could not be used for the actual parameter, but there's no guarantee that GPC will always pass value parameters as pointers.)
Thanks for the comment.
Apart from that, I can reproduce the problem and will try to fix it (martin6.pas).
Thanks. There is no urgency about this. I was simply experimenting with the latest alphas to see if we could provide any feedback: at least I succeeded in that aim:-) Our code runs very nicely with the existing stable version of gpc. We remain very grateful for all the efforts that you and Waldek are putting into the project.