lib/*.h: use our standard naming scheme for header inclusion guards

This commit is contained in:
Yang Tse 2012-12-28 12:03:09 +01:00
parent 709b3506cd
commit ec691ca34b
35 changed files with 141 additions and 110 deletions

View File

@ -1,5 +1,5 @@
#ifndef __AXTLS_H #ifndef HEADER_CURL_AXTLS_H
#define __AXTLS_H #define HEADER_CURL_AXTLS_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -59,4 +59,5 @@ int Curl_axtls_check_cxn(struct connectdata *conn);
#define curlssl_data_pending(x,y) (x=x, y=y, 0) #define curlssl_data_pending(x,y) (x=x, y=y, 0)
#endif /* USE_AXTLS */ #endif /* USE_AXTLS */
#endif #endif /* HEADER_CURL_AXTLS_H */

View File

@ -1,5 +1,5 @@
#ifndef __BUNDLES_H #ifndef HEADER_CURL_BUNDLES_H
#define __BUNDLES_H #define HEADER_CURL_BUNDLES_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -41,4 +41,5 @@ int Curl_bundle_remove_conn(struct connectbundle *cb_ptr,
struct connectdata *conn); struct connectdata *conn);
#endif /* __BUNDLES_H */ #endif /* HEADER_CURL_BUNDLES_H */

View File

@ -1,5 +1,5 @@
#ifndef HEADER_CONFIG_DOS_H #ifndef HEADER_CURL_CONFIG_DOS_H
#define HEADER_CONFIG_DOS_H #define HEADER_CURL_CONFIG_DOS_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -188,5 +188,5 @@
#undef word #undef word
#undef byte #undef byte
#endif /* HEADER_CONFIG_DOS_H */ #endif /* HEADER_CURL_CONFIG_DOS_H */

View File

@ -1,5 +1,5 @@
#ifndef HEADER_CONFIG_VMS_H #ifndef HEADER_CURL_CONFIG_VMS_H
#define HEADER_CONFIG_VMS_H #define HEADER_CURL_CONFIG_VMS_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -395,4 +395,5 @@
/* Define to hide dollar sign from compilers in strict ansi mode. */ /* Define to hide dollar sign from compilers in strict ansi mode. */
#define decc_translate_vms(__s) decc$translate_vms(__s) #define decc_translate_vms(__s) decc$translate_vms(__s)
#endif /* HEADER_CONFIG_VMS_H */ #endif /* HEADER_CURL_CONFIG_VMS_H */

View File

@ -1,6 +1,5 @@
#ifndef __CURL_LDAP_H #ifndef HEADER_CURL_LDAP_H
#define __CURL_LDAP_H #define HEADER_CURL_LDAP_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -32,4 +31,5 @@ extern const struct Curl_handler Curl_handler_ldaps;
#endif #endif
#endif #endif
#endif /* __CURL_LDAP_H */ #endif /* HEADER_CURL_LDAP_H */

View File

@ -1,5 +1,5 @@
#ifndef __CURLX_H #ifndef HEADER_CURL_CURLX_H
#define __CURLX_H #define HEADER_CURL_CURLX_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -115,4 +115,5 @@
# define vaprintf curlx_mvaprintf # define vaprintf curlx_mvaprintf
#endif /* ENABLE_CURLX_PRINTF */ #endif /* ENABLE_CURLX_PRINTF */
#endif /* __CURLX_H */ #endif /* HEADER_CURL_CURLX_H */

View File

@ -1,5 +1,5 @@
#ifndef __EASYIF_H #ifndef HEADER_CURL_EASYIF_H
#define __EASYIF_H #define HEADER_CURL_EASYIF_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -29,4 +29,5 @@ void Curl_easy_addmulti(struct SessionHandle *data, void *multi);
void Curl_easy_initHandleData(struct SessionHandle *data); void Curl_easy_initHandleData(struct SessionHandle *data);
#endif /* __EASYIF_H */ #endif /* HEADER_CURL_EASYIF_H */

View File

@ -1,6 +1,5 @@
#ifndef HEADER_CURL_ESCAPE_H #ifndef HEADER_CURL_ESCAPE_H
#define HEADER_CURL_ESCAPE_H #define HEADER_CURL_ESCAPE_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -30,4 +29,5 @@ CURLcode Curl_urldecode(struct SessionHandle *data,
char **ostring, size_t *olen, char **ostring, size_t *olen,
bool reject_crlf); bool reject_crlf);
#endif #endif /* HEADER_CURL_ESCAPE_H */

View File

