mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Remove deprecated std.c package
This commit is contained in:
parent
eaa667311f
commit
aff18e8205
30 changed files with 12 additions and 669 deletions
3
changelog/remove_std_c.dd
Normal file
3
changelog/remove_std_c.dd
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
The deprecated `std.c` package has been removed.
|
||||||
|
|
||||||
|
Use the `core.stdc` package instead.
|
15
posix.mak
15
posix.mak
|
@ -219,19 +219,11 @@ PACKAGE_std_regex = package $(addprefix internal/,generator ir parser \
|
||||||
# Modules in std (including those in packages)
|
# Modules in std (including those in packages)
|
||||||
STD_MODULES=$(call P2MODULES,$(STD_PACKAGES))
|
STD_MODULES=$(call P2MODULES,$(STD_PACKAGES))
|
||||||
|
|
||||||
# OS-specific D modules
|
|
||||||
EXTRA_MODULES_LINUX := $(addprefix std/c/linux/, linux socket)
|
|
||||||
EXTRA_MODULES_OSX := $(addprefix std/c/osx/, socket)
|
|
||||||
EXTRA_MODULES_FREEBSD := $(addprefix std/c/freebsd/, socket)
|
|
||||||
EXTRA_MODULES_WIN32 := $(addprefix std/c/windows/, com stat windows \
|
|
||||||
winsock) $(addprefix std/windows/, charset syserror)
|
|
||||||
|
|
||||||
# Other D modules that aren't under std/
|
# Other D modules that aren't under std/
|
||||||
EXTRA_MODULES_COMMON := $(addprefix etc/c/,curl odbc/sql odbc/sqlext \
|
EXTRA_MODULES_COMMON := $(addprefix etc/c/,curl odbc/sql odbc/sqlext \
|
||||||
odbc/sqltypes odbc/sqlucode sqlite3 zlib) $(addprefix std/c/,fenv locale \
|
odbc/sqltypes odbc/sqlucode sqlite3 zlib)
|
||||||
math process stdarg stddef stdio stdlib string time wcharh)
|
|
||||||
|
|
||||||
EXTRA_DOCUMENTABLES := $(EXTRA_MODULES_LINUX) $(EXTRA_MODULES_WIN32) $(EXTRA_MODULES_COMMON)
|
EXTRA_DOCUMENTABLES := $(EXTRA_MODULES_COMMON)
|
||||||
|
|
||||||
EXTRA_MODULES_INTERNAL := $(addprefix std/, \
|
EXTRA_MODULES_INTERNAL := $(addprefix std/, \
|
||||||
algorithm/internal \
|
algorithm/internal \
|
||||||
|
@ -258,8 +250,7 @@ ALL_D_FILES = $(addsuffix .d, $(STD_MODULES) $(EXTRA_MODULES_COMMON) \
|
||||||
$(EXTRA_MODULES_LINUX) $(EXTRA_MODULES_OSX) $(EXTRA_MODULES_FREEBSD) \
|
$(EXTRA_MODULES_LINUX) $(EXTRA_MODULES_OSX) $(EXTRA_MODULES_FREEBSD) \
|
||||||
$(EXTRA_MODULES_WIN32) $(EXTRA_MODULES_INTERNAL)) \
|
$(EXTRA_MODULES_WIN32) $(EXTRA_MODULES_INTERNAL)) \
|
||||||
std/internal/windows/advapi32.d \
|
std/internal/windows/advapi32.d \
|
||||||
std/windows/registry.d std/c/linux/pthread.d std/c/linux/termios.d \
|
std/windows/registry.d
|
||||||
std/c/linux/tipc.d
|
|
||||||
|
|
||||||
# C files to be part of the build
|
# C files to be part of the build
|
||||||
C_MODULES = $(addprefix etc/c/zlib/, adler32 compress crc32 deflate \
|
C_MODULES = $(addprefix etc/c/zlib/, adler32 compress crc32 deflate \
|
||||||
|
|
14
std/c/fenv.d
14
std/c/fenv.d
|
@ -1,14 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.fenv` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <fenv.h>
|
|
||||||
* Authors: Walter Bright, Digital Mars, http://www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.fenv instead")
|
|
||||||
module std.c.fenv;
|
|
||||||
|
|
||||||
public import core.stdc.fenv;
|
|
|
@ -1,17 +0,0 @@
|
||||||
// Written in the D programming language.
|
|
||||||
|
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use the appropriate `core.sys.posix.*` modules instead.
|
|
||||||
This module will be removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import the appropriate core.sys.posix.* modules instead")
|
|
||||||
module std.c.freebsd.socket;
|
|
||||||
|
|
||||||
version (FreeBSD):
|
|
||||||
public import core.sys.posix.netdb;
|
|
||||||
public import core.sys.posix.netinet.in_ : IPPROTO_IGMP, IPPROTO_GGP,
|
|
||||||
IPPROTO_PUP, IPPROTO_IDP, IPPROTO_ND,
|
|
||||||
IPPROTO_MAX, INADDR_LOOPBACK, INADDR_NONE;
|
|
||||||
public import core.sys.posix.sys.socket : AF_APPLETALK, AF_IPX, SOCK_RDM, MSG_NOSIGNAL;
|
|
|
@ -1,70 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/* Written by Walter Bright, Christopher E. Miller, and many others.
|
|
||||||
* http://www.digitalmars.com/d/
|
|
||||||
* Placed into public domain.
|
|
||||||
* Linux(R) is the registered trademark of Linus Torvalds in the U.S. and other
|
|
||||||
* countries.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use the appropriate `core.sys.posix.*` modules instead.
|
|
||||||
This module will be removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import the appropriate core.sys.posix.* modules instead")
|
|
||||||
module std.c.linux.linux;
|
|
||||||
|
|
||||||
version (linux):
|
|
||||||
public import core.sys.posix.pthread;
|
|
||||||
|
|
||||||
extern (C)
|
|
||||||
{
|
|
||||||
extern __gshared
|
|
||||||
{
|
|
||||||
void* __libc_stack_end;
|
|
||||||
int __data_start;
|
|
||||||
int _end;
|
|
||||||
|
|
||||||
void *_deh_beg;
|
|
||||||
void *_deh_end;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct struct_stat64 // distinguish it from the stat() function
|
|
||||||
{
|
|
||||||
ulong st_dev; /// device
|
|
||||||
uint __pad1;
|
|
||||||
uint st_ino; /// file serial number
|
|
||||||
uint st_mode; /// file mode
|
|
||||||
uint st_nlink; /// link count
|
|
||||||
uint st_uid; /// user ID of file's owner
|
|
||||||
uint st_gid; /// user ID of group's owner
|
|
||||||
ulong st_rdev; /// if device then device number
|
|
||||||
uint __pad2;
|
|
||||||
align(4) ulong st_size;
|
|
||||||
int st_blksize; /// optimal I/O block size
|
|
||||||
ulong st_blocks; /// number of allocated 512 byte blocks
|
|
||||||
int st_atime;
|
|
||||||
uint st_atimensec;
|
|
||||||
int st_mtime;
|
|
||||||
uint st_mtimensec;
|
|
||||||
int st_ctime;
|
|
||||||
uint st_ctimensec;
|
|
||||||
|
|
||||||
ulong st_ino64;
|
|
||||||
}
|
|
||||||
int fstat64(int, struct_stat64*);
|
|
||||||
int fstat64(in char*, struct_stat64*);
|
|
||||||
|
|
||||||
public import core.sys.posix.dirent;
|
|
||||||
public import core.sys.posix.dlfcn;
|
|
||||||
public import core.sys.posix.fcntl;
|
|
||||||
public import core.sys.posix.pwd;
|
|
||||||
public import core.sys.posix.sys.mman;
|
|
||||||
public import core.sys.posix.sys.stat;
|
|
||||||
public import core.sys.posix.sys.time;
|
|
||||||
public import core.sys.posix.sys.types;
|
|
||||||
public import core.sys.posix.sys.wait;
|
|
||||||
public import core.sys.posix.time;
|
|
||||||
public import core.sys.posix.unistd;
|
|
||||||
public import core.sys.posix.utime;
|
|
|
@ -1,17 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/* Written by Walter Bright.
|
|
||||||
* www.digitalmars.com
|
|
||||||
* Placed into public domain.
|
|
||||||
* Linux(R) is the registered trademark of Linus Torvalds in the U.S. and other
|
|
||||||
* countries.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Remove this import. This module no longer contains
|
|
||||||
anything.)
|
|
||||||
+/
|
|
||||||
deprecated("This module no longer contains anything. Just remove the import.")
|
|
||||||
module std.c.linux.linuxextern;
|
|
||||||
|
|
||||||
// No longer needed since "extern" storage class
|
|
|
@ -1,17 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/* Written by Walter Bright, Christopher E. Miller, and many others.
|
|
||||||
* www.digitalmars.com
|
|
||||||
* Placed into public domain.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use $(core.sys.posix.pthread) or the appropriate
|
|
||||||
`core.sys.posix.*` modules instead. This module will be removed in
|
|
||||||
June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import core.sys.posix.pthread or the appropriate core.sys.posix.* modules instead")
|
|
||||||
module std.c.linux.pthread;
|
|
||||||
|
|
||||||
version (linux):
|
|
||||||
public import core.sys.posix.pthread;
|
|
|
@ -1,82 +0,0 @@
|
||||||
/*
|
|
||||||
Written by Christopher E. Miller
|
|
||||||
Placed into public domain.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use the appropriate `core.sys.posix.*` modules instead.
|
|
||||||
This module will be removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import the appropriate core.sys.posix.* modules instead")
|
|
||||||
module std.c.linux.socket;
|
|
||||||
|
|
||||||
version (linux):
|
|
||||||
import core.stdc.stdint;
|
|
||||||
public import core.sys.posix.arpa.inet;
|
|
||||||
public import core.sys.posix.netdb;
|
|
||||||
public import core.sys.posix.netinet.in_;
|
|
||||||
public import core.sys.posix.netinet.tcp;
|
|
||||||
public import core.sys.posix.sys.select;
|
|
||||||
public import core.sys.posix.sys.socket;
|
|
||||||
|
|
||||||
extern(C):
|
|
||||||
|
|
||||||
int gethostbyname_r(in char* name, hostent* ret, void* buf, size_t buflen, hostent** result, int* h_errnop);
|
|
||||||
int gethostbyname2_r(in char* name, int af, hostent* ret, void* buf, size_t buflen, hostent** result, int* h_errnop);
|
|
||||||
|
|
||||||
enum: int
|
|
||||||
{
|
|
||||||
SD_RECEIVE = 0,
|
|
||||||
SD_SEND = 1,
|
|
||||||
SD_BOTH = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
enum: int
|
|
||||||
{
|
|
||||||
IP_MULTICAST_LOOP = 34,
|
|
||||||
IP_ADD_MEMBERSHIP = 35,
|
|
||||||
IP_DROP_MEMBERSHIP = 36,
|
|
||||||
|
|
||||||
// ...
|
|
||||||
|
|
||||||
IPV6_ADDRFORM = 1,
|
|
||||||
IPV6_PKTINFO = 2,
|
|
||||||
IPV6_HOPOPTS = 3,
|
|
||||||
IPV6_DSTOPTS = 4,
|
|
||||||
IPV6_RTHDR = 5,
|
|
||||||
IPV6_PKTOPTIONS = 6,
|
|
||||||
IPV6_CHECKSUM = 7,
|
|
||||||
IPV6_HOPLIMIT = 8,
|
|
||||||
IPV6_NEXTHOP = 9,
|
|
||||||
IPV6_AUTHHDR = 10,
|
|
||||||
IPV6_MULTICAST_HOPS = 18,
|
|
||||||
IPV6_ROUTER_ALERT = 22,
|
|
||||||
IPV6_MTU_DISCOVER = 23,
|
|
||||||
IPV6_MTU = 24,
|
|
||||||
IPV6_RECVERR = 25,
|
|
||||||
IPV6_V6ONLY = 26,
|
|
||||||
IPV6_JOIN_ANYCAST = 27,
|
|
||||||
IPV6_LEAVE_ANYCAST = 28,
|
|
||||||
IPV6_IPSEC_POLICY = 34,
|
|
||||||
IPV6_XFRM_POLICY = 35,
|
|
||||||
}
|
|
||||||
|
|
||||||
enum: int
|
|
||||||
{
|
|
||||||
TCP_NODELAY = 1, // Don't delay send to coalesce packets
|
|
||||||
TCP_MAXSEG = 2, // Set maximum segment size
|
|
||||||
TCP_CORK = 3, // Control sending of partial frames
|
|
||||||
TCP_KEEPIDLE = 4, // Start keeplives after this period
|
|
||||||
TCP_KEEPINTVL = 5, // Interval between keepalives
|
|
||||||
TCP_KEEPCNT = 6, // Number of keepalives before death
|
|
||||||
TCP_SYNCNT = 7, // Number of SYN retransmits
|
|
||||||
TCP_LINGER2 = 8, // Life time of orphaned FIN-WAIT-2 state
|
|
||||||
TCP_DEFER_ACCEPT = 9, // Wake up listener only when data arrive
|
|
||||||
TCP_WINDOW_CLAMP = 10, // Bound advertised window
|
|
||||||
TCP_INFO = 11, // Information about this connection.
|
|
||||||
TCP_QUICKACK = 12, // Bock/reenable quick ACKs.
|
|
||||||
TCP_CONGESTION = 13, // Congestion control algorithm.
|
|
||||||
TCP_MD5SIG = 14, // TCP MD5 Signature (RFC2385)
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use `core.sys.posix.termios` instead. This module will
|
|
||||||
be removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import core.sys.posix.termios instead")
|
|
||||||
module std.c.linux.termios;
|
|
||||||
|
|
||||||
version (linux):
|
|
||||||
public import core.sys.posix.termios;
|
|
|
@ -1,17 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.sys.linux.tipc` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* Interface for Linux TIPC sockets, /usr/include/linux/tipc.h
|
|
||||||
*
|
|
||||||
* Copyright: Public Domain
|
|
||||||
* License: Public Domain
|
|
||||||
* Authors: Leandro Lucarella
|
|
||||||
*/
|
|
||||||
|
|
||||||
deprecated("Import core.sys.linux.tipc instead")
|
|
||||||
module std.c.linux.tipc;
|
|
||||||
|
|
||||||
public import core.sys.linux.tipc;
|
|
|
@ -1,15 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.locale` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <locale.h>
|
|
||||||
* License: Public Domain
|
|
||||||
* Standards:
|
|
||||||
* ISO/IEC 9899:1999 7.11
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.locale instead")
|
|
||||||
module std.c.locale;
|
|
||||||
|
|
||||||
public import core.stdc.locale;
|
|
14
std/c/math.d
14
std/c/math.d
|
@ -1,14 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.math` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <math.h>
|
|
||||||
* Authors: Walter Bright, Digital Mars, www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.math instead")
|
|
||||||
module std.c.math;
|
|
||||||
|
|
||||||
public import core.stdc.math;
|
|
|
@ -1,62 +0,0 @@
|
||||||
/*
|
|
||||||
Written by Christopher E. Miller
|
|
||||||
Placed into public domain.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use the appropriate `core.sys.posix.*` modules instead.
|
|
||||||
This module will be removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import the appropriate core.sys.posix.* instead")
|
|
||||||
module std.c.osx.socket;
|
|
||||||
|
|
||||||
version (OSX):
|
|
||||||
import core.stdc.stdint;
|
|
||||||
public import core.sys.posix.arpa.inet;
|
|
||||||
public import core.sys.posix.netdb;
|
|
||||||
public import core.sys.posix.netinet.in_;
|
|
||||||
public import core.sys.posix.netinet.tcp;
|
|
||||||
public import core.sys.posix.sys.select;
|
|
||||||
public import core.sys.posix.sys.socket;
|
|
||||||
|
|
||||||
extern(C):
|
|
||||||
|
|
||||||
// Not defined in OSX, so these will be removed at the end of deprecation
|
|
||||||
enum: int
|
|
||||||
{
|
|
||||||
SD_RECEIVE = 0,
|
|
||||||
SD_SEND = 1,
|
|
||||||
SD_BOTH = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
enum: int
|
|
||||||
{
|
|
||||||
IP_MULTICAST_LOOP = 11,
|
|
||||||
IP_ADD_MEMBERSHIP = 12,
|
|
||||||
IP_DROP_MEMBERSHIP = 13,
|
|
||||||
|
|
||||||
// ...
|
|
||||||
|
|
||||||
//IPV6_ADDRFORM = 1,
|
|
||||||
IPV6_PKTINFO = 19,
|
|
||||||
IPV6_HOPOPTS = 22,
|
|
||||||
IPV6_DSTOPTS = 23,
|
|
||||||
IPV6_RTHDR = 24,
|
|
||||||
IPV6_PKTOPTIONS = 25,
|
|
||||||
IPV6_CHECKSUM = 26,
|
|
||||||
IPV6_HOPLIMIT = 20,
|
|
||||||
IPV6_NEXTHOP = 21,
|
|
||||||
//IPV6_AUTHHDR = 10,
|
|
||||||
IPV6_MULTICAST_HOPS = 10,
|
|
||||||
//IPV6_ROUTER_ALERT = 22,
|
|
||||||
//IPV6_MTU_DISCOVER = 23,
|
|
||||||
//IPV6_MTU = 24,
|
|
||||||
//IPV6_RECVERR = 25,
|
|
||||||
IPV6_V6ONLY = 27,
|
|
||||||
//IPV6_JOIN_ANYCAST = 27,
|
|
||||||
//IPV6_LEAVE_ANYCAST = 28,
|
|
||||||
IPV6_IPSEC_POLICY = 28,
|
|
||||||
//IPV6_XFRM_POLICY = 35,
|
|
||||||
}
|
|
|
@ -1,93 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.stdlib` or the appropriate
|
|
||||||
* core.sys.posix.* modules instead. This module will be removed in June
|
|
||||||
* 2017.)
|
|
||||||
*
|
|
||||||
* C's <process.h>
|
|
||||||
* Authors: Walter Bright, Digital Mars, www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.stdlib or the appropriate core.sys.posix.* modules instead")
|
|
||||||
module std.c.process;
|
|
||||||
|
|
||||||
import core.stdc.stddef;
|
|
||||||
public import core.stdc.stdlib : exit, abort, system;
|
|
||||||
|
|
||||||
extern (C):
|
|
||||||
|
|
||||||
//These declarations are not defined or used elsewhere.
|
|
||||||
void _c_exit();
|
|
||||||
void _cexit();
|
|
||||||
void _dodtors();
|
|
||||||
int getpid();
|
|
||||||
enum { WAIT_CHILD, WAIT_GRANDCHILD }
|
|
||||||
int cwait(int *,int,int);
|
|
||||||
int wait(int *);
|
|
||||||
int execlpe(in char *, in char *,...);
|
|
||||||
|
|
||||||
//These constants are undefined elsewhere and only used in the deprecated part
|
|
||||||
//of std.process.
|
|
||||||
enum { _P_WAIT, _P_NOWAIT, _P_OVERLAY }
|
|
||||||
|
|
||||||
//These declarations are defined for Posix in core.sys.posix.unistd but unused
|
|
||||||
//from here.
|
|
||||||
void _exit(int);
|
|
||||||
int execl(in char *, in char *,...);
|
|
||||||
int execle(in char *, in char *,...);
|
|
||||||
int execlp(in char *, in char *,...);
|
|
||||||
|
|
||||||
//All of these except for execvpe are defined for Posix in core.sys.posix.unistd
|
|
||||||
//and only used in the old part of std.process.
|
|
||||||
int execv(in char *, in char **);
|
|
||||||
int execve(in char *, in char **, in char **);
|
|
||||||
int execvp(in char *, in char **);
|
|
||||||
int execvpe(in char *, in char **, in char **);
|
|
||||||
|
|
||||||
//All these Windows declarations are not publicly defined elsewhere and only
|
|
||||||
//spawnvp is used once in a deprecated function in std.process.
|
|
||||||
version (Windows)
|
|
||||||
{
|
|
||||||
uint _beginthread(void function(void *),uint,void *);
|
|
||||||
|
|
||||||
extern (Windows) alias stdfp = uint function (void *);
|
|
||||||
|
|
||||||
uint _beginthreadex(void* security, uint stack_size,
|
|
||||||
stdfp start_addr, void* arglist, uint initflag,
|
|
||||||
uint* thrdaddr);
|
|
||||||
|
|
||||||
void _endthread();
|
|
||||||
void _endthreadex(uint);
|
|
||||||
|
|
||||||
int spawnl(int, in char *, in char *,...);
|
|
||||||
int spawnle(int, in char *, in char *,...);
|
|
||||||
int spawnlp(int, in char *, in char *,...);
|
|
||||||
int spawnlpe(int, in char *, in char *,...);
|
|
||||||
int spawnv(int, in char *, in char **);
|
|
||||||
int spawnve(int, in char *, in char **, in char **);
|
|
||||||
int spawnvp(int, in char *, in char **);
|
|
||||||
int spawnvpe(int, in char *, in char **, in char **);
|
|
||||||
|
|
||||||
|
|
||||||
int _wsystem(in wchar_t *);
|
|
||||||
int _wspawnl(int, in wchar_t *, in wchar_t *, ...);
|
|
||||||
int _wspawnle(int, in wchar_t *, in wchar_t *, ...);
|
|
||||||
int _wspawnlp(int, in wchar_t *, in wchar_t *, ...);
|
|
||||||
int _wspawnlpe(int, in wchar_t *, in wchar_t *, ...);
|
|
||||||
int _wspawnv(int, in wchar_t *, in wchar_t **);
|
|
||||||
int _wspawnve(int, in wchar_t *, in wchar_t **, in wchar_t **);
|
|
||||||
int _wspawnvp(int, in wchar_t *, in wchar_t **);
|
|
||||||
int _wspawnvpe(int, in wchar_t *, in wchar_t **, in wchar_t **);
|
|
||||||
|
|
||||||
int _wexecl(in wchar_t *, in wchar_t *, ...);
|
|
||||||
int _wexecle(in wchar_t *, in wchar_t *, ...);
|
|
||||||
int _wexeclp(in wchar_t *, in wchar_t *, ...);
|
|
||||||
int _wexeclpe(in wchar_t *, in wchar_t *, ...);
|
|
||||||
int _wexecv(in wchar_t *, in wchar_t **);
|
|
||||||
int _wexecve(in wchar_t *, in wchar_t **, in wchar_t **);
|
|
||||||
int _wexecvp(in wchar_t *, in wchar_t **);
|
|
||||||
int _wexecvpe(in wchar_t *, in wchar_t **, in wchar_t **);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.stdarg` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <stdarg.h>
|
|
||||||
* Authors: Hauke Duden and Walter Bright, Digital Mars, www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.stdarg instead")
|
|
||||||
module std.c.stdarg;
|
|
||||||
|
|
||||||
public import core.stdc.stdarg;
|
|
|
@ -1,14 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.stddef` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <stddef.h>
|
|
||||||
* Authors: Walter Bright, Digital Mars, http://www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.stddef instead")
|
|
||||||
module std.c.stddef;
|
|
||||||
|
|
||||||
public import core.stdc.stddef;
|
|
|
@ -1,14 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.stdio` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <stdio.h> for the D programming language
|
|
||||||
* Authors: Walter Bright, Digital Mars, http://www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.stdio instead")
|
|
||||||
module std.c.stdio;
|
|
||||||
|
|
||||||
public import core.stdc.stdio;
|
|
|
@ -1,16 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.stdlib` or `core.sys.posix.stdlib`
|
|
||||||
* instead. This module will be removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <stdlib.h>
|
|
||||||
* D Programming Language runtime library
|
|
||||||
* Authors: Walter Bright, Digital Mars, http://www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.stdlib or core.sys.posix.stdlib instead")
|
|
||||||
module std.c.stdlib;
|
|
||||||
|
|
||||||
public import core.stdc.stdlib;
|
|
||||||
version(Posix) public import core.sys.posix.stdlib : setenv, unsetenv;
|
|
|
@ -1,14 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.string` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <string.h>
|
|
||||||
* Authors: Walter Bright, Digital Mars, http://www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.string instead")
|
|
||||||
module std.c.string;
|
|
||||||
|
|
||||||
public import core.stdc.string;
|
|
14
std/c/time.d
14
std/c/time.d
|
@ -1,14 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.time` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <time.h>
|
|
||||||
* Authors: Walter Bright, Digital Mars, www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.time instead")
|
|
||||||
module std.c.time;
|
|
||||||
|
|
||||||
public import core.stdc.time;
|
|
|
@ -1,14 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $(RED Deprecated. Use `core.stdc.wchar_` instead. This module will be
|
|
||||||
* removed in June 2017.)
|
|
||||||
*
|
|
||||||
* C's <wchar.h>
|
|
||||||
* Authors: Walter Bright, Digital Mars, www.digitalmars.com
|
|
||||||
* License: Public Domain
|
|
||||||
*/
|
|
||||||
deprecated("Import core.stdc.wchar_ instead")
|
|
||||||
module std.c.wcharh;
|
|
||||||
|
|
||||||
public import core.stdc.wchar_;
|
|
|
@ -1,11 +0,0 @@
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use `core.sys.windows.com` instead. This module will be
|
|
||||||
removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import core.sys.windows.com instead")
|
|
||||||
module std.c.windows.com;
|
|
||||||
|
|
||||||
version (Windows):
|
|
||||||
public import core.sys.windows.com;
|
|
|
@ -1,15 +0,0 @@
|
||||||
|
|
||||||
/// Placed into public domain
|
|
||||||
/// Author: Walter Bright
|
|
||||||
|
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use `core.sys.windows.stat` instead. This module will be
|
|
||||||
removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import core.sys.windows.stat instead")
|
|
||||||
module std.c.windows.stat;
|
|
||||||
|
|
||||||
version (Windows):
|
|
||||||
public import core.sys.windows.stat;
|
|
|
@ -1,15 +0,0 @@
|
||||||
|
|
||||||
/* Windows is a registered trademark of Microsoft Corporation in the United
|
|
||||||
States and other countries. */
|
|
||||||
|
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use `core.sys.windows.windows` instead. This module will
|
|
||||||
be removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import core.sys.windows.windows instead")
|
|
||||||
module std.c.windows.windows;
|
|
||||||
|
|
||||||
version (Windows):
|
|
||||||
public import core.sys.windows.windows;
|
|
|
@ -1,16 +0,0 @@
|
||||||
/*
|
|
||||||
Written by Christopher E. Miller
|
|
||||||
Placed into public domain.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// @@@DEPRECATED_2017-06@@@
|
|
||||||
|
|
||||||
/++
|
|
||||||
$(RED Deprecated. Use `core.sys.windows.winsock2` instead. This module
|
|
||||||
will be removed in June 2017.)
|
|
||||||
+/
|
|
||||||
deprecated("Import core.sys.windows.winsock2 instead")
|
|
||||||
module std.c.windows.winsock;
|
|
||||||
|
|
||||||
version (Windows):
|
|
||||||
public import core.sys.windows.winsock2;
|
|
|
@ -304,7 +304,7 @@ struct AllocatorList(Factory, BookkeepingAllocator = GCAllocator)
|
||||||
}
|
}
|
||||||
if (expanded)
|
if (expanded)
|
||||||
{
|
{
|
||||||
import std.c.string : memcpy;
|
import core.stdc.string : memcpy;
|
||||||
assert(t.length % Node.sizeof == 0);
|
assert(t.length % Node.sizeof == 0);
|
||||||
assert(t.ptr.alignedAt(Node.alignof));
|
assert(t.ptr.alignedAt(Node.alignof));
|
||||||
allocators = cast(Node[]) t;
|
allocators = cast(Node[]) t;
|
||||||
|
|
|
@ -140,7 +140,7 @@ version (Windows)
|
||||||
@nogc nothrow
|
@nogc nothrow
|
||||||
private void* _aligned_malloc(size_t size, size_t alignment)
|
private void* _aligned_malloc(size_t size, size_t alignment)
|
||||||
{
|
{
|
||||||
import std.c.stdlib : malloc;
|
import core.stdc.stdlib : malloc;
|
||||||
size_t offset = alignment + size_t.sizeof * 2 - 1;
|
size_t offset = alignment + size_t.sizeof * 2 - 1;
|
||||||
|
|
||||||
// unaligned chunk
|
// unaligned chunk
|
||||||
|
@ -162,8 +162,8 @@ version (Windows)
|
||||||
@nogc nothrow
|
@nogc nothrow
|
||||||
private void* _aligned_realloc(void* ptr, size_t size, size_t alignment)
|
private void* _aligned_realloc(void* ptr, size_t size, size_t alignment)
|
||||||
{
|
{
|
||||||
import std.c.stdlib : free;
|
import core.stdc.stdlib : free;
|
||||||
import std.c.string : memcpy;
|
import core.stdc.string : memcpy;
|
||||||
|
|
||||||
if (!ptr) return _aligned_malloc(size, alignment);
|
if (!ptr) return _aligned_malloc(size, alignment);
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ version (Windows)
|
||||||
@nogc nothrow
|
@nogc nothrow
|
||||||
private void _aligned_free(void *ptr)
|
private void _aligned_free(void *ptr)
|
||||||
{
|
{
|
||||||
import std.c.stdlib : free;
|
import core.stdc.stdlib : free;
|
||||||
if (!ptr) return;
|
if (!ptr) return;
|
||||||
AlignInfo* head = AlignInfo(ptr);
|
AlignInfo* head = AlignInfo(ptr);
|
||||||
free(head.basePtr);
|
free(head.basePtr);
|
||||||
|
|
|
@ -4674,7 +4674,7 @@ void formatTest(T)(string fmt, T val, string[] expected, size_t ln = __LINE__, s
|
||||||
import core.stdc.string : strlen;
|
import core.stdc.string : strlen;
|
||||||
import std.array : appender;
|
import std.array : appender;
|
||||||
import std.conv : text, octal;
|
import std.conv : text, octal;
|
||||||
import std.c.stdio : snprintf;
|
import core.stdc.stdio : snprintf;
|
||||||
|
|
||||||
debug(format) printf("std.format.format.unittest\n");
|
debug(format) printf("std.format.format.unittest\n");
|
||||||
|
|
||||||
|
|
32
win32.mak
32
win32.mak
|
@ -222,43 +222,11 @@ SRC_STD_REGEX= \
|
||||||
std\regex\internal\kickstart.d \
|
std\regex\internal\kickstart.d \
|
||||||
std\regex\internal\generator.d
|
std\regex\internal\generator.d
|
||||||
|
|
||||||
SRC_STD_C= \
|
|
||||||
std\c\process.d \
|
|
||||||
std\c\stdlib.d \
|
|
||||||
std\c\time.d \
|
|
||||||
std\c\stdio.d \
|
|
||||||
std\c\math.d \
|
|
||||||
std\c\stdarg.d \
|
|
||||||
std\c\stddef.d \
|
|
||||||
std\c\fenv.d \
|
|
||||||
std\c\string.d \
|
|
||||||
std\c\locale.d \
|
|
||||||
std\c\wcharh.d
|
|
||||||
|
|
||||||
SRC_STD_WIN= \
|
SRC_STD_WIN= \
|
||||||
std\windows\registry.d \
|
std\windows\registry.d \
|
||||||
std\windows\syserror.d \
|
std\windows\syserror.d \
|
||||||
std\windows\charset.d
|
std\windows\charset.d
|
||||||
|
|
||||||
SRC_STD_C_WIN= \
|
|
||||||
std\c\windows\windows.d \
|
|
||||||
std\c\windows\com.d \
|
|
||||||
std\c\windows\winsock.d \
|
|
||||||
std\c\windows\stat.d
|
|
||||||
|
|
||||||
SRC_STD_C_LINUX= \
|
|
||||||
std\c\linux\linux.d \
|
|
||||||
std\c\linux\socket.d \
|
|
||||||
std\c\linux\pthread.d \
|
|
||||||
std\c\linux\termios.d \
|
|
||||||
std\c\linux\tipc.d
|
|
||||||
|
|
||||||
SRC_STD_C_OSX= \
|
|
||||||
std\c\osx\socket.d
|
|
||||||
|
|
||||||
SRC_STD_C_FREEBSD= \
|
|
||||||
std\c\freebsd\socket.d
|
|
||||||
|
|
||||||
SRC_STD_INTERNAL= \
|
SRC_STD_INTERNAL= \
|
||||||
std\internal\cstring.d \
|
std\internal\cstring.d \
|
||||||
std\internal\unicode_tables.d \
|
std\internal\unicode_tables.d \
|
||||||
|
|
32
win64.mak
32
win64.mak
|
@ -247,43 +247,11 @@ SRC_STD_REGEX= \
|
||||||
std\regex\internal\kickstart.d \
|
std\regex\internal\kickstart.d \
|
||||||
std\regex\internal\generator.d
|
std\regex\internal\generator.d
|
||||||
|
|
||||||
SRC_STD_C= \
|
|
||||||
std\c\process.d \
|
|
||||||
std\c\stdlib.d \
|
|
||||||
std\c\time.d \
|
|
||||||
std\c\stdio.d \
|
|
||||||
std\c\math.d \
|
|
||||||
std\c\stdarg.d \
|
|
||||||
std\c\stddef.d \
|
|
||||||
std\c\fenv.d \
|
|
||||||
std\c\string.d \
|
|
||||||
std\c\locale.d \
|
|
||||||
std\c\wcharh.d
|
|
||||||
|
|
||||||
SRC_STD_WIN= \
|
SRC_STD_WIN= \
|
||||||
std\windows\registry.d \
|
std\windows\registry.d \
|
||||||
std\windows\syserror.d \
|
std\windows\syserror.d \
|
||||||
std\windows\charset.d
|
std\windows\charset.d
|
||||||
|
|
||||||
SRC_STD_C_WIN= \
|
|
||||||
std\c\windows\windows.d \
|
|
||||||
std\c\windows\com.d \
|
|
||||||
std\c\windows\winsock.d \
|
|
||||||
std\c\windows\stat.d
|
|
||||||
|
|
||||||
SRC_STD_C_LINUX= \
|
|
||||||
std\c\linux\linux.d \
|
|
||||||
std\c\linux\socket.d \
|
|
||||||
std\c\linux\pthread.d \
|
|
||||||
std\c\linux\termios.d \
|
|
||||||
std\c\linux\tipc.d
|
|
||||||
|
|
||||||
SRC_STD_C_OSX= \
|
|
||||||
std\c\osx\socket.d
|
|
||||||
|
|
||||||
SRC_STD_C_FREEBSD= \
|
|
||||||
std\c\freebsd\socket.d
|
|
||||||
|
|
||||||
SRC_STD_INTERNAL= \
|
SRC_STD_INTERNAL= \
|
||||||
std\internal\cstring.d \
|
std\internal\cstring.d \
|
||||||
std\internal\unicode_tables.d \
|
std\internal\unicode_tables.d \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue