From b82c9e4c69f39816de8791f4d3c9c4b74dae7239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bouteiller?= Date: Wed, 7 Jun 2023 18:58:45 -0400 Subject: [PATCH 1/2] Add that setting NULL as the data param for PMIX_BOOL types in PMIx_Info_load will set the info value to true. (cherry picked from commit 3d0a1ed1c1cfba54cfd05440be7dc0fe68375454) --- Chap_API_Struct.tex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Chap_API_Struct.tex b/Chap_API_Struct.tex index 874005d0..63ff9f7e 100644 --- a/Chap_API_Struct.tex +++ b/Chap_API_Struct.tex @@ -1309,7 +1309,13 @@ \subsubsection{Info structure support macros} %%%% \descr -Copy the provided data into the \refstruct{pmix_info_t}. Any data stored in the source parameters can be modified or free'd without affecting the copied data once the function has completed. +Copy the provided data into the \refstruct{pmix_info_t}. Any data stored in the source parameters can be modified or free'd without affecting the copied data once the function has completed. Passing \code{NULL} as the \code{data} parameter with a \refconst{PMIX_BOOL} \code{type} will set the associated info to \code{true}. This is a shorthand for the following where \code{NULL} replaces an explicit variable \code{true_value}: +\begin{codepar} + // A PMIX_BOOL with a NULL data is equivalent to an explicit true data + bool true_value = true; + PMIX_Info_load(&info1, PMIX_SESSION_INFO, &true_value, PMIX_BOOL); + PMIX_Info_load(&info2, PMIX_SESSION_INFO, NULL, PMIX_BOOL); +\end{codepar} %%%%%%%%%%% \littleheader{Copy data between info structures} From 80c6eb6d9c944fb60a7fa9ab115748d2df4c282c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bouteiller?= Date: Thu, 8 Jun 2023 17:44:04 -0400 Subject: [PATCH 2/2] Add a changelog item for info_load with NULL bool data=true (cherry picked from commit 4a5d852707ebe742e52e4eaf069e57b3cd58d69a) --- Chap_Revisions.tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Chap_Revisions.tex b/Chap_Revisions.tex index ee6cadc6..b3986a46 100644 --- a/Chap_Revisions.tex +++ b/Chap_Revisions.tex @@ -1462,8 +1462,9 @@ \section{Version 5.1: TBD} The v5.1 update includes the following changes from the v5.0 document: -%\begin{compactitemize} -%\end{compactitemize} +\begin{compactitemize} + \item Add that using \refapi{PMIx_Info_load} with a \code{NULL} \refconst{PMIX_BOOL} data sets the value to true +\end{compactitemize} \subsection{Added Functions (Provisional)}