]> git.ipfire.org Git - thirdparty/curl.git/commit
source cleanup: remove all custom typedef structs
authorDaniel Stenberg <daniel@haxx.se>
Wed, 13 May 2020 22:05:04 +0000 (00:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 15 May 2020 06:54:42 +0000 (08:54 +0200)
commit8df455479f8801bbebad8839fc96abbffa711603
treead0fcac278779ef75726f8aec6a061453c043282
parent5d54b5e6971cf26b35d11980d6953bf436419752
source cleanup: remove all custom typedef structs

 - Stick to a single unified way to use structs
 - Make checksrc complain on 'typedef struct {'
 - Allow them in tests, public headers and examples

 - Let MD4_CTX, MD5_CTX, and SHA256_CTX typedefs remain as they actually
   typedef different types/structs depending on build conditions.

Closes #5338
71 files changed:
.gitignore
docs/CODE_STYLE.md
docs/examples/.checksrc [new file with mode: 0644]
docs/examples/Makefile.am
include/curl/curl.h
lib/asyn-ares.c
lib/asyn-thread.c
lib/asyn.h
lib/checksrc.pl
lib/config-win32.h
lib/connect.c
lib/connect.h
lib/content_encoding.c
lib/content_encoding.h
lib/curl_addrinfo.c
lib/curl_addrinfo.h
lib/curl_hmac.h
lib/curl_md5.h
lib/doh.c
lib/doh.h
lib/formdata.c
lib/formdata.h
lib/ftp.c
lib/hmac.c
lib/hostasyn.c
lib/hostip.c
lib/hostip.h
lib/hostip4.c
lib/hostip6.c
lib/ldap.c
lib/md4.c
lib/md5.c
lib/mime.c
lib/mime.h
lib/mprintf.c
lib/nwlib.c
lib/openldap.c
lib/pop3.c
lib/sha256.c
lib/socks.c
lib/tftp.c
lib/urldata.h
lib/vauth/cram.c
lib/vauth/digest.c
lib/vtls/gskit.c
lib/vtls/nss.c
lib/vtls/openssl.c
lib/vtls/schannel.c
lib/vtls/schannel_verify.c
lib/vtls/vtls.c
lib/vtls/wolfssl.c
lib/x509asn1.c
lib/x509asn1.h
src/tool_cfgable.h
src/tool_formparse.c
src/tool_formparse.h
src/tool_metalink.c
src/tool_metalink.h
src/tool_operate.c
src/tool_operate.h
src/tool_setopt.c
src/tool_setopt.h
src/tool_urlglob.c
src/tool_urlglob.h
src/tool_vms.c
tests/libtest/.checksrc [new file with mode: 0644]
tests/libtest/Makefile.am
tests/libtest/lib1156.c
tests/libtest/lib576.c
tests/unit/unit1305.c
tests/unit/unit1608.c