CodeSnip Old Code (SVN)
A repository for source code snippets, designed with Pascal in mind.
Brought to you by:
delphidabbler
--- a/trunk/Src/UFreePascalCompiler.pas +++ b/trunk/Src/UFreePascalCompiler.pas @@ -94,9 +94,7 @@ uses // Delphi - SysUtils, Windows {for inlining}, - // Project - UUtils; + SysUtils, Windows {for inlining}; { TFreePascalCompiler } @@ -116,8 +114,12 @@ @param Project [in] Name of project (source file) } begin - SysUtils.DeleteFile(DirToPath(Path) + ChangeFileExt(Project, '.o')); - SysUtils.DeleteFile(DirToPath(Path) + ChangeFileExt(Project, '.ppu')); + SysUtils.DeleteFile( + IncludeTrailingPathDelimiter(Path) + ChangeFileExt(Project, '.o') + ); + SysUtils.DeleteFile( + IncludeTrailingPathDelimiter(Path) + ChangeFileExt(Project, '.ppu') + ); end; function TFreePascalCompiler.GetDefaultSwitches: string;