aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-26 10:55:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-26 10:55:52 +0000
commit26a5954fa07ee33b9efdfba9009cd86ddf6a67c8 (patch)
tree788512e0f61d5af27a8fee78869a5ec4ba16faf2 /lib
parent01165e08e0d131b399fba2190f17af67e66f0888 (diff)
adding a bunch of comments for each #endif
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/setup.h b/lib/setup.h
index bf3a9aad3..ddd61b523 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -30,7 +30,7 @@
#define CURL_DISABLE_DICT
#define CURL_DISABLE_FILE
#define CURL_DISABLE_GOPHER
-#endif
+#endif /* HTTP_ONLY */
#if !defined(WIN32) && defined(__WIN32__)
/* This should be a good Borland fix. */
@@ -50,9 +50,9 @@
#ifdef WIN32
/* hand-modified win32 config.h! */
#include "config-win32.h"
-#endif
-#endif
-#endif
+#endif /* WIN32 */
+#endif /* WIN32_WCE */
+#endif /* HAVE_CONFIG_H */
#ifdef macintosh
/* hand-modified MacOS config.h! */
@@ -82,7 +82,7 @@ typedef unsigned char bool;
#ifdef _MSC_VER
#define LONG_LONG __int64
#define ENABLE_64BIT
-#endif
+#endif /* _MSC_VER */
#endif /* HAVE_LONGLONG */
#ifndef SIZEOF_CURL_OFF_T
@@ -97,7 +97,7 @@ typedef unsigned char bool;
#define FORMAT_OFF_T "lld"
#else
#define FORMAT_OFF_T "ld"
-#endif
+#endif /* SIZEOF_CURL_OFF_T */
#ifndef _REENTRANT
/* Solaris needs _REENTRANT set for a few function prototypes and things to
@@ -135,7 +135,7 @@ typedef unsigned char bool;
#define HAVE_MSG_NOSIGNAL 1 /* we have MSG_NOSIGNAL */
#else
#define SEND_4TH_ARG 0
-#endif
+#endif /* MSG_NOSIGNAL */
/* To make large file support transparent even on Windows */
#if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4)
@@ -147,7 +147,7 @@ typedef unsigned char bool;
#define fstat(fd,st) _fstati64(fd,st)
#else
#define struct_stat struct stat
-#endif
+#endif /* Win32 with large file support */
/* Below we define four functions. They should
1. close a socket
@@ -162,7 +162,7 @@ typedef unsigned char bool;
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN /* Prevent including <winsock*.h> in <windows.h> */
-#endif
+#endif /* WIN32_LEAN_AND_MEAN */
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h> /* required by telnet.c */
@@ -183,12 +183,12 @@ typedef unsigned char bool;
#define sread(x,y,z) recv(x,y,z, SEND_4TH_ARG)
#define swrite(x,y,z) send(x,y,z, SEND_4TH_ARG)
#define HAVE_ALARM
-#endif
+#endif /* !GNU or mingw */
#define DIR_CHAR "\\"
#define DOT_CHAR "_"
-#else
+#else /* WIN32 */
#ifdef DJGPP
#define sclose(x) close_s(x)
@@ -201,21 +201,21 @@ typedef unsigned char bool;
#undef word
#endif
-#else
+#else /* DJGPP */
#ifdef __BEOS__
#define sclose(x) closesocket(x)
#define sread(x,y,z) (ssize_t)recv(x,y,z, SEND_4TH_ARG)
#define swrite(x,y,z) (ssize_t)send(x,y,z, SEND_4TH_ARG)
-#else
+#else /* __BEOS__ */
#define sclose(x) close(x)
#define sread(x,y,z) recv(x,y,z, SEND_4TH_ARG)
#define swrite(x,y,z) send(x,y,z, SEND_4TH_ARG)
-#endif
+#endif /* __BEOS__ */
#define HAVE_ALARM
-#endif
+#endif /* DJGPP */
#ifdef _AMIGASF
#undef HAVE_ALARM
@@ -235,7 +235,7 @@ typedef unsigned char bool;
int fileno( FILE *stream);
#endif
-#endif
+#endif /* WIN32 */
/* now typedef our socket type */
#ifdef WIN32