From 4c56214b8c2e130d3709bdca2513aef20b7b0fab Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 9 Mar 2024 17:35:19 +0100 Subject: Use Doxygen comments for C files --- src/misc.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/misc.c') diff --git a/src/misc.c b/src/misc.c index 8d662a33..d6fbb83b 100644 --- a/src/misc.c +++ b/src/misc.c @@ -19,7 +19,7 @@ #include "msg.h" #include "misc.h" -/* +/** * Escape characters as %XX sequences. * Return value: New string. */ @@ -47,7 +47,7 @@ char *a_Misc_escape_chars(const char *str, const char *esc_set) } #define TAB_SIZE 8 -/* +/** * Takes a string and converts any tabs to spaces. */ int @@ -123,7 +123,7 @@ typedef enum { DT_IMAGE_JPG, } DetectedContentType; -/* +/** * Detects 'Content-Type' from a data stream sample. * * It uses the magic(5) logic from file(1). Currently, it @@ -203,7 +203,7 @@ int a_Misc_get_content_type_from_data(void *Data, size_t Size, const char **PT) return st; } -/* +/** * Parse Content-Type string, e.g., "text/html; charset=utf-8". * Content-Type is defined in RFC 2045 section 5.1. */ @@ -267,7 +267,7 @@ void a_Misc_parse_content_type(const char *type, char **major, char **minor, } } -/* +/** * Compare two Content-Type strings. * Return 0 if they are equivalent, and 1 otherwise. */ @@ -301,13 +301,13 @@ int a_Misc_content_type_cmp(const char *ct1, const char *ct2) return ret; } -/* +/** * Check the server-supplied 'Content-Type' against our detected type. * (some servers seem to default to "text/plain"). * - * Return value: - * 0, if they match - * -1, if a mismatch is detected + * @return + * - 0, if they match + * - -1, if a mismatch is detected * * There are many MIME types Dillo doesn't know, they're handled * as "application/octet-stream" (as the SPEC says). @@ -354,7 +354,7 @@ int a_Misc_content_type_check(const char *EntryType, const char *DetectedType) return st; } -/* +/** * Parse a geometry string. */ int a_Misc_parse_geometry(char *str, int *x, int *y, int *w, int *h) @@ -384,8 +384,8 @@ int a_Misc_parse_geometry(char *str, int *x, int *y, int *w, int *h) return ret; } -/* - * Parse dillorc's search_url string ("[