From: Sterling Hughes Date: Fri, 7 Sep 2001 04:01:32 +0000 (+0000) Subject: Added formatting sections for emacs and vim X-Git-Tag: curl-7_9~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6147879837a53d22c9be04e7a4fc315a297ba2b3;p=thirdparty%2Fcurl.git Added formatting sections for emacs and vim --- diff --git a/lib/base64.c b/lib/base64.c index 6ff6b955af..49b2096f0b 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -260,3 +260,11 @@ void *suck(int *lenptr) { } #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/cookie.c b/lib/cookie.c index f303363d82..f17f39c831 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -676,3 +676,11 @@ int main(int argc, char **argv) } #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/dict.c b/lib/dict.c index f8763e29ab..2bc350b316 100644 --- a/lib/dict.c +++ b/lib/dict.c @@ -232,3 +232,11 @@ CURLcode Curl_dict(struct connectdata *conn) return CURLE_OK; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/dllinit.c b/lib/dllinit.c index 84b171658c..d4a2764658 100644 --- a/lib/dllinit.c +++ b/lib/dllinit.c @@ -82,3 +82,11 @@ DllMain ( return TRUE; } #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/easy.c b/lib/easy.c index f9cb6d8607..07a0aa8b1c 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -277,3 +277,11 @@ CURL *curl_easy_duphandle(CURL *incurl) return outcurl; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/escape.c b/lib/escape.c index ab355bf0f5..10a863ece0 100644 --- a/lib/escape.c +++ b/lib/escape.c @@ -110,3 +110,11 @@ char *curl_unescape(const char *string, int length) return ns; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/file.c b/lib/file.c index 2b95d55aa3..1c9c6ba5f1 100644 --- a/lib/file.c +++ b/lib/file.c @@ -196,3 +196,11 @@ CURLcode Curl_file(struct connectdata *conn) return res; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/formdata.c b/lib/formdata.c index bbca0b8f71..728fe33e3d 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -1322,3 +1322,11 @@ int main(int argc, char **argv) } #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/getdate.c b/lib/getdate.c index df25f1ad4b..9eb43a4089 100644 --- a/lib/getdate.c +++ b/lib/getdate.c @@ -2126,3 +2126,11 @@ main (ac, av) /* NOTREACHED */ } #endif /* defined (TEST) */ + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/getenv.c b/lib/getenv.c index 91f3f7bd75..cb902a540c 100644 --- a/lib/getenv.c +++ b/lib/getenv.c @@ -66,3 +66,11 @@ char *curl_getenv(const char *v) { return GetEnv(v); } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/getinfo.c b/lib/getinfo.c index fef5fec672..88a139e3aa 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -133,3 +133,11 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) } return CURLE_OK; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/getpass.c b/lib/getpass.c index 01d3ea7c9a..7476881cad 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -244,3 +244,11 @@ char *getpass(const char *prompt) return getpass_r(prompt, buf, sizeof(buf)); } #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/hostip.c b/lib/hostip.c index 5fdd9ddcdb..8526fb91ca 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -215,3 +215,11 @@ struct hostent *Curl_gethost(struct SessionHandle *data, } return (h); } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/http.c b/lib/http.c index a1ab24b869..6ba4d235a3 100644 --- a/lib/http.c +++ b/lib/http.c @@ -848,3 +848,11 @@ CURLcode Curl_http(struct connectdata *conn) return CURLE_OK; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/http_chunks.c b/lib/http_chunks.c index 02d7f37889..9cb2aa4737 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -220,3 +220,11 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, } return CHUNKE_OK; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/if2ip.c b/lib/if2ip.c index 261de990a1..92905ccfdc 100644 --- a/lib/if2ip.c +++ b/lib/if2ip.c @@ -124,3 +124,11 @@ char *Curl_if2ip(char *interface, char *buf, int buf_size) #else #define if2ip(x) NULL #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/krb4.c b/lib/krb4.c index ba7643e960..bd5db881bc 100644 --- a/lib/krb4.c +++ b/lib/krb4.c @@ -392,3 +392,11 @@ void Curl_krb_kauth(struct connectdata *conn) } #endif /* KRB4 */ + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/ldap.c b/lib/ldap.c index 77570c2e51..c8cc7e56d8 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -213,3 +213,11 @@ CURLcode Curl_ldap(struct connectdata *conn) return status; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/memdebug.c b/lib/memdebug.c index f0e104a6dc..c8902c1d73 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -156,3 +156,11 @@ int curl_fclose(FILE *file, int line, const char *source) } #endif /* MALLOCDEBUG */ + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/mprintf.c b/lib/mprintf.c index 6e28d2b32d..375f4b3e0e 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -1232,3 +1232,11 @@ int main() } #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/netrc.c b/lib/netrc.c index 9e5fde824d..ae5a6734c2 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -201,3 +201,11 @@ int main(int argc, char **argv) } #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/progress.c b/lib/progress.c index 45bc407f35..08611e9207 100644 --- a/lib/progress.c +++ b/lib/progress.c @@ -332,3 +332,11 @@ int Curl_pgrsUpdate(struct connectdata *conn) return 0; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/security.c b/lib/security.c index 616f9e04a3..8be86850df 100644 --- a/lib/security.c +++ b/lib/security.c @@ -546,3 +546,11 @@ Curl_sec_end(struct connectdata *conn) } #endif /* KRB4 */ + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/sendf.c b/lib/sendf.c index 93834940bf..240b65bfe3 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -291,3 +291,11 @@ CURLcode Curl_read(struct connectdata *conn, int sockfd, return CURLE_OK; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/speedcheck.c b/lib/speedcheck.c index 274ceb1083..465a2aa0f9 100644 --- a/lib/speedcheck.c +++ b/lib/speedcheck.c @@ -68,3 +68,10 @@ CURLcode Curl_speedcheck(struct SessionHandle *data, return CURLE_OK; } +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/ssluse.c b/lib/ssluse.c index 9b40f1970f..e146015641 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -642,3 +642,11 @@ Curl_SSLConnect(struct connectdata *conn) #endif return retcode; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/strequal.c b/lib/strequal.c index e05832efd4..54ecb74bb5 100644 --- a/lib/strequal.c +++ b/lib/strequal.c @@ -107,3 +107,11 @@ size_t Curl_strlcat(char *dst, const char *src, size_t siz) return(dlen + (s - src)); /* count does not include NUL */ } #endif + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/strtok.c b/lib/strtok.c index a1525df02f..b80bdb138f 100644 --- a/lib/strtok.c +++ b/lib/strtok.c @@ -65,3 +65,10 @@ Curl_strtok_r(char *ptr, const char *sep, char **end) #endif /* this was only compiled if strtok_r wasn't present */ +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/telnet.c b/lib/telnet.c index 2508892b07..f190b7cf0e 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -1111,3 +1111,11 @@ CURLcode Curl_telnet(struct connectdata *conn) /* mark this as "no further transfer wanted" */ return Curl_Transfer(conn, -1, -1, FALSE, NULL, -1, NULL); } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/timeval.c b/lib/timeval.c index dfae21a304..0535c15111 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -74,3 +74,11 @@ long Curl_tvlong (struct timeval t1) { return t1.tv_sec; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/transfer.c b/lib/transfer.c index 22d8b8bf5e..e2685b5522 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1164,3 +1164,10 @@ Curl_Transfer(struct connectdata *c_conn, /* connection data */ } +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/url.c b/lib/url.c index 3bfcafb183..42a5312717 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2361,3 +2361,10 @@ CURLcode Curl_do(struct connectdata *conn) return result; } +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */ diff --git a/lib/version.c b/lib/version.c index 32a37b067f..ae3a865e1b 100644 --- a/lib/version.c +++ b/lib/version.c @@ -103,3 +103,11 @@ char *curl_version(void) return version; } + +/* + * local variables: + * eval: (load-file "../curl-mode.el") + * end: + * vim600: et sw=2 ts=2 sts=2 tw=78 fdm=marker + * vim<600: et sw=2 ts=2 sts=2 tw=78 + */