Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-06

Delphi converter error

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Hi,

Just ran the Delphi converter for fun on some Inno setup sources http://www.jrsoftware.org/isdl.php (issrc-5.5.0.zip) (multiplatform option disabled) and got some errors. Lazarus svn r37522

The convertor stopped with an error message
operator missing; press ok to ignore... etc

Is this easy to fix?

Thanks,
Reinier

Messages below:
* Converting file D:\Cop\t\inno\Projects\Compil32.dpr * *** Find all unit files ... ***
Added Package LCL as a requirement.
Replaced call SetCurrentDir(GetSystemDir);
with SetCurrentDirUTF8(GetSystemDir); { *Converted from SetCurrentDir* }
Added unit FileUtil to uses section
Replaced call SetCurrentDir(PathExtractDir(NewParamStr(0))) with SetCurrentDirUTF8(PathExtractDir(NewParamStr(0))) { *Converted from SetCurrentDir* }
---------------------------------------------
EDelphiConverterError: Converter: ")" is missing from replacement function.
* Fixing used units for file D:\Cop\t\inno\Projects\Compil32.dpr * *** Converting unit files ... ***
* Converting file D:\Cop\t\inno\Projects\SafeDLLPath.pas *
* Converting file D:\Cop\t\inno\Projects\CompForm.pas *

Reply by email

Juha Manninen
to Reinier Olislagers

On Tue, Jun 5, 2012 at 8:10 AM, Reinier Olislagers <

Show quoted text 12 lines
wrote: Just ran the Delphi converter for fun on some Inno setup sources http://www.jrsoftware.org/isdl.php (issrc-5.5.0.zip) (multiplatform option disabled) and got some errors. Lazarus svn r37522 The convertor stopped with an error message operator missing; press ok to ignore... etc Is this easy to fix?

Yes, The InnoSetup source dir has a file "Version.inc" and there at line 50 is:

  {$IF Trunc(RTLVersion) = 15}

Remove it and the block following it.

The real problem is how to make the converter handle such errors better with accurate error messages. Codetools parser also need changes.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120616/6be74848/attachment.html>

Reply by email

Reinier Olislagers
to Juha Manninen
Juha Manninen wrote 22 lines
On Tue, Jun 5, 2012 at 8:10 AM, Reinier Olislagers < <mailto:>> wrote: Just ran the Delphi converter for fun on some Inno setup sources http://www.jrsoftware.org/isdl.php (issrc-5.5.0.zip) (multiplatform option disabled) and got some errors. Lazarus svn r37522 The convertor stopped with an error message operator missing; press ok to ignore... etc Is this easy to fix? Yes, The InnoSetup source dir has a file "Version.inc" and there at line 50 is: {$IF Trunc(RTLVersion) = 15} Remove it and the block following it. The real problem is how to make the converter handle such errors better with accurate error messages. Codetools parser also need changes.

Thanks, Juha. Was also more interested in getting the converter improved than the Inno Setup code ;)

Reply by email