@ -1,6 +1,5 @@
#ifndef __FILE_H #ifndef HEADER_CURL_FILE_H
#define __FILE_H #define HEADER_CURL_FILE_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -37,4 +36,6 @@ struct FILEPROTO {
#ifndef CURL_DISABLE_FILE #ifndef CURL_DISABLE_FILE
extern const struct Curl_handler Curl_handler_file; extern const struct Curl_handler Curl_handler_file;
#endif #endif
#endif
#endif /* HEADER_CURL_FILE_H */

View File

@ -1,5 +1,5 @@
#ifndef __HASH_H #ifndef HEADER_CURL_HASH_H
#define __HASH_H #define HEADER_CURL_HASH_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -103,4 +103,5 @@ void Curl_hash_print(struct curl_hash *h,
void (*func)(void *)); void (*func)(void *));
#endif #endif /* HEADER_CURL_HASH_H */

View File

@ -1,5 +1,5 @@
#ifndef __HOSTCHECK_H #ifndef HEADER_CURL_HOSTCHECK_H
#define __HOSTCHECK_H #define HEADER_CURL_HOSTCHECK_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -28,4 +28,5 @@
#define CURL_HOST_MATCH 1 #define CURL_HOST_MATCH 1
int Curl_cert_hostcheck(const char *match_pattern, const char *hostname); int Curl_cert_hostcheck(const char *match_pattern, const char *hostname);
#endif #endif /* HEADER_CURL_HOSTCHECK_H */

View File

@ -1,6 +1,5 @@
#ifndef __HTTP_H #ifndef HEADER_CURL_HTTP_H
#define __HTTP_H #define HEADER_CURL_HTTP_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -168,4 +167,5 @@ Curl_http_output_auth(struct connectdata *conn,
bool proxytunnel); /* TRUE if this is the request setting bool proxytunnel); /* TRUE if this is the request setting
up the proxy tunnel */ up the proxy tunnel */
#endif #endif /* HEADER_CURL_HTTP_H */

View File

@ -1,5 +1,5 @@
#ifndef __HTTP_CHUNKS_H #ifndef HEADER_CURL_HTTP_CHUNKS_H
#define __HTTP_CHUNKS_H #define HEADER_CURL_HTTP_CHUNKS_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -104,4 +104,5 @@ struct Curl_chunker {
size_t dataleft; /* untouched data amount at the end of the last buffer */ size_t dataleft; /* untouched data amount at the end of the last buffer */
}; };
#endif #endif /* HEADER_CURL_HTTP_CHUNKS_H */

View File

@ -1,5 +1,5 @@
#ifndef __IMAP_H #ifndef HEADER_CURL_IMAP_H
#define __IMAP_H #define HEADER_CURL_IMAP_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -55,4 +55,5 @@ struct imap_conn {
extern const struct Curl_handler Curl_handler_imap; extern const struct Curl_handler Curl_handler_imap;
extern const struct Curl_handler Curl_handler_imaps; extern const struct Curl_handler Curl_handler_imaps;
#endif /* __IMAP_H */ #endif /* HEADER_CURL_IMAP_H */

View File

@ -1,5 +1,5 @@
#ifndef __INET_NTOP_H #ifndef HEADER_CURL_INET_NTOP_H
#define __INET_NTOP_H #define HEADER_CURL_INET_NTOP_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -34,4 +34,5 @@ char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size);
inet_ntop(af,addr,buf,(curl_socklen_t)size) inet_ntop(af,addr,buf,(curl_socklen_t)size)
#endif #endif
#endif /* __INET_NTOP_H */ #endif /* HEADER_CURL_INET_NTOP_H */

View File

@ -1,5 +1,5 @@
#ifndef __INET_PTON_H #ifndef HEADER_CURL_INET_PTON_H
#define __INET_PTON_H #define HEADER_CURL_INET_PTON_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -33,4 +33,5 @@ int Curl_inet_pton(int, const char *, void *);
#define Curl_inet_pton(x,y,z) inet_pton(x,y,z) #define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
#endif #endif
#endif /* __INET_PTON_H */ #endif /* HEADER_CURL_INET_PTON_H */

View File

@ -1,5 +1,5 @@
#ifndef __KRB4_H #ifndef HEADER_CURL_KRB4_H
#define __KRB4_H #define HEADER_CURL_KRB4_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -53,4 +53,5 @@ void Curl_sec_end (struct connectdata *);
CURLcode Curl_sec_login (struct connectdata *); CURLcode Curl_sec_login (struct connectdata *);
int Curl_sec_request_prot (struct connectdata *conn, const char *level); int Curl_sec_request_prot (struct connectdata *conn, const char *level);
#endif #endif /* HEADER_CURL_KRB4_H */

View File

