Skip to content

CreateDynamicImport(0) does not insert var before function declarations #34

@michkowalczuk

Description

@michkowalczuk

Below you can find a sample Chet result with CreateDynamicImport(0) directive:
Delphi can not compile it because of the lack of the var keyword before function declarations.

type
   MyEnum= (
    enum0= 0,
    enum1= 1,
    enum2= 2);
  PMyEnum = ^MyEnum;

  // more types...

  MyRecord= record
    a: Double;
    b: Double;
    c: Double;
  end;

// here should be var!

  MyFunc1: function(...): MyResult; cdecl;
  MyFunc2: function(...): MyResult; cdecl;
  // more functions...

I need to use PostProcess / InsertLine to insert var after the last type declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions