Skip to content

Commit 2cd7ad1

Browse files
committed
Merge branch 'feature/update-delphi-support-to-10.4'
2 parents d9177d6 + 9c44678 commit 2cd7ad1

12 files changed

+91
-8
lines changed

Diff for: Docs/Design/FileFormats/config.html

+27
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,15 @@ <h4>
247247
<li>
248248
<em>D101B</em> &ndash; Delphi 10.1 Berlin
249249
</li>
250+
<li>
251+
<em>D102T</em> &ndash; Delphi 10.2 Tokyo
252+
</li>
253+
<li>
254+
<em>D103R</em> &ndash; Delphi 10.3 Rio
255+
</li>
256+
<li>
257+
<em>D104S</em> &ndash; Delphi 10.4 Sydney
258+
</li>
250259
<li>
251260
<em>FPC</em> &ndash; Free Pascal
252261
</li>
@@ -536,6 +545,24 @@ <h4>
536545
<dd>
537546
Indicates whether Delphi 10.1 Berlin was included in the search.
538547
</dd>
548+
<dt>
549+
<code class="key">D102T</code> (Boolean)
550+
</dt>
551+
<dd>
552+
Indicates whether Delphi 10.2 Tokyo was included in the search.
553+
</dd>
554+
<dt>
555+
<code class="key">D103R</code> (Boolean)
556+
</dt>
557+
<dd>
558+
Indicates whether Delphi 10.3 Rio was included in the search.
559+
</dd>
560+
<dt>
561+
<code class="key">D104S</code> (Boolean)
562+
</dt>
563+
<dd>
564+
Indicates whether Delphi 10.4 Sydney was included in the search.
565+
</dd>
539566
<dt>
540567
<code class="key">FPC</code> (Boolean)
541568
</dt>

Diff for: Docs/Design/FileFormats/export.html

+9
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,15 @@ <h2>
551551
<li>
552552
<em>d101b</em> &ndash; Delphi 10.1 Berlin compiler
553553
</li>
554+
<li>
555+
<em>d102t</em> &ndash; Delphi 10.2 Tokyo compiler
556+
</li>
557+
<li>
558+
<em>d103r</em> &ndash; Delphi 10.3 Rio compiler
559+
</li>
560+
<li>
561+
<em>d104s</em> &ndash; Delphi 10.4 Sydney compiler
562+
</li>
554563
<li>
555564
<em>fpc</em> &ndash; Free Pascal compiler
556565
</li>

Diff for: Docs/Design/FileFormats/main-db.html

+12
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ <h4>
196196
DelphiXE8=&lt;Y|N|Q|W&gt;
197197
Delphi10S=&lt;Y|N|Q|W&gt;
198198
Delphi101B=&lt;Y|N|Q|W&gt;
199+
Delphi102T=&lt;Y|N|Q|W&gt;
200+
Delphi103R=&lt;Y|N|Q|W&gt;
201+
Delphi104S=&lt;Y|N|Q|W&gt;
199202
FPC=&lt;Y|N|Q|W&gt;
200203
Extra=&lt;extra-info-REML&gt;
201204
StandardFormat=&lt;0|1&gt;
@@ -403,6 +406,15 @@ <h4>
403406
<li>
404407
<code class="key">Delphi101B</code> – Delphi 10.1 Berlin compiler
405408
</li>
409+
<li>
410+
<code class="key">Delphi102T</code> – Delphi 10.2 Tokyo compiler
411+
</li>
412+
<li>
413+
<code class="key">Delphi103R</code> – Delphi 10.3 Rio compiler
414+
</li>
415+
<li>
416+
<code class="key">Delphi104S</code> – Delphi 10.4 Sydney compiler
417+
</li>
406418
<li>
407419
<code class="key">FPC</code> – Free Pascal compiler
408420
</li>

Diff for: Docs/Design/FileFormats/user-db.html

+9
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,15 @@ <h3>
569569
<li>
570570
<em>d101b</em> &ndash; Delphi 10.1 Berlin compiler
571571
</li>
572+
<li>
573+
<em>d102t</em> &ndash; Delphi 10.2 Tokyo compiler
574+
</li>
575+
<li>
576+
<em>d103r</em> &ndash; Delphi 10.3 Rio compiler
577+
</li>
578+
<li>
579+
<em>d104s</em> &ndash; Delphi 10.4 Sydney compiler
580+
</li>
572581
<li>
573582
<em>fpc</em> &ndash; Free Pascal compiler
574583
</li>

Diff for: Docs/ReadMe.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ online DelphiDabbler Code Snippets database as well as maintain a database of
1414
user-defined snippets.
1515

1616
It displays details of each snippet in the database and can test-compile them
17-
with each installed Win32 version of Delphi from Delphi 2 to Delphi 10.1 Berlin
17+
with each installed Win32 version of Delphi from Delphi 2 to Delphi 10.4 Sydney
1818
and Free Pascal.
1919

2020
Compilable Pascal units can be created that contain selected snippets.
@@ -201,7 +201,7 @@ Configuring CodeSnip to Work With Your Compilers
201201
================================================================================
202202

203203
A feature of CodeSnip is its ability to test compile snippets with any installed
204-
Windows 32 version of Delphi (from Delphi 2 to Delphi 10.1 Berlin) and
204+
Windows 32 version of Delphi (from Delphi 2 to Delphi 10.4 Sydney) and
205205
FreePascal, providing some simple rules are followed.
206206

207207
When CodeSnip is first installed it knows nothing about the available compilers
@@ -218,7 +218,7 @@ dialogue" in the help file index).
218218

219219
Each user can configure compilers differently.
220220

221-
Delphi XE2 to XE8 and Delphi 10.1 Berlin may need to be configured to search for
221+
Delphi XE2 to XE8 and Delphi 10.4 Sydney may need to be configured to search for
222222
required units in the correct namespaces. This is explained in the Add/Edit
223223
Snippet Dialogue Box help topic and in the FAQ at
224224
https://github.com/delphidabbler/codesnip-faq/blob/master/UsingCodeSnip.md#faq-1

Diff for: Src/Compilers.UBDS.pas

+18
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ function TBDSCompiler.GetIDString: string;
144144
Result := 'D10S';
145145
ciD101B:
146146
Result := 'D101B';
147+
ciD102T:
148+
Result := 'D102T';
149+
ciD103R:
150+
Result := 'D103R';
151+
ciD104S:
152+
Result := 'D104S';
147153
else
148154
raise EBug.Create(ClassName + '.GetIDString: Invalid ID');
149155
end;
@@ -162,6 +168,9 @@ function TBDSCompiler.GetName: string;
162168
sDelphiXE8 = 'Delphi XE8'; // name of Delphi XE8 compiler
163169
sDelphi10S = 'Delphi 10 Seattle'; // name of Delphi 10 compiler
164170
sDelphi101B = 'Delphi 10.1 Berlin'; // name of Delphi 10.1 compiler
171+
sDelphi102T = 'Delphi 10.2 Tokyo'; // name of Delphi 10.2 compiler
172+
sDelphi103R = 'Delphi 10.3 Rio'; // name of Delphi 10.3 compiler
173+
sDelphi104S = 'Delphi 10.4 Sydney'; // name of Delphi 10.4 compiler
165174
begin
166175
case GetID of
167176
ciDXE:
@@ -184,6 +193,12 @@ function TBDSCompiler.GetName: string;
184193
Result := sDelphi10S;
185194
ciD101B:
186195
Result := sDelphi101B;
196+
ciD102T:
197+
Result := sDelphi102T;
198+
ciD103R:
199+
Result := sDelphi103R;
200+
ciD104S:
201+
Result := sDelphi104S;
187202
else
188203
Result := Format(sCompilerName, [ProductVersion]);
189204
end;
@@ -214,6 +229,9 @@ function TBDSCompiler.InstallationRegKey: string;
214229
ciDXE8 : Result := '\Software\Embarcadero\BDS\16.0';
215230
ciD10S : Result := '\Software\Embarcadero\BDS\17.0';
216231
ciD101B : Result := '\Software\Embarcadero\BDS\18.0';
232+
ciD102T : Result := '\Software\Embarcadero\BDS\19.0';
233+
ciD103R : Result := '\Software\Embarcadero\BDS\20.0';
234+
ciD104S : Result := '\Software\Embarcadero\BDS\21.0';
217235
else raise EBug.Create(ClassName + '.InstallationRegKey: Invalid ID');
218236
end;
219237
end;

