]> granicus.if.org Git - curl/commitdiff
headers: end all headers with guard comment
authorDaniel Gustafsson <daniel@yesql.se>
Tue, 23 Oct 2018 08:02:24 +0000 (10:02 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Tue, 23 Oct 2018 08:02:24 +0000 (10:02 +0200)
Most headerfiles end with a /* <headerguard> */ comment, but it was
missing from some. The comment isn't the most important part of our
code documentation but consistency has an intrinsic value in itself.
This adds header guard comments to the files that were lacking it.

Closes #3158
Reviewed-by: Jay Satiro <raysatiro@yahoo.com>
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
lib/curl_path.h
lib/doh.h
lib/dotdot.h
lib/urlapi-int.h

index 5ee4ff36764a68f873d24fceff369c85d7bbc689..636c37f204b0ad47720eba2e314fd7a8bc4c4721 100644 (file)
@@ -44,4 +44,4 @@ CURLcode Curl_getworkingpath(struct connectdata *conn,
                              char **path);
 
 CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir);
-#endif
+#endif /* HEADER_CURL_PATH_H */
index 5f879e50e05dd8f63a1eb5a99459ea7574d77535..83c79bc5df007631bafcca44326c223e46f4e9f6 100644 (file)
--- a/lib/doh.h
+++ b/lib/doh.h
@@ -102,4 +102,4 @@ DOHcode doh_decode(unsigned char *doh,
                    struct dohentry *d);
 void de_cleanup(struct dohentry *d);
 #endif
-#endif
+#endif /* HEADER_CURL_DOH_H */
index fac8e6f2adae807deb0380c1375e997172195be7..125af43671710493e91c902fa66841bf8355a59f 100644 (file)
@@ -22,4 +22,4 @@
  *
  ***************************************************************************/
 char *Curl_dedotdotify(const char *input);
-#endif
+#endif /* HEADER_CURL_DOTDOT_H */
index a5bb8ea0be3783e8fc2e8a7b93e71027dd162933..a57d2e22bd321e787f59f0786bcd200a6764e6c8 100644 (file)
@@ -30,4 +30,4 @@ bool Curl_is_absolute_url(const char *url, char *scheme, size_t buflen);
 char *Curl_concat_url(const char *base, const char *relurl);
 size_t Curl_strlen_url(const char *url, bool relative);
 void Curl_strcpy_url(char *output, const char *url, bool relative);
-#endif
+#endif /* HEADER_CURL_URLAPI_INT_H */