changeset 622:6d99150a8f89

Some more slight Doxygenisation.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 17 Jan 2020 04:16:32 +0200
parents badca3de39ea
children 893b2deeb5be
files th_args.c th_config.h th_endian.h th_types.h th_util.h
diffstat 5 files changed, 17 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/th_args.c	Fri Jan 17 03:47:19 2020 +0200
+++ b/th_args.c	Fri Jan 17 04:16:32 2020 +0200
@@ -5,8 +5,6 @@
  *
  * Please read file 'COPYING' for information on license and distribution.
  */
-/// @file
-/// @brief Simple commandline argument processing functions
 #include "th_util.h"
 #include "th_args.h"
 #include "th_string.h"
@@ -330,12 +328,15 @@
 
 
 /**
- * Print help for commandline arguments/options
+ * Print neatly formatted help for specified array of commandline options.
+ * The function will attempt to find the best indentation and formatting of
+ * the output using a simple fitting algorithm. Option descriptions will be
+ * automatically split over several lines if necessary.
  * @param fh stdio file handle to output to
  * @param[in] opts options list array
- * @param[in] nopts number of elements in options list array
- * @param[in] flags flags (currently unused)
- * @param[in] width width of the terminal or desired width of the print out
+ * @param[in] nopts number of elements in the options list array @p opts
+ * @param[in] flags (currently unused)
+ * @param[in] width width of the output terminal or the desired maximum width of the printout
  */
 void th_args_help(FILE *fh, const th_optarg *opts,
     const int nopts, const int flags, const int width)
--- a/th_config.h	Fri Jan 17 03:47:19 2020 +0200
+++ b/th_config.h	Fri Jan 17 04:16:32 2020 +0200
@@ -5,6 +5,8 @@
  *
  * Please read file 'COPYING' for information on license and distribution.
  */
+/// @file
+/// @brief Configuration file handling functionality.
 #ifndef TH_CONFIG_H
 #define TH_CONFIG_H
 
--- a/th_endian.h	Fri Jan 17 03:47:19 2020 +0200
+++ b/th_endian.h	Fri Jan 17 04:16:32 2020 +0200
@@ -5,6 +5,8 @@
  *
  * Please read file 'COPYING' for information on license and distribution.
  */
+/// @file
+/// @brief Endianess handling functionality for data type conversions, etc.
 #ifndef TH_ENDIAN_H
 #define TH_ENDIAN_H
 
--- a/th_types.h	Fri Jan 17 03:47:19 2020 +0200
+++ b/th_types.h	Fri Jan 17 04:16:32 2020 +0200
@@ -4,10 +4,12 @@
  * (C) Copyright 2002-2020 Tecnic Software productions (TNSP)
  *
  * Please read file 'COPYING' for information on license and distribution.
- */
-/* If your code uses "config.h", you need to #include
+ *
+ * If your code uses "config.h", you need to #include
  * it before including this header.
  */
+/// @file
+/// @brief Various platform-specific type and macro definitions.
 #ifndef TH_TYPES_H
 #define TH_TYPES_H 1
 
--- a/th_util.h	Fri Jan 17 03:47:19 2020 +0200
+++ b/th_util.h	Fri Jan 17 04:16:32 2020 +0200
@@ -5,6 +5,8 @@
  *
  * Please read file 'COPYING' for information on license and distribution.
  */
+/// @file
+/// @brief Miscellaneous utility functions, memory allocation, error codes etc.
 #ifndef TH_UTIL_H
 #define TH_UTIL_H