Diff for: Src/Compilers.UGlobals.pas

+5-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ interface
4040
ciDXE8, // Delphi XE8
4141
ciD10S, // Delphi 10 Seattle
4242
ciD101B, // Delphi 10.1 Berlin
43+
ciD102T, // Delphi 10.2 Tokyo
44+
ciD103R, // Delphi 10.3 Rio
45+
ciD104S, // Delphi 10.4 Sydney
4346
ciFPC // Free Pascal
4447
);
4548

@@ -52,7 +55,8 @@ interface
5255
/// compilers.</summary>
5356
cBDSCompilers = [
5457
ciD2005w32, ciD2006w32, ciD2007, ciD2009w32, ciD2010, ciDXE, ciDXE2,
55-
ciDXE3, ciDXE4, ciDXE5, ciDXE6, ciDXE7, ciDXE8, ciD10S, ciD101B
58+
ciDXE3, ciDXE4, ciDXE5, ciDXE6, ciDXE7, ciDXE8, ciD10S, ciD101B, ciD102T,
59+
ciD103R, ciD104S
5660
];
5761

5862
const

Diff for: Src/DBIO.UIniDataReader.pas

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ implementation
235235
'Delphi2005Win32', 'Delphi2006Win32', 'Delphi2007', 'Delphi2009Win32',
236236
'Delphi2010', 'DelphiXE', 'DelphiXE2', 'DelphiXE3', 'DelphiXE4',
237237
'DelphiXE5', 'DelphiXE6', 'DelphiXE7', 'DelphiXE8', 'Delphi10S',
238-
'Delphi101B', 'FPC'
238+
'Delphi101B', 'Delphi102T', 'Delphi103R', 'Delphi104S', 'FPC'
239239
);
240240

241241
{ TIniDataReader }

Diff for: Src/FrCodeGenPrefs.pas

+3
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ procedure TCodeGenPrefsFrame.PopulatePreDefCompilerMenu;
679679
AddMenuItem('Delphi XE8', 29.0);
680680
AddMenuItem('Delphi 10 Seattle', 30.0);
681681
AddMenuItem('Delphi 10.1 Berlin', 31.0);
682+
AddMenuItem('Delphi 10.2 Tokyo', 32.0);
683+
AddMenuItem('Delphi 10.3 Rio', 33.0);
684+
AddMenuItem('Delphi 10.4 Sydney', 34.0);
682685
end;
683686

684687
procedure TCodeGenPrefsFrame.PreDefCompilerMenuClick(Sender: TObject);

Diff for: Src/Help/HTML/about_compiler_checks.htm

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>
3434
</p>
3535
<p>
3636
The supported compilers are the Win32 Delphi compilers from Delphi 2 to
37-
Delphi 10.1 Berlin and Free Pascal.
37+
Delphi 10.4 Sydney and Free Pascal.
3838
</p>
3939
<h2>
4040
Configuring CodeSnip

Diff for: Src/Help/HTML/dlg_configcompilers.htm

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ <h2>
281281
</h2>
282282
<p>
283283
<em>CodeSnip</em> can automatically detect the presence of Win 32 Delphi
284-
compilers from Delphi 2 to Delphi 10.1 Berlin. Click the <em>Detect Delphi
284+
compilers from Delphi 2 to Delphi 10.4 Sydney. Click the <em>Detect Delphi
285285
Compilers</em> button to do this. Any supported installed version of
286286
Delphi will be recorded. This can save considerable time and avoid
287287
errors.

Diff for: Src/UXMLDocConsts.pas

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ interface
6767
'd2', 'd3', 'd4', 'd5', 'd6', 'd7',
6868
'd2005', 'd2006', 'd2007', 'd2009', 'd2010',
6969
'dXE', 'dXE2', 'dXE3', 'dDX4' {error, but in use},
70-
'dXE5', 'dXE6', 'dXE7', 'dXE8', 'd10s', 'd101b',
70+
'dXE5', 'dXE6', 'dXE7', 'dXE8',
71+
'd10s', 'd101b', 'd102t', 'd103r', 'd104s',
7172
'fpc'
7273
);
7374

0 commit comments

Comments
 (0)