Hi, On Tue, 2012-06-26 at 12:23 +0300, Gennadiy Poryev wrote: > Hello, > > In my web project I need to validate input (uploaded) file against > Pascal syntax. Since it should be done using server-side scripting > with restricted environment and lowered privileges, I’d like fpc to > not create any files whatsoever; preferably to not use file write > operations at all, relying solely on process exit code. Quick scroll > of fpc -h did not reveal any relevant modes. Can (and how) this be > done? >
I am not aware of anything that fits completely, but maybe using fpc -sr -FE<some-temp-dir> helps. The -sr skips the linking and assembling stage (and even register allocation, for performance), and you can then just delete any output in some-temp-dir. Thomas _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel