- Timestamp:
- Jul 31, 2012, 4:06:07 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 3 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/TranspascalCompiler.lpk
r67 r70 9 9 <PathDelim Value="\"/> 10 10 <SearchPaths> 11 <OtherUnitFiles Value="Analyze;Target;Target\Interpretter;Target\ASM8051;Target\Java;Target\GCC;Target\PHP;Target\Delphi;Target\Dynamic C;Target\XML;Target\NASM "/>11 <OtherUnitFiles Value="Analyze;Target;Target\Interpretter;Target\ASM8051;Target\Java;Target\GCC;Target\PHP;Target\Delphi;Target\Dynamic C;Target\XML;Target\NASM;Modules\Pascal"/> 12 12 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/> 13 13 </SearchPaths> … … 21 21 <IgnoredMessages idx5023="True" idx5024="True" idx5025="True" idx5026="True" idx5027="True" idx5028="True" idx5029="True" idx5030="True" idx5031="True"/> 22 22 </CompilerMessages> 23 <CustomOptions Value="-dSINGLE_PRODUCER"/>24 23 <CompilerPath Value="$(CompPath)"/> 25 24 </Other> 26 25 </CompilerOptions> 27 26 <Version Minor="1"/> 28 <Files Count="2 0">27 <Files Count="21"> 29 28 <Item1> 30 29 <Filename Value="UCompiler.pas"/> … … 52 51 </Item6> 53 52 <Item7> 54 <Filename Value=" Analyze\UAnalyzerPascal.pas"/>53 <Filename Value="Modules\Pascal\UAnalyzerPascal.pas"/> 55 54 <UnitName Value="UAnalyzerPascal"/> 56 55 </Item7> … … 107 106 <UnitName Value="UTargetNASM"/> 108 107 </Item20> 108 <Item21> 109 <Filename Value="Modules\Pascal\UModulePascal.pas"/> 110 <UnitName Value="UModulePascal"/> 111 </Item21> 109 112 </Files> 110 113 <Type Value="RunAndDesignTime"/> 111 <RequiredPkgs Count=" 3">114 <RequiredPkgs Count="4"> 112 115 <Item1> 113 <PackageName Value="TemplateGenerics"/> 116 <PackageName Value="ModularSystem"/> 117 <MinVersion Minor="1" Valid="True"/> 114 118 </Item1> 115 119 <Item2> 116 <PackageName Value=" LCL"/>120 <PackageName Value="TemplateGenerics"/> 117 121 </Item2> 118 122 <Item3> 123 <PackageName Value="LCL"/> 124 </Item3> 125 <Item4> 119 126 <PackageName Value="FCL"/> 120 127 <MinVersion Major="1" Valid="True"/> 121 </Item 3>128 </Item4> 122 129 </RequiredPkgs> 123 130 <UsageOptions> -
trunk/Compiler/TranspascalCompiler.pas
r67 r70 12 12 UTargetASM8051, UTargetGCC, UProducerGCC, UProducerPascal, UTargetDelphi, 13 13 UTargetPHP, UTargetJava, UTargetXML, UTargetInterpretter, UTargetNASM, 14 LazarusPackageIntf;14 UModulePascal, LazarusPackageIntf; 15 15 16 16 implementation -
trunk/Compiler/UAnalyzer.pas
r68 r70 83 83 end; 84 84 85 // TListAnalyzer = TGObjectList<Integer, TAnalyzer> 85 { TListAnalyzer } 86 86 87 TListAnalyzer = class(TListObject) 88 function SearchBySysName(Name: string): TAnalyzer; 89 procedure LoadToStrings(Strings: TStrings); 87 90 end; 88 91 … … 91 94 92 95 implementation 96 97 { TListAnalyzer } 98 99 function TListAnalyzer.SearchBySysName(Name: string): TAnalyzer; 100 var 101 I: Integer; 102 begin 103 I := 0; 104 while (I < Count) and (TAnalyzer(Items[I]).SysName <> Name) do Inc(I); 105 if I < Count then Result := TAnalyzer(Items[I]) 106 else Result := nil; 107 end; 108 109 procedure TListAnalyzer.LoadToStrings(Strings: TStrings); 110 var 111 I: Integer; 112 begin 113 try 114 Strings.BeginUpdate; 115 Strings.Clear; 116 for I := 0 to Count - 1 do 117 Strings.AddObject(TAnalyzer(Items[I]).Name, Items[I]); 118 finally 119 Strings.EndUpdate; 120 end; 121 end; 93 122 94 123 { TAnalyzer } -
trunk/Compiler/UCompiler.pas
r68 r70 6 6 7 7 uses 8 SysUtils, Variants, Classes, Contnrs, FileUtil, 8 SysUtils, Variants, Classes, Contnrs, FileUtil, UModularSystem, 9 9 Dialogs, USourceCode, UProducer, UAnalyzer, SpecializedList, UTarget; 10 10 … … 49 49 TargetFolder: string; 50 50 Targets: TListTarget; 51 Analyzers: TListAnalyzer; 51 52 MainSource: string; 53 ModuleManager: TModuleManager; 52 54 procedure ErrorMessage(Text: string; Position: TPoint; FileName: string); 53 55 constructor Create; virtual; … … 162 164 constructor TCompiler.Create; 163 165 begin 164 Analyzer := TAnalyzerPascal.Create;165 166 Targets := TListTarget.Create; 166 167 RegisterTargets(Self);168 169 167 AbstractCode := TProgram.Create; 170 168 ErrorMessages := TListObject.Create; 171 169 CompiledFolder := 'Compiled'; 170 ModuleManager := TModuleManager.Create(nil); 172 171 end; 173 172 … … 180 179 destructor TCompiler.Destroy; 181 180 begin 181 ModuleManager.Free; 182 182 Analyzer.Free; 183 183 AbstractCode.Free; -
trunk/IDE/Transpascal.lpi
r68 r70 80 80 </local> 81 81 </RunParams> 82 <RequiredPackages Count=" 8">82 <RequiredPackages Count="9"> 83 83 <Item1> 84 <PackageName Value=" GeneralRegistry"/>84 <PackageName Value="ModularSystem"/> 85 85 <MinVersion Minor="1" Valid="True"/> 86 86 </Item1> 87 87 <Item2> 88 <PackageName Value="GeneralRegistry"/> 89 <MinVersion Minor="1" Valid="True"/> 90 </Item2> 91 <Item3> 88 92 <PackageName Value="Common"/> 89 93 <MinVersion Minor="7" Valid="True"/> 90 </Item2>91 <Item3>92 <PackageName Value="CoolTranslator"/>93 94 </Item3> 94 95 <Item4> 96 <PackageName Value="CoolTranslator"/> 97 </Item4> 98 <Item5> 95 99 <PackageName Value="LCLBase"/> 96 100 <MinVersion Major="1" Release="1" Valid="True"/> 97 </Item4>98 <Item5>99 <PackageName Value="TemplateGenerics"/>100 101 </Item5> 101 102 <Item6> 102 <PackageName Value="T ranspascalCompiler"/>103 <PackageName Value="TemplateGenerics"/> 103 104 </Item6> 104 105 <Item7> 106 <PackageName Value="TranspascalCompiler"/> 107 </Item7> 108 <Item8> 105 109 <PackageName Value="SynEdit"/> 106 110 <MinVersion Major="1" Valid="True"/> 107 </Item 7>108 <Item 8>111 </Item8> 112 <Item9> 109 113 <PackageName Value="LCL"/> 110 </Item 8>114 </Item9> 111 115 </RequiredPackages> 112 <Units Count="2 1">116 <Units Count="20"> 113 117 <Unit0> 114 118 <Filename Value="Transpascal.lpr"/> … … 245 249 </Unit18> 246 250 <Unit19> 247 <Filename Value=" Common\UModule.pas"/>248 <IsPartOfProject Value="True"/> 249 <UnitName Value="U Module"/>251 <Filename Value="Modules\Pascal\UIDEModulePascal.pas"/> 252 <IsPartOfProject Value="True"/> 253 <UnitName Value="UIDEModulePascal"/> 250 254 </Unit19> 251 <Unit20>252 <Filename Value="Modules\Pascal\UModulePascal.pas"/>253 <IsPartOfProject Value="True"/>254 <UnitName Value="UModulePascal"/>255 </Unit20>256 255 </Units> 257 256 </ProjectOptions> … … 264 263 <SearchPaths> 265 264 <IncludeFiles Value="$(ProjOutDir)"/> 266 <OtherUnitFiles Value="Forms; Common;Modules\Pascal"/>265 <OtherUnitFiles Value="Forms;Modules\Pascal"/> 267 266 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/> 268 267 </SearchPaths> -
trunk/IDE/Transpascal.lpr
r68 r70 14 14 UFormAbout, UFormOptions, UFormTargets, 15 15 UFormProjectNew, UProjectTemplates, UFormTargetProject, UCore, 16 UFormTargetOptions, UFormExternalProducerOutput, U Module, UModulePascal;16 UFormTargetOptions, UFormExternalProducerOutput, UIDEModulePascal; 17 17 18 18 {$R *.res} -
trunk/IDE/UCore.pas
r69 r70 8 8 Classes, SysUtils, FileUtil, ULastOpenedList, UProject, UApplicationInfo, 9 9 UCompiler, URegistry, Registry, UDebugLog, UCoolTranslator, UTarget, 10 USourceCode, UModul e;10 USourceCode, UModularSystem; 11 11 12 12 type … … 67 67 68 68 uses 69 UFormMain, UProjectTemplates, U ModulePascal;69 UFormMain, UProjectTemplates, UIDEModulePascal; 70 70 71 71 { TCore } … … 107 107 LogParsing := False; 108 108 109 ModuleManager := TModuleManager.Create ;109 ModuleManager := TModuleManager.Create(nil); 110 110 RegisterModules; 111 111 end; … … 202 202 procedure TCore.RegisterModules; 203 203 begin 204 ModuleManager.Register (TModulePascal, True);204 ModuleManager.RegisterModule(TIDEModulePascal.Create); 205 205 end; 206 206
Note:
See TracChangeset
for help on using the changeset viewer.