Changeset 55 for branches/DelphiToC/Produce/UProducerPascal.pas
- Timestamp:
- Aug 10, 2010, 1:48:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/Produce/UProducerPascal.pas
r54 r55 84 84 procedure TProducerPascal.GenerateModule(Module: TModule); 85 85 begin 86 case Module.ModuleType of 87 mdProgram: Emit('program', False); 88 mdUnit: Emit('unit', False); 89 mdLibrary: Emit('library', False); 90 mdPackage: Emit('package', False); 91 end; 92 Emit(' ' + Module.Name + ';'); 93 Emit(''); 94 GenerateUses(Module.UsedModules); 95 GenerateCommonBlock(Module, ''); 96 Emit('.', False); 86 if Module is TModuleProgram then 87 with TModuleProgram(Module) do begin 88 Emit('program', False); 89 Emit(' ' + Name + ';'); 90 Emit(''); 91 GenerateUses(UsedModules); 92 GenerateCommonBlock(Body, ''); 93 Emit('.', False); 94 end else 95 if Module is TModuleUnit then Emit('unit', False) 96 else if Module is TModuleLibrary then Emit('library', False) 97 else if Module is TModulePackage then Emit('package', False); 97 98 end; 98 99
Note:
See TracChangeset
for help on using the changeset viewer.