Skip to content

Commit ba00dac

Browse files
authored
put predefined version identifiers into categories (#4249)
1 parent f47f534 commit ba00dac

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

spec/version.dd

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,14 @@ $(H3 $(LEGACY_LNAME2 PredefinedVersions, predefined-versions, Predefined Version
216216

217217
$(LONGTABLE_2COLS 0.6, Predefined Version Identifiers,
218218
$(THEAD Version Identifier, Description),
219-
$(TROW $(ARGS $(D DigitalMars)) , $(ARGS DMD (Digital Mars D) is the compiler))
220-
$(TROW $(ARGS $(D GNU)) , $(ARGS GDC (GNU D Compiler) is the compiler))
221-
$(TROW $(ARGS $(D LDC)) , $(ARGS LDC (LLVM D Compiler) is the compiler))
222-
$(TROW $(ARGS $(D SDC)) , $(ARGS SDC (Snazzy D Compiler) is the compiler))
219+
220+
$(TROW *Host Compiler*)
221+
$(TROW $(ARGS $(D DigitalMars)) , $(ARGS DMD (Digital Mars D)))
222+
$(TROW $(ARGS $(D GNU)) , $(ARGS GDC (GNU D Compiler)))
223+
$(TROW $(ARGS $(D LDC)) , $(ARGS LDC (LLVM D Compiler)))
224+
$(TROW $(ARGS $(D SDC)) , $(ARGS SDC (Snazzy D Compiler)))
225+
226+
$(TROW *Target Operating System*)
223227
$(TROW $(ARGS $(D Windows)) , $(ARGS Microsoft Windows systems))
224228
$(TROW $(ARGS $(D Win32)) , $(ARGS Microsoft 32-bit Windows systems))
225229
$(TROW $(ARGS $(D Win64)) , $(ARGS Microsoft 64-bit Windows systems))
@@ -246,9 +250,11 @@ $(H3 $(LEGACY_LNAME2 PredefinedVersions, predefined-versions, Predefined Version
246250
$(TROW $(ARGS $(D Emscripten)) , $(ARGS The Emscripten platform))
247251
$(TROW $(ARGS $(D PlayStation)) , $(ARGS The PlayStation platform))
248252
$(TROW $(ARGS $(D PlayStation4)) , $(ARGS The PlayStation 4 platform))
253+
$(TROW $(ARGS $(D FreeStanding)) , $(ARGS An environment without an operating system (such as Bare-metal targets)))
254+
255+
$(TROW *Target Environment*)
249256
$(TROW $(ARGS $(D Cygwin)) , $(ARGS The Cygwin environment))
250257
$(TROW $(ARGS $(D MinGW)) , $(ARGS The MinGW environment))
251-
$(TROW $(ARGS $(D FreeStanding)) , $(ARGS An environment without an operating system (such as Bare-metal targets)))
252258
$(TROW $(ARGS $(D CRuntime_Bionic)) , $(ARGS Bionic C runtime))
253259
$(TROW $(ARGS $(D CRuntime_DigitalMars)) , $(ARGS DigitalMars C runtime))
254260
$(TROW $(ARGS $(D CRuntime_Glibc)) , $(ARGS Glibc C runtime))
@@ -264,6 +270,8 @@ $(H3 $(LEGACY_LNAME2 PredefinedVersions, predefined-versions, Predefined Version
264270
$(TROW $(ARGS $(D CppRuntime_GNU)) , $(ARGS GNU libstdc++ C++ runtime))
265271
$(TROW $(ARGS $(D CppRuntime_Microsoft)) , $(ARGS Microsoft C++ runtime))
266272
$(TROW $(ARGS $(D CppRuntime_Sun)) , $(ARGS Sun C++ runtime))
273+
274+
$(TROW *Target CPU and Instruction Set*)
267275
$(TROW $(ARGS $(D X86)) , $(ARGS Intel and AMD 32-bit processors))
268276
$(TROW $(ARGS $(D X86_64)) , $(ARGS Intel and AMD 64-bit processors))
269277
$(TROW $(ARGS $(D ARM)) , $(ARGS The ARM architecture (32-bit) (AArch32 et al)))
@@ -310,10 +318,16 @@ $(H3 $(LEGACY_LNAME2 PredefinedVersions, predefined-versions, Predefined Version
310318
$(TROW $(ARGS $(D Alpha)) , $(ARGS The Alpha architecture))
311319
$(TROW $(ARGS $(D Alpha_SoftFloat)) , $(ARGS The Alpha soft float ABI))
312320
$(TROW $(ARGS $(D Alpha_HardFloat)) , $(ARGS The Alpha hard float ABI))
321+
322+
$(TROW *Byte Order (endianess)*)
313323
$(TROW $(ARGS $(D LittleEndian)) , $(ARGS Byte order, least significant first))
314324
$(TROW $(ARGS $(D BigEndian)) , $(ARGS Byte order, most significant first))
315-
$(TROW $(ARGS $(D ELFv1)) , $(ARGS The Executable and Linkable Format v1))
316-
$(TROW $(ARGS $(D ELFv2)) , $(ARGS The Executable and Linkable Format v2))
325+
326+
$(TROW *Executable and Link Format*)
327+
$(TROW $(ARGS $(D ELFv1)) , $(ARGS Elf version 1))
328+
$(TROW $(ARGS $(D ELFv2)) , $(ARGS Elf version 2))
329+
330+
$(TROW *Miscellaneous*)
317331
$(TROW $(ARGS $(D D_BetterC)) , $(ARGS $(DDLINK spec/betterc, D as Better C, D as Better C) code
318332
(command line switch $(DDSUBLINK dmd, switch-betterC, $(TT -betterC))) is being generated))
319333
$(TROW $(ARGS $(D D_Exceptions)) , $(ARGS Exception handling is supported. Evaluates to `false` when compiling with
@@ -356,6 +370,8 @@ $(H3 $(LEGACY_LNAME2 PredefinedVersions, predefined-versions, Predefined Version
356370
$(TROW $(ARGS $(D D_PreConditions)) , $(ARGS Checks are being emitted for $(DDSUBLINK spec/function, contracts, in contracts)))
357371
$(TROW $(ARGS $(D D_PostConditions)) , $(ARGS Checks are being emitted for $(DDSUBLINK spec/function, contracts, out contracts)))
358372
$(TROW $(ARGS $(D D_Invariants)) , $(ARGS Checks are being emitted for $(DDSUBLINK spec/class, invariants, class invariants) and $(DDSUBLINK spec/struct, Invariant, struct invariants)))
373+
374+
$(TROW *Special Cases*)
359375
$(TROW $(ARGS $(D none)) , $(ARGS Never defined; used to just disable a section of code))
360376
$(TROW $(ARGS $(D all)) , $(ARGS Always defined; used as the opposite of $(D none)))
361377
)
@@ -382,7 +398,7 @@ $(H3 $(LEGACY_LNAME2 PredefinedVersions, predefined-versions, Predefined Version
382398
$(D foo_ARM) and $(D bar_Windows) are not.
383399
)
384400

385-
$(P Furthermore, predefined version identifiers from this list cannot
401+
$(P Predefined version identifiers from this list cannot
386402
be set from the command line or from version statements.
387403
(This prevents things like both $(D Windows) and $(D linux)
388404
being simultaneously set.)

0 commit comments

Comments
 (0)