From 90080da5fefe943aec5aa0b9c08510dc1dd48be3 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 14 Sep 2011 11:27:12 +0200 Subject: curl tool: re-enable MemoryTracking capability on 'src' subdirectory files. Use same preprocessor logic for curl tool MemoryTracking activation in source files located in 'src' subdirectory as the one used for libcurl sources. --- src/getpass.c | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to 'src/getpass.c') diff --git a/src/getpass.c b/src/getpass.c index 438fc8d31..a154d107c 100644 --- a/src/getpass.c +++ b/src/getpass.c @@ -19,10 +19,6 @@ * KIND, either express or implied. * ***************************************************************************/ - -/* This file is a reimplementation of the previous one, due to license - problems. */ - #include "setup.h" #ifndef HAVE_GETPASS_R @@ -32,8 +28,6 @@ #include #endif -#include "getpass.h" - #ifdef HAVE_FCNTL_H #include #endif @@ -45,17 +39,30 @@ #endif #endif -/* The last #include file should be: */ -#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG) -#include "memdebug.h" +#ifdef __VMS +# include descrip +# include starlet +# include iodef +#endif + +#ifdef WIN32 +# include +#endif + +#ifdef NETWARE +# ifdef __NOVELL_LIBC__ +# include +# else +# include +# endif #endif +#include "getpass.h" + +#include "memdebug.h" /* keep this as LAST include */ + #ifdef __VMS /* VMS implementation */ -#include descrip -#include starlet -#include iodef -/* #include iosbdef */ char *getpass_r(const char *prompt, char *buffer, size_t buflen) { long sts; @@ -91,12 +98,6 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen) #define DONE #endif /* __VMS */ - -#ifdef WIN32 -/* Windows implementation */ -#include -#endif - #ifdef __SYMBIAN32__ #define getch() getchar() #endif @@ -136,13 +137,11 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen) #ifdef NETWARE /* NetWare implementation */ #ifdef __NOVELL_LIBC__ -#include char *getpass_r(const char *prompt, char *buffer, size_t buflen) { return getpassword(prompt, buffer, buflen); } #else -#include char *getpass_r(const char *prompt, char *buffer, size_t buflen) { size_t i = 0; -- cgit v1.2.3