@ -1,5 +1,5 @@
#ifndef __LLIST_H #ifndef HEADER_CURL_LLIST_H
#define __LLIST_H #define HEADER_CURL_LLIST_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -53,4 +53,5 @@ void Curl_llist_destroy(struct curl_llist *, void *);
int Curl_llist_move(struct curl_llist *, struct curl_llist_element *, int Curl_llist_move(struct curl_llist *, struct curl_llist_element *,
struct curl_llist *, struct curl_llist_element *); struct curl_llist *, struct curl_llist_element *);
#endif #endif /* HEADER_CURL_LLIST_H */

View File

@ -1,5 +1,5 @@
#ifndef __MULTIIF_H #ifndef HEADER_CURL_MULTIIF_H
#define __MULTIIF_H #define HEADER_CURL_MULTIIF_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -50,4 +50,5 @@ void Curl_multi_handlePipeBreak(struct SessionHandle *data);
void Curl_multi_dump(const struct Curl_multi *multi_handle); void Curl_multi_dump(const struct Curl_multi *multi_handle);
#endif #endif
#endif /* __MULTIIF_H */ #endif /* HEADER_CURL_MULTIIF_H */

View File

@ -1,5 +1,5 @@
#ifndef __NONBLOCK_H #ifndef HEADER_CURL_NONBLOCK_H
#define __NONBLOCK_H #define HEADER_CURL_NONBLOCK_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -27,4 +27,5 @@
int curlx_nonblock(curl_socket_t sockfd, /* operate on this */ int curlx_nonblock(curl_socket_t sockfd, /* operate on this */
int nonblock /* TRUE or FALSE */); int nonblock /* TRUE or FALSE */);
#endif #endif /* HEADER_CURL_NONBLOCK_H */

View File

@ -1,5 +1,5 @@
#ifndef __CURL_PARSEDATE_H #ifndef HEADER_CURL_PARSEDATE_H
#define __CURL_PARSEDATE_H #define HEADER_CURL_PARSEDATE_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -27,4 +27,5 @@ extern const char * const Curl_month[12];
CURLcode Curl_gmtime(time_t intime, struct tm *store); CURLcode Curl_gmtime(time_t intime, struct tm *store);
#endif #endif /* HEADER_CURL_PARSEDATE_H */

View File

@ -1,5 +1,5 @@
#ifndef __PROGRESS_H #ifndef HEADER_CURL_PROGRESS_H
#define __PROGRESS_H #define HEADER_CURL_PROGRESS_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -68,4 +68,5 @@ void Curl_pgrsTime(struct SessionHandle *data, timerid timer);
#define PGRS_HEADERS_OUT (1<<7) /* set when the headers have been written */ #define PGRS_HEADERS_OUT (1<<7) /* set when the headers have been written */
#endif /* __PROGRESS_H */ #endif /* HEADER_CURL_PROGRESS_H */

View File

@ -1,5 +1,5 @@
#ifndef __RAWSTR_H #ifndef HEADER_CURL_RAWSTR_H
#define __RAWSTR_H #define HEADER_CURL_RAWSTR_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -42,4 +42,6 @@ char Curl_raw_toupper(char in);
#define checkprefix(a,b) Curl_raw_nequal(a,b,strlen(a)) #define checkprefix(a,b) Curl_raw_nequal(a,b,strlen(a))
void Curl_strntoupper(char *dest, const char *src, size_t n); void Curl_strntoupper(char *dest, const char *src, size_t n);
#endif
#endif /* HEADER_CURL_RAWSTR_H */

View File

@ -1,6 +1,5 @@
#ifndef __RTSP_H_ #ifndef HEADER_CURL_RTSP_H
#define __RTSP_H_ #define HEADER_CURL_RTSP_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -66,4 +65,5 @@ struct RTSP {
}; };
#endif /* __RTSP_H_ */ #endif /* HEADER_CURL_RTSP_H */

View File

@ -1,5 +1,5 @@
#ifndef __SELECT_H #ifndef HEADER_CURL_SELECT_H
#define __SELECT_H #define HEADER_CURL_SELECT_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -104,4 +104,5 @@ int tpf_select_libcurl(int maxfds, fd_set* reads, fd_set* writes,
} WHILE_FALSE } WHILE_FALSE
#endif #endif
#endif /* __SELECT_H */ #endif /* HEADER_CURL_SELECT_H */

View File

@ -1,5 +1,5 @@
#ifndef __SETUP_ONCE_H #ifndef HEADER_CURL_SETUP_ONCE_H
#define __SETUP_ONCE_H #define HEADER_CURL_SETUP_ONCE_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -566,4 +566,5 @@ typedef int sig_atomic_t;
#define ZERO_NULL 0 #define ZERO_NULL 0
#endif /* __SETUP_ONCE_H */ #endif /* HEADER_CURL_SETUP_ONCE_H */

