Renamed macro mhd_cntnr_ptr -> macro mhd_CNTNR_PTR

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-12-16 17:55:23 +01:00
parent 0150f653bd
commit a55225567c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -20,7 +20,7 @@
/**
* @file src/mhd2/mhd_cntnr_ptr.h
* @brief The definition of mhd_cntnr_ptr() macro.
* @brief The definition of mhd_CNTNR_PTR() macro.
* @author Karlson2k (Evgeny Grin)
*/
@@ -45,7 +45,7 @@
* @param membr_name the name of the member pointed by @a membr_ptr
* @return the pointer to the outer structure
*/
#define mhd_cntnr_ptr(membr_ptr,cntnr_type,membr_name) \
#define mhd_CNTNR_PTR(membr_ptr,cntnr_type,membr_name) \
((cntnr_type*) (void*) \
(((char*) (0 ? \
(&(((cntnr_type*) NULL)->membr_name)) : \
+1 -1
View File
@@ -420,7 +420,7 @@ mhd_upgrade_prep_for_action (struct MHD_Request *restrict req,
bool is_upload_act)
{
struct MHD_Connection *const c =
mhd_cntnr_ptr (req, struct MHD_Connection, rq);
mhd_CNTNR_PTR (req, struct MHD_Connection, rq);
mhd_assert (mhd_HTTP_STAGE_HEADERS_PROCESSED <= c->stage);
mhd_assert (mhd_HTTP_STAGE_FULL_REQ_RECEIVED >= c->stage);