Commit 08ef208f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added disable-[protocol] support, largely provided by Miklos Nemeth

parent 8c45e2a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
 *
 * $Id$
 *****************************************************************************/

#ifndef CURL_DISABLE_TELNET
/*
 * Telnet option defines. Add more here if in need.
 */
@@ -97,5 +97,5 @@ static const char *telnetcmds[]=
#define TELCMD_OK(x) ( ((unsigned int)(x) >= TELCMD_MINIMUM) && \
                       ((unsigned int)(x) <= TELCMD_MAXIMUM) )
#define TELCMD(x)    telnetcmds[(x)-TELCMD_MINIMUM]

#endif
#endif
+4 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@ Example set of cookies:

#include "setup.h"

#ifndef CURL_DISABLE_HTTP

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
@@ -761,6 +763,8 @@ int main(int argc, char **argv)

#endif

#endif /* CURL_DISABLE_HTTP */

/*
 * local variables:
 * eval: (load-file "../curl-mode.el")
+2 −1
Original line number Diff line number Diff line
@@ -23,7 +23,8 @@
 *
 * $Id$
 *****************************************************************************/
#ifndef CURL_DISABLE_DICT
CURLcode Curl_dict(struct connectdata *conn);
CURLcode Curl_dict_done(struct connectdata *conn);

#endif
#endif
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@

#include "setup.h"

#ifndef CURL_DISABLE_FILE
/* -- WIN32 approved -- */
#include <stdio.h>
#include <string.h>
@@ -204,3 +205,4 @@ CURLcode Curl_file(struct connectdata *conn)
 * vim600: fdm=marker
 * vim: et sw=2 ts=2 sts=2 tw=78
 */
#endif
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@
 *
 * $Id$
 *****************************************************************************/
#ifndef CURL_DISABLE_FILE
CURLcode Curl_file(struct connectdata *conn);
CURLcode Curl_file_connect(struct connectdata *conn);
#endif
#endif
Loading