View File

@ -1,5 +1,5 @@
#ifndef __SLIST_H #ifndef HEADER_CURL_SLIST_H
#define __SLIST_H #define HEADER_CURL_SLIST_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -29,4 +29,5 @@
*/ */
struct curl_slist *Curl_slist_duplicate(struct curl_slist *inlist); struct curl_slist *Curl_slist_duplicate(struct curl_slist *inlist);
#endif /* __SLIST_H */ #endif /* HEADER_CURL_SLIST_H */

View File

@ -1,5 +1,5 @@
#ifndef __SMTP_H #ifndef HEADER_CURL_SMTP_H
#define __SMTP_H #define HEADER_CURL_SMTP_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -84,4 +84,5 @@ extern const struct Curl_handler Curl_handler_smtps;
CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread); CURLcode Curl_smtp_escape_eob(struct connectdata *conn, ssize_t nread);
#endif /* __SMTP_H */ #endif /* HEADER_CURL_SMTP_H */

View File

@ -1,5 +1,5 @@
#ifndef __SOCKADDR_H #ifndef HEADER_CURL_SOCKADDR_H
#define __SOCKADDR_H #define HEADER_CURL_SOCKADDR_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -39,4 +39,5 @@ struct Curl_sockaddr_storage {
} buffer; } buffer;
}; };
#endif /* __SOCKADDR_H */ #endif /* HEADER_CURL_SOCKADDR_H */

View File

@ -1,5 +1,5 @@
#ifndef __CURL_SOCKS_H #ifndef HEADER_CURL_SOCKS_H
#define __CURL_SOCKS_H #define HEADER_CURL_SOCKS_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -73,4 +73,5 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
#endif /* CURL_DISABLE_PROXY */ #endif /* CURL_DISABLE_PROXY */
#endif /* __CURL_SOCKS_H */ #endif /* HEADER_CURL_SOCKS_H */

View File

@ -1,5 +1,5 @@
#ifndef __STREQUAL_H #ifndef HEADER_CURL_STREQUAL_H
#define __STREQUAL_H #define HEADER_CURL_STREQUAL_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -32,4 +32,5 @@
#endif #endif
size_t strlcat(char *dst, const char *src, size_t siz); size_t strlcat(char *dst, const char *src, size_t siz);
#endif #endif /* HEADER_CURL_STREQUAL_H */

View File

@ -1,6 +1,5 @@
#ifndef __TELNET_H #ifndef HEADER_CURL_TELNET_H
#define __TELNET_H #define HEADER_CURL_TELNET_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -25,4 +24,6 @@
#ifndef CURL_DISABLE_TELNET #ifndef CURL_DISABLE_TELNET
extern const struct Curl_handler Curl_handler_telnet; extern const struct Curl_handler Curl_handler_telnet;
#endif #endif
#endif
#endif /* HEADER_CURL_TELNET_H */

View File

@ -1,6 +1,5 @@
#ifndef __TFTP_H #ifndef HEADER_CURL_TFTP_H
#define __TFTP_H #define HEADER_CURL_TFTP_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -25,4 +24,6 @@
#ifndef CURL_DISABLE_TFTP #ifndef CURL_DISABLE_TFTP
extern const struct Curl_handler Curl_handler_tftp; extern const struct Curl_handler Curl_handler_tftp;
#endif #endif
#endif
#endif /* HEADER_CURL_TFTP_H */

View File

@ -1,5 +1,5 @@
#ifndef __TIMEVAL_H #ifndef HEADER_CURL_TIMEVAL_H
#define __TIMEVAL_H #define HEADER_CURL_TIMEVAL_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -54,4 +54,5 @@ long Curl_tvlong(struct timeval t1);
#define Curl_tvdiff(x,y) curlx_tvdiff(x,y) #define Curl_tvdiff(x,y) curlx_tvdiff(x,y)
#define Curl_tvdiff_secs(x,y) curlx_tvdiff_secs(x,y) #define Curl_tvdiff_secs(x,y) curlx_tvdiff_secs(x,y)
#endif #endif /* HEADER_CURL_TIMEVAL_H */

View File

@ -1,5 +1,5 @@
#ifndef __TRANSFER_H #ifndef HEADER_CURL_TRANSFER_H
#define __TRANSFER_H #define HEADER_CURL_TRANSFER_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -66,4 +66,5 @@ Curl_setup_transfer (struct connectdata *data,
long Curl_sleep_time(curl_off_t rate_bps, curl_off_t cur_rate_bps, long Curl_sleep_time(curl_off_t rate_bps, curl_off_t cur_rate_bps,
int pkt_size); int pkt_size);
#endif #endif /* HEADER_CURL_TRANSFER_H */