Explorar o código

microhttpd2.h: improved comment

Evgeny Grin (Karlson2k) hai 1 ano
pai
achega
ef28e741da
Modificáronse 2 ficheiros con 12 adicións e 12 borrados
  1. 6 6
      src/include/microhttpd2.h
  2. 6 6
      src/include/microhttpd2_main.h.in

+ 6 - 6
src/include/microhttpd2.h

@@ -9011,14 +9011,14 @@ MHD_FN_PAR_NONNULL_ (2) MHD_FN_PAR_OUT_ (2);
 #ifndef MHD_NO_STATIC_INLINE
 #ifndef MHD_NO_STATIC_INLINE
 
 
 /*
 /*
- * A helper below can be used in a simple check to prevent use of downgraded
+ * A helper below can be used in a simple check preventing use of downgraded
  * library version.
  * library version.
- * New library version may introduce new functionality. If application uses
- * some new functionality, that is not available on earlier version, and the
- * library version is downgraded it may fail at run-time.
- * To prevent run-time failures, application may use a check list this:
+ * As new library version may introduce new functionality, and the application
+ * may detect some functionality available at application build-time, use of
+ * previous versions may lead to run-time failures.
+ * To prevent run-time failures, application may use a check like:
 
 
- if (MHD_lib_get_info_ver_num() < ((uint_fast32_t) MHD_VERSION)
+ if (MHD_lib_get_info_ver_num() < ((uint_fast32_t) MHD_VERSION))
    handle_init_failure();
    handle_init_failure();
 
 
  */
  */

+ 6 - 6
src/include/microhttpd2_main.h.in

@@ -4389,14 +4389,14 @@ MHD_FN_PAR_NONNULL_ (2) MHD_FN_PAR_OUT_ (2);
 #ifndef MHD_NO_STATIC_INLINE
 #ifndef MHD_NO_STATIC_INLINE
 
 
 /*
 /*
- * A helper below can be used in a simple check to prevent use of downgraded
+ * A helper below can be used in a simple check preventing use of downgraded
  * library version.
  * library version.
- * New library version may introduce new functionality. If application uses
- * some new functionality, that is not available on earlier version, and the
- * library version is downgraded it may fail at run-time.
- * To prevent run-time failures, application may use a check list this:
+ * As new library version may introduce new functionality, and the application
+ * may detect some functionality available at application build-time, use of
+ * previous versions may lead to run-time failures.
+ * To prevent run-time failures, application may use a check like:
 
 
- if (MHD_lib_get_info_ver_num() < ((uint_fast32_t) MHD_VERSION)
+ if (MHD_lib_get_info_ver_num() < ((uint_fast32_t) MHD_VERSION))
    handle_init_failure();
    handle_init_failure();
 
 
  */
  */