mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Issue 6572 - Deprecate typedef
Remove use of deprecated typedef from phobos. This mostly consists of changing typedef to alias, and disabling unittests that require typedef. One change to std.registry is needed to work around a bug in typedef (6571).
This commit is contained in:
parent
2297b0e2f5
commit
1590a5cc38
10 changed files with 31 additions and 31 deletions
|
@ -656,7 +656,7 @@ template EncoderInstance(E)
|
|||
//=============================================================================
|
||||
|
||||
/** Defines various character sets. */
|
||||
typedef ubyte AsciiChar;
|
||||
enum AsciiChar : ubyte { init };
|
||||
/// Ditto
|
||||
alias immutable(AsciiChar)[] AsciiString;
|
||||
|
||||
|
@ -736,7 +736,7 @@ template EncoderInstance(CharType : AsciiChar)
|
|||
//=============================================================================
|
||||
|
||||
/** Defines an Latin1-encoded character. */
|
||||
typedef ubyte Latin1Char;
|
||||
enum Latin1Char : ubyte { init };
|
||||
/**
|
||||
Defines an Latin1-encoded string (as an array of $(D
|
||||
immutable(Latin1Char))).
|
||||
|
@ -812,7 +812,7 @@ template EncoderInstance(CharType : Latin1Char)
|
|||
//=============================================================================
|
||||
|
||||
/** Defines a Windows1252-encoded character. */
|
||||
typedef ubyte Windows1252Char;
|
||||
enum Windows1252Char : ubyte { init };
|
||||
/**
|
||||
Defines an Windows1252-encoded string (as an array of $(D
|
||||
immutable(Windows1252Char))).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue