delete trailing whitespace

This commit is contained in:
Daniel Stenberg 2004-05-24 10:46:22 +00:00
parent 4ed58463f7
commit 83dcc3e061
1 changed files with 23 additions and 23 deletions

View File

@ -1,10 +1,10 @@
#ifndef __CURL_CURL_H #ifndef __CURL_CURL_H
#define __CURL_CURL_H #define __CURL_CURL_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
* / __| | | | |_) | | * / __| | | | |_) | |
* | (__| |_| | _ <| |___ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____| * \___|\___/|_| \_\_____|
* *
* Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
@ -12,7 +12,7 @@
* This software is licensed as described in the file COPYING, which * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
* are also available at http://curl.haxx.se/docs/copyright.html. * are also available at http://curl.haxx.se/docs/copyright.html.
* *
* You may opt to use, copy, modify, merge, publish, distribute and/or sell * You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is * copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file. * furnished to do so, under the terms of the COPYING file.
@ -182,7 +182,7 @@ typedef int (*curl_debug_callback)
char *data, /* points to the data */ char *data, /* points to the data */
size_t size, /* size of the data pointed to */ size_t size, /* size of the data pointed to */
void *userptr); /* whatever the user please */ void *userptr); /* whatever the user please */
/* All possible error codes from all sorts of curl functions. Future versions /* All possible error codes from all sorts of curl functions. Future versions
may return other values, stay prepared. may return other values, stay prepared.
@ -256,7 +256,7 @@ typedef enum {
CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized transfer encoding */ CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized transfer encoding */
CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */ CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */
CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */ CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */
CURLE_FTP_SSL_FAILED, /* 64 - Requested FTP SSL level failed */ CURLE_FTP_SSL_FAILED, /* 64 - Requested FTP SSL level failed */
CURL_LAST /* never use! */ CURL_LAST /* never use! */
} CURLcode; } CURLcode;
@ -364,7 +364,7 @@ typedef enum {
/* Name of proxy to use. */ /* Name of proxy to use. */
CINIT(PROXY, OBJECTPOINT, 4), CINIT(PROXY, OBJECTPOINT, 4),
/* "name:password" to use when fetching. */ /* "name:password" to use when fetching. */
CINIT(USERPWD, OBJECTPOINT, 5), CINIT(USERPWD, OBJECTPOINT, 5),
@ -421,7 +421,7 @@ typedef enum {
/* If the download receives less than "low speed limit" bytes/second /* If the download receives less than "low speed limit" bytes/second
* during "low speed time" seconds, the operations is aborted. * during "low speed time" seconds, the operations is aborted.
* You could i.e if you have a pretty high speed connection, abort if * You could i.e if you have a pretty high speed connection, abort if
* it is less than 2000 bytes/sec during 20 seconds. * it is less than 2000 bytes/sec during 20 seconds.
*/ */
/* Set the "low speed limit" */ /* Set the "low speed limit" */
@ -454,7 +454,7 @@ typedef enum {
CINIT(SSLCERTPASSWD, OBJECTPOINT, 26), CINIT(SSLCERTPASSWD, OBJECTPOINT, 26),
/* password for the SSL private key */ /* password for the SSL private key */
CINIT(SSLKEYPASSWD, OBJECTPOINT, 26), CINIT(SSLKEYPASSWD, OBJECTPOINT, 26),
/* send TYPE parameter? */ /* send TYPE parameter? */
CINIT(CRLF, LONG, 27), CINIT(CRLF, LONG, 27),
@ -553,14 +553,14 @@ typedef enum {
/* Set if we should verify the peer in ssl handshake, set 1 to verify. */ /* Set if we should verify the peer in ssl handshake, set 1 to verify. */
CINIT(SSL_VERIFYPEER, LONG, 64), CINIT(SSL_VERIFYPEER, LONG, 64),
/* The CApath or CAfile used to validate the peer certificate /* The CApath or CAfile used to validate the peer certificate
this option is used only if SSL_VERIFYPEER is true */ this option is used only if SSL_VERIFYPEER is true */
CINIT(CAINFO, OBJECTPOINT, 65), CINIT(CAINFO, OBJECTPOINT, 65),
/* 66 = OBSOLETE */ /* 66 = OBSOLETE */
/* 67 = OBSOLETE */ /* 67 = OBSOLETE */
/* Maximum number of http redirects to follow */ /* Maximum number of http redirects to follow */
CINIT(MAXREDIRS, LONG, 68), CINIT(MAXREDIRS, LONG, 68),
@ -629,7 +629,7 @@ typedef enum {
/* Specificly switch on or off the FTP engine's use of the EPSV command. By /* Specificly switch on or off the FTP engine's use of the EPSV command. By
default, that one will always be attempted before the more traditional default, that one will always be attempted before the more traditional
PASV command. */ PASV command. */
CINIT(FTP_USE_EPSV, LONG, 85), CINIT(FTP_USE_EPSV, LONG, 85),
/* type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") */ /* type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") */
@ -678,7 +678,7 @@ typedef enum {
timeouts. This option is useful for multi-threaded applications. timeouts. This option is useful for multi-threaded applications.
See libcurl-the-guide for more background information. */ See libcurl-the-guide for more background information. */
CINIT(NOSIGNAL, LONG, 99), CINIT(NOSIGNAL, LONG, 99),
/* Provide a CURLShare for mutexing non-ts data */ /* Provide a CURLShare for mutexing non-ts data */
CINIT(SHARE, OBJECTPOINT, 100), CINIT(SHARE, OBJECTPOINT, 100),
@ -689,7 +689,7 @@ typedef enum {
/* Set the Accept-Encoding string. Use this to tell a server you would like /* Set the Accept-Encoding string. Use this to tell a server you would like
the response to be compressed. */ the response to be compressed. */
CINIT(ENCODING, OBJECTPOINT, 102), CINIT(ENCODING, OBJECTPOINT, 102),
/* Set pointer to private data */ /* Set pointer to private data */
CINIT(PRIVATE, OBJECTPOINT, 103), CINIT(PRIVATE, OBJECTPOINT, 103),
@ -703,7 +703,7 @@ typedef enum {
/* Specificly switch on or off the FTP engine's use of the EPRT command ( it /* Specificly switch on or off the FTP engine's use of the EPRT command ( it
also disables the LPRT attempt). By default, those ones will always be also disables the LPRT attempt). By default, those ones will always be
attempted before the good old traditional PORT command. */ attempted before the good old traditional PORT command. */
CINIT(FTP_USE_EPRT, LONG, 106), CINIT(FTP_USE_EPRT, LONG, 106),
/* Set this to a bitmask value to enable the particular authentications /* Set this to a bitmask value to enable the particular authentications
@ -728,7 +728,7 @@ typedef enum {
Note that setting multiple bits may cause extra network round-trips. */ Note that setting multiple bits may cause extra network round-trips. */
CINIT(PROXYAUTH, LONG, 111), CINIT(PROXYAUTH, LONG, 111),
/* FTP option that changes the timeout, in seconds, associated with /* FTP option that changes the timeout, in seconds, associated with
getting a response. This is different from transfer timeout time and getting a response. This is different from transfer timeout time and
essentially places a demand on the FTP server to acknowledge commands essentially places a demand on the FTP server to acknowledge commands
in a timely manner. */ in a timely manner. */
@ -793,7 +793,7 @@ typedef enum {
/* three convenient "aliases" that follow the name scheme better */ /* three convenient "aliases" that follow the name scheme better */
#define CURLOPT_WRITEDATA CURLOPT_FILE #define CURLOPT_WRITEDATA CURLOPT_FILE
#define CURLOPT_READDATA CURLOPT_INFILE #define CURLOPT_READDATA CURLOPT_INFILE
#define CURLOPT_HEADERDATA CURLOPT_WRITEHEADER #define CURLOPT_HEADERDATA CURLOPT_WRITEHEADER
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all #ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
@ -818,7 +818,7 @@ enum {
for us! */ for us! */
CURL_HTTP_VERSION_1_0, /* please use HTTP 1.0 in the request */ CURL_HTTP_VERSION_1_0, /* please use HTTP 1.0 in the request */
CURL_HTTP_VERSION_1_1, /* please use HTTP 1.1 in the request */ CURL_HTTP_VERSION_1_1, /* please use HTTP 1.1 in the request */
CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */ CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */
}; };
@ -878,7 +878,7 @@ extern int (curl_strnequal)(const char *s1, const char *s2, size_t n);
typedef enum { typedef enum {
CFINIT(NOTHING), /********* the first one is unused ************/ CFINIT(NOTHING), /********* the first one is unused ************/
/* */ /* */
CFINIT(COPYNAME), CFINIT(COPYNAME),
CFINIT(PTRNAME), CFINIT(PTRNAME),
@ -914,7 +914,7 @@ struct curl_forms {
/* use this for multipart formpost building */ /* use this for multipart formpost building */
/* Returns code for curl_formadd() /* Returns code for curl_formadd()
* *
* Returns: * Returns:
* CURL_FORMADD_OK on success * CURL_FORMADD_OK on success
* CURL_FORMADD_MEMORY if the FormInfo allocation fails * CURL_FORMADD_MEMORY if the FormInfo allocation fails
@ -1140,7 +1140,7 @@ typedef enum {
CURLCLOSEPOLICY_LEAST_TRAFFIC, CURLCLOSEPOLICY_LEAST_TRAFFIC,
CURLCLOSEPOLICY_SLOWEST, CURLCLOSEPOLICY_SLOWEST,
CURLCLOSEPOLICY_CALLBACK, CURLCLOSEPOLICY_CALLBACK,
CURLCLOSEPOLICY_LAST /* last, never use this */ CURLCLOSEPOLICY_LAST /* last, never use this */
} curl_closepolicy; } curl_closepolicy;
@ -1162,7 +1162,7 @@ typedef enum {
* the locking is just made to change the internal state of the share * the locking is just made to change the internal state of the share
* itself. * itself.
*/ */
CURL_LOCK_DATA_SHARE, CURL_LOCK_DATA_SHARE,
CURL_LOCK_DATA_COOKIE, CURL_LOCK_DATA_COOKIE,
CURL_LOCK_DATA_DNS, CURL_LOCK_DATA_DNS,
CURL_LOCK_DATA_SSL_SESSION, CURL_LOCK_DATA_SSL_SESSION,