
D front-end changes: - Import dmd v2.101.0-beta.1. - Add predefined version `D_Optimized' when compiling with `-O'. - Shortened method syntax (DIP1043) is now enabled by default. - Array literals assigned to `scope' array variables are now allocated on the stack. - Implement `@system' variables (DIP1035), available behind the preview feature flag `-fpreview=systemvariables'. D runtime changes: - Import druntime v2.101.0-beta.1. Phobos changes: - Import phobos v2.101.0-beta.1. - Added `std.typecons.SafeRefCounted', that can be used in `@safe' code with `-fpreview=dip1000'. gcc/d/ChangeLog: * d-attribs.cc (apply_user_attributes): Update for new front-end interface. * d-builtins.cc (d_init_versions): Predefine `D_Optimized' with compiling with optimizations enabled. * d-lang.cc (d_handle_option): Update for new front-end interface. Handle new option `-fpreview=systemvariables'. * dmd/MERGE: Merge upstream dmd e4f8919591. * dmd/VERSION: Bump version to v2.101.0-beta.1. * expr.cc (ExprVisitor::visit (AssignExp *)): Treat construction of static arrays from a call expression as a simple assignment. (ExprVisitor::visit (ArrayLiteralExp *)): Handle array literals with `scope' storage. * gdc.texi: Update documentation of `-fpreview=' options. * lang.opt (fpreview=shortenedmethods): Remove. (fpreview=systemvariables): New option. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime e4f8919591. * src/MERGE: Merge upstream phobos 3ad507b51. gcc/testsuite/ChangeLog: * gdc.dg/simd19630.d: Move tests with errors to ... * gdc.dg/simd19630b.d: ... here. New test. * gdc.dg/simd19630c.d: New test. * gdc.dg/simd_ctfe.d: Removed. * gdc.dg/simd18867.d: New test. * gdc.dg/simd19788.d: New test. * gdc.dg/simd21469.d: New test. * gdc.dg/simd21672.d: New test. * gdc.dg/simd23077.d: New test. * gdc.dg/simd23084.d: New test. * gdc.dg/simd23085.d: New test. * gdc.dg/torture/simd19632.d: New test. * gdc.dg/torture/simd20041.d: New test. * gdc.dg/torture/simd21673.d: New test. * gdc.dg/torture/simd21676.d: New test. * gdc.dg/torture/simd22438.d: New test. * gdc.dg/torture/simd23009.d: New test. * gdc.dg/torture/simd23077.d: New test. * gdc.dg/torture/simd8.d: New test. * gdc.dg/torture/simd9.d: New test. * gdc.dg/torture/simd_prefetch.d: New test.
88 lines
2.2 KiB
D
88 lines
2.2 KiB
D
/**
|
|
* Windows API header module
|
|
*
|
|
* Translated from MinGW Windows headers
|
|
*
|
|
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
|
|
* Source: $(DRUNTIMESRC core/sys/windows/_lmcons.d)
|
|
*/
|
|
module core.sys.windows.lmcons;
|
|
version (Windows):
|
|
|
|
version (ANSI) {} else version = Unicode;
|
|
|
|
import core.sys.windows.windef;
|
|
import core.sys.windows.lmerr; // for NERR_BASE
|
|
|
|
const TCHAR[]
|
|
MESSAGE_FILENAME = "NETMSG",
|
|
OS2MSG_FILENAME = "BASE",
|
|
HELP_MSG_FILENAME = "NETH";
|
|
|
|
alias DWORD NET_API_STATUS, API_RET_TYPE;
|
|
|
|
enum MIN_LANMAN_MESSAGE_ID = NERR_BASE;
|
|
enum MAX_LANMAN_MESSAGE_ID = 5799;
|
|
|
|
enum CNLEN = 15; /* also in nddeapi.h */
|
|
enum UNCLEN = CNLEN + 2;
|
|
|
|
enum DNLEN = 15;
|
|
enum LM20_CNLEN = 15;
|
|
enum LM20_DNLEN = 15;
|
|
enum LM20_SNLEN = 15;
|
|
enum LM20_STXTLEN = 63;
|
|
enum LM20_UNCLEN = LM20_CNLEN + 2;
|
|
enum LM20_NNLEN = 12;
|
|
enum LM20_RMLEN = LM20_UNCLEN + 1 + LM20_NNLEN;
|
|
enum NNLEN = 80;
|
|
enum RMLEN = UNCLEN + 1 + NNLEN;
|
|
enum SNLEN = 80;
|
|
enum STXTLEN = 256;
|
|
enum PATHLEN = 256;
|
|
enum LM20_PATHLEN = 256;
|
|
enum DEVLEN = 80;
|
|
enum LM20_DEVLEN = 8;
|
|
enum EVLEN = 16;
|
|
enum UNLEN = 256;
|
|
enum LM20_UNLEN = 20;
|
|
enum GNLEN = UNLEN;
|
|
enum LM20_GNLEN = LM20_UNLEN;
|
|
enum PWLEN = 256;
|
|
enum LM20_PWLEN = 14;
|
|
enum SHPWLEN = 8;
|
|
enum CLTYPE_LEN = 12;
|
|
enum QNLEN = NNLEN;
|
|
enum LM20_QNLEN = LM20_NNLEN;
|
|
|
|
enum MAXCOMMENTSZ = 256;
|
|
enum LM20_MAXCOMMENTSZ = 48;
|
|
enum ALERTSZ = 128;
|
|
enum MAXDEVENTRIES = 32;// (sizeof(int)*8);
|
|
enum NETBIOS_NAME_LEN = 16;
|
|
enum DWORD MAX_PREFERRED_LENGTH = -1;
|
|
enum CRYPT_KEY_LEN = 7;
|
|
enum CRYPT_TXT_LEN = 8;
|
|
enum ENCRYPTED_PWLEN = 16;
|
|
enum SESSION_PWLEN = 24;
|
|
enum SESSION_CRYPT_KLEN = 21;
|
|
|
|
enum PARMNUM_ALL = 0;
|
|
enum DWORD PARM_ERROR_UNKNOWN = -1;
|
|
enum PARM_ERROR_NONE = 0;
|
|
enum PARMNUM_BASE_INFOLEVEL = 1000;
|
|
|
|
enum PLATFORM_ID_DOS = 300;
|
|
enum PLATFORM_ID_OS2 = 400;
|
|
enum PLATFORM_ID_NT = 500;
|
|
enum PLATFORM_ID_OSF = 600;
|
|
enum PLATFORM_ID_VMS = 700;
|
|
|
|
// this is a new typedef in W2K, but it should be harmless for earlier Windows versions.
|
|
version (Unicode) {
|
|
alias LPWSTR LMSTR;
|
|
alias LPCWSTR LMCSTR;
|
|
} else {
|
|
alias LPSTR LMSTR;
|
|
alias LPCSTR LMCSTR;
|
|
}
|