Rename the initial value of some enums from init to _init

This commit is contained in:
Boris Carvajal 2021-05-11 21:35:25 -04:00 committed by Nicholas Wilson
parent 3b4dc67878
commit 5dd42968e3
3 changed files with 8 additions and 8 deletions

View file

@ -848,7 +848,7 @@ private template GenericEncoder()
//============================================================================= //=============================================================================
/** Defines various character sets. */ /** Defines various character sets. */
enum AsciiChar : ubyte { init } enum AsciiChar : ubyte { _init }
/// Ditto /// Ditto
alias AsciiString = immutable(AsciiChar)[]; alias AsciiString = immutable(AsciiChar)[];
@ -928,7 +928,7 @@ template EncoderInstance(CharType : AsciiChar)
//============================================================================= //=============================================================================
/** Defines an Latin1-encoded character. */ /** Defines an Latin1-encoded character. */
enum Latin1Char : ubyte { init } enum Latin1Char : ubyte { _init }
/** /**
Defines an Latin1-encoded string (as an array of $(D Defines an Latin1-encoded string (as an array of $(D
immutable(Latin1Char))). immutable(Latin1Char))).
@ -1004,7 +1004,7 @@ template EncoderInstance(CharType : Latin1Char)
//============================================================================= //=============================================================================
/// Defines a Latin2-encoded character. /// Defines a Latin2-encoded character.
enum Latin2Char : ubyte { init } enum Latin2Char : ubyte { _init }
/** /**
* Defines an Latin2-encoded string (as an array of $(D * Defines an Latin2-encoded string (as an array of $(D
@ -1084,7 +1084,7 @@ private template EncoderInstance(CharType : Latin2Char)
//============================================================================= //=============================================================================
/// Defines a Windows1250-encoded character. /// Defines a Windows1250-encoded character.
enum Windows1250Char : ubyte { init } enum Windows1250Char : ubyte { _init }
/** /**
* Defines an Windows1250-encoded string (as an array of $(D * Defines an Windows1250-encoded string (as an array of $(D
@ -1177,7 +1177,7 @@ private template EncoderInstance(CharType : Windows1250Char)
//============================================================================= //=============================================================================
/// Defines a Windows1251-encoded character. /// Defines a Windows1251-encoded character.
enum Windows1251Char : ubyte { init } enum Windows1251Char : ubyte { _init }
/** /**
* Defines an Windows1251-encoded string (as an array of $(D * Defines an Windows1251-encoded string (as an array of $(D
@ -1272,7 +1272,7 @@ private template EncoderInstance(CharType : Windows1251Char)
//============================================================================= //=============================================================================
/// Defines a Windows1252-encoded character. /// Defines a Windows1252-encoded character.
enum Windows1252Char : ubyte { init } enum Windows1252Char : ubyte { _init }
/** /**
* Defines an Windows1252-encoded string (as an array of $(D * Defines an Windows1252-encoded string (as an array of $(D

View file

@ -28,7 +28,7 @@ allocator accordingly.
*/ */
enum AllocFlag : uint enum AllocFlag : uint
{ {
init = 0, _init = 0,
/** /**
Fixed-size allocation (unlikely to get reallocated later). Examples: `int`, Fixed-size allocation (unlikely to get reallocated later). Examples: `int`,
`double`, any `struct` or `class` type. By default it is assumed that the `double`, any `struct` or `class` type. By default it is assumed that the

View file

@ -86,7 +86,7 @@ else version (Posix)
import core.stdc.errno; import core.stdc.errno;
enum socket_t : int32_t { init = -1 } enum socket_t : int32_t { _init = -1 }
private const int _SOCKET_ERROR = -1; private const int _SOCKET_ERROR = -1;
private enum : int private enum : int