1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 14:05:03 -05:00
curl/tests/server
Yang Tse 90695fb2c5 Reinstate "WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage".
This reverts commit 7ed25cc, reinstating commit 8ec2cb5.

As of 18-jul-2013 we still do have code in libcurl that makes use of these
memory functions. Commit 8ec2cb5 comment still applies and is yet valid.

These memory functions are solely used in Windows builds, so all related
code is protected with '#ifdef WIN32' preprocessor conditional compilation
directives.

Specifically, wcsdup() _wcsdup() are used when building a Windows target with
UNICODE and USE_WINDOWS_SSPI preprocessor symbols defined. This is the case
when building a Windows UNICODE target with Windows native SSL/TLS support
enabled.

Realizing that wcsdup() _wcsdup() are used is a bit tricky given that usage
of these is hidden behind _tcsdup() which is MS way of dealing with code
that must tolerate UNICODE and non-UNICODE compilation. Additionally, MS
header files and those compatible from other compilers use this preprocessor
conditional compilation directive in order to select at compilation time
whether 'wide' or 'ansi' MS API functions are used.

Without this code, Windows build targets with Windows native SSL/TLS support
enabled and MemoryTracking support enabled misbehave in tracking memory usage,
regardless of being a UNICODE enabled build or not.
2013-07-18 23:37:33 +02:00
..
.gitignore gitignore: ignore fake_ntlm 2011-07-18 23:49:31 +02:00
base64.pl utility to base encode data passed on stdin 2004-11-29 12:09:05 +00:00
CMakeLists.txt cmake: Fix for MSVC2010 project generation 2013-07-17 00:26:58 +02:00
fake_ntlm.c test servers: fix errno, ERRNO and SOCKERRNO usage for W32/W64 2013-01-09 22:23:50 +01:00
getpart.c Reinstate "WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage". 2013-07-18 23:37:33 +02:00
getpart.h test servers: build adjustment 2012-04-10 17:32:06 +02:00
Makefile.am build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00
Makefile.inc Makefile.inc: fix $(top_srcdir) not allowed in _SOURCES variables 2013-01-20 04:20:02 +01:00
resolve.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
rtspd.c test servers: handle W32/W64 SIGBREAK with exit_signal_handler 2013-01-09 22:23:50 +01:00
server_setup.h build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00
server_sockaddr.h test servers: build adjustment 2012-04-10 17:32:06 +02:00
sockfilt.c sockfilt.c: Fixed detection of client-side connection close 2013-04-06 23:09:50 +02:00
sws.c sws: support extracting test number from CONNECT ipv6-address! 2013-06-04 22:50:58 +02:00
testpart.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
tftp.h Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
tftpd.c tftpd.c: Apply sread timeout to the whole data transfer session 2013-04-06 19:00:42 +02:00
util.c util.c: Revert workaround eeefcdf, 6eb56e7 and e3787e8 2013-04-06 11:55:30 +02:00
util.h test servers: build adjustment 2012-04-10 17:32:06 +02:00