[fpc-pascal] run pascal programs as scripts

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Mar 31 09:20:14 CEST 2011

On Thu, 31 Mar 2011, Darius Blaszyk wrote:

> I created a patch to make instantFPC run on win32. To make the app run I
> implemented TProcess as windows does not understands fpexecv.  Even better
> would be to use TProcess for all platforms, thus removing the need of
> defines and we could drop the unix and windows units.

I doubt it since execv actually replaces the current running process with the
indicated binary (i.e. the binary you just compiled).

> The only script that did not work for me was exitcode.pas. I will have to look more in detail how to support this.

That will require an alternative to fpexecv.


More information about the fpc-pascal mailing list