Ignore:
Timestamp:
Aug 10, 2010, 1:48:38 PM (14 years ago)
Author:
george
Message:

Fix: View proper source file after click to error message.
Made partial changes to support unit interface and implementation sections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/Produce/UProducerC.pas

    r54 r55  
    115115  Emit('#define uint32 unsigned long');
    116116  Emit('');
    117   GenerateUses(Module.UsedModules);
    118   GenerateCommonBlock(Module, '');
     117  if Module is TModuleProgram then begin
     118    GenerateUses(TModuleProgram(Module).UsedModules);
     119    GenerateCommonBlock(TModuleProgram(Module).Body, '');
     120  end;
    119121end;
    120122
Note: See TracChangeset for help on using the changeset viewer.