<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17624">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">csn1.h: Fix trailing whitespace<br><br>Change-Id: If17d36378fabeb7d22a513b93b0ecfde899df520<br>---<br>M src/csn1.h<br>1 file changed, 34 insertions(+), 34 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/24/17624/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/csn1.h b/src/csn1.h</span><br><span>index 0421b39..50cd9ef 100644</span><br><span>--- a/src/csn1.h</span><br><span>+++ b/src/csn1.h</span><br><span>@@ -285,7 +285,7 @@</span><br><span>  * M_NEXT_EXIST_LH(Par1, Par2, Par3)</span><br><span>  * similar to the M_NEXT_EXIST except that instead of bit 0/1 which is fetched</span><br><span>  * from the message in order to find out whether the next element/elements are</span><br><span style="color: hsl(0, 100%, 40%);">- * present in the message, the logical operation XOR with the background </span><br><span style="color: hsl(120, 100%, 40%);">+ * present in the message, the logical operation XOR with the background</span><br><span>  * pattern 0x2B is performed on the read bit before the decision is made.</span><br><span>  *****************************************************************************/</span><br><span> #define M_NEXT_EXIST_LH(_STRUCT, _MEMBER, _NoOfExisting)\</span><br><span>@@ -294,9 +294,9 @@</span><br><span> /******************************************************************************</span><br><span>  * M_NEXT_EXIST_OR_NULL(Par1, Par2, Par3)</span><br><span>  * Similar to the M_NEXT_EXIST except that not only bit 0 or 1 but also the end</span><br><span style="color: hsl(0, 100%, 40%);">- * of the message may be encountered when looking for the next element in the </span><br><span style="color: hsl(120, 100%, 40%);">+ * of the message may be encountered when looking for the next element in the</span><br><span>  * message.</span><br><span style="color: hsl(0, 100%, 40%);">- * Covers the case {null | 0 | 1 < IE >} </span><br><span style="color: hsl(120, 100%, 40%);">+ * Covers the case {null | 0 | 1 < IE >}</span><br><span>  *****************************************************************************/</span><br><span> #define M_NEXT_EXIST_OR_NULL(_STRUCT, _MEMBER, _NoOfExisting)\</span><br><span>         {CSN_NEXT_EXIST, _NoOfExisting, {0}, offsetof(_STRUCT, _MEMBER), TRUE, #_MEMBER, 0, NULL}</span><br><span>@@ -306,7 +306,7 @@</span><br><span>  * Similar to the M_NEXT_EXIST_LH except that not only bit 0 or 1 but also the</span><br><span>  * end of the message may be encountered when looking for the next element in</span><br><span>  * the message.</span><br><span style="color: hsl(0, 100%, 40%);">- * Covers the case {null | L | H < IE >} </span><br><span style="color: hsl(120, 100%, 40%);">+ * Covers the case {null | L | H < IE >}</span><br><span>  *****************************************************************************/</span><br><span> #define M_NEXT_EXIST_OR_NULL_LH(_STRUCT, _MEMBER, _NoOfExisting)\</span><br><span>         {CSN_NEXT_EXIST_LH, _NoOfExisting, {(void*)1}, offsetof(_STRUCT, _MEMBER), TRUE, #_MEMBER, 0, NULL}</span><br><span>@@ -334,8 +334,8 @@</span><br><span> /******************************************************************************</span><br><span>  * M_UINT(Par1, Par2, Par3)</span><br><span>  * This macro has the same functionality as M_UINT except that  in addition the</span><br><span style="color: hsl(0, 100%, 40%);">- * logical "exclusive or" operation with the background value "0x2B" is </span><br><span style="color: hsl(0, 100%, 40%);">- * performed before the final value of the integer number is delivered from the </span><br><span style="color: hsl(120, 100%, 40%);">+ * logical "exclusive or" operation with the background value "0x2B" is</span><br><span style="color: hsl(120, 100%, 40%);">+ * performed before the final value of the integer number is delivered from the</span><br><span>  * received CSN.1 message</span><br><span>  *****************************************************************************/</span><br><span> #define M_UINT_LH(_STRUCT, _MEMBER, _BITS)\</span><br><span>@@ -406,16 +406,16 @@</span><br><span> </span><br><span> /******************************************************************************</span><br><span>  * M_REC_ARRAY(Par1, Par2, Par3, Par4)</span><br><span style="color: hsl(0, 100%, 40%);">- * similar to the M_VAR_ARRAY. The difference is that the size of the array is </span><br><span style="color: hsl(120, 100%, 40%);">+ * similar to the M_VAR_ARRAY. The difference is that the size of the array is</span><br><span>  * not known in advance and it has to be calculated during unpacking. Its value</span><br><span style="color: hsl(0, 100%, 40%);">- * is stored in a variable which belongs to the same structure as the array. </span><br><span style="color: hsl(0, 100%, 40%);">- * A zero element terminates the array. The CSN.1 syntax describes it </span><br><span style="color: hsl(120, 100%, 40%);">+ * is stored in a variable which belongs to the same structure as the array.</span><br><span style="color: hsl(120, 100%, 40%);">+ * A zero element terminates the array. The CSN.1 syntax describes it</span><br><span>  * recursively as:</span><br><span style="color: hsl(0, 100%, 40%);">- * <array> ::={1 <element> <array>| 0} </span><br><span style="color: hsl(120, 100%, 40%);">+ * <array> ::={1 <element> <array>| 0}</span><br><span>  *</span><br><span>  *      Par1: C structure name</span><br><span>  *      Par2: C structure element name</span><br><span style="color: hsl(0, 100%, 40%);">- *      Par3: name of the structure member where the calculated the size of the </span><br><span style="color: hsl(120, 100%, 40%);">+ *      Par3: name of the structure member where the calculated the size of the</span><br><span>  *            array will be stored</span><br><span>  *      Par4: length of each element in bits</span><br><span>  *****************************************************************************/</span><br><span>@@ -476,8 +476,8 @@</span><br><span>  * M_UNION(Par1, Par2)</span><br><span>  * Informs the CSN.1 library that a union follows and how many possible choices</span><br><span>  * there are in the union. The actual value of the choice, which points out the</span><br><span style="color: hsl(0, 100%, 40%);">- * chosen element of the union is stored in the uint8 variable and is usually </span><br><span style="color: hsl(0, 100%, 40%);">- * called UnionType. The elements of the union have to be listed directly after </span><br><span style="color: hsl(120, 100%, 40%);">+ * chosen element of the union is stored in the uint8 variable and is usually</span><br><span style="color: hsl(120, 100%, 40%);">+ * called UnionType. The elements of the union have to be listed directly after</span><br><span>  * the M_UNION statement.</span><br><span>  *      Par1: C structure name</span><br><span>  *      Par2: number of possible choice in the union</span><br><span>@@ -494,12 +494,12 @@</span><br><span> </span><br><span> /******************************************************************************</span><br><span>  * M_CHOICE(Par1, Par2, Par3, Par4)</span><br><span style="color: hsl(0, 100%, 40%);">- * Similar to the M_UNION. In the M_UNION the selected element of all possible </span><br><span style="color: hsl(0, 100%, 40%);">- * choices in the union is referred as a sequential numbers,  i.e., the first </span><br><span style="color: hsl(0, 100%, 40%);">- * choice is addressed as choice 0 the second as choice 1, the third as choice </span><br><span style="color: hsl(120, 100%, 40%);">+ * Similar to the M_UNION. In the M_UNION the selected element of all possible</span><br><span style="color: hsl(120, 100%, 40%);">+ * choices in the union is referred as a sequential numbers,  i.e., the first</span><br><span style="color: hsl(120, 100%, 40%);">+ * choice is addressed as choice 0 the second as choice 1, the third as choice</span><br><span>  * 2 and so on, both in the encoded message and in the variable UnionType which</span><br><span style="color: hsl(0, 100%, 40%);">- * is the part of the message.  In the CSN_CHOICE case, this rule does not </span><br><span style="color: hsl(0, 100%, 40%);">- * apply. There is free but predefined mapping of the element of the union and </span><br><span style="color: hsl(120, 100%, 40%);">+ * is the part of the message.  In the CSN_CHOICE case, this rule does not</span><br><span style="color: hsl(120, 100%, 40%);">+ * apply. There is free but predefined mapping of the element of the union and</span><br><span>  * the value which addresses this element.</span><br><span>  * The value of the address is called a selector.</span><br><span>  * After unpacking, this value is then converted to the sequential number of the</span><br><span>@@ -507,14 +507,14 @@</span><br><span>  *      Par1: C structure name</span><br><span>  *      Par2: C structure element name</span><br><span>  *      Par3: address of an array of type CSN_ChoiceElement_t where all possible</span><br><span style="color: hsl(0, 100%, 40%);">- *            values of the selector are provided, together with the selector </span><br><span style="color: hsl(0, 100%, 40%);">- *            length expressed in bits and the address of  the CSN_DESCR type </span><br><span style="color: hsl(0, 100%, 40%);">- *            where the element is defined. For every element in the union </span><br><span style="color: hsl(0, 100%, 40%);">- *            there is one line in the Choice variable. These lines have to </span><br><span style="color: hsl(0, 100%, 40%);">- *            appear in the _CHOICE in the same order as the elements in the </span><br><span style="color: hsl(0, 100%, 40%);">- *            union. The element of the union selected in the message through </span><br><span style="color: hsl(0, 100%, 40%);">- *            the _CHOICE parameter is after unpacking translated to the </span><br><span style="color: hsl(0, 100%, 40%);">- *            corresponding sequential number of this element and stored in </span><br><span style="color: hsl(120, 100%, 40%);">+ *            values of the selector are provided, together with the selector</span><br><span style="color: hsl(120, 100%, 40%);">+ *            length expressed in bits and the address of  the CSN_DESCR type</span><br><span style="color: hsl(120, 100%, 40%);">+ *            where the element is defined. For every element in the union</span><br><span style="color: hsl(120, 100%, 40%);">+ *            there is one line in the Choice variable. These lines have to</span><br><span style="color: hsl(120, 100%, 40%);">+ *            appear in the _CHOICE in the same order as the elements in the</span><br><span style="color: hsl(120, 100%, 40%);">+ *            union. The element of the union selected in the message through</span><br><span style="color: hsl(120, 100%, 40%);">+ *            the _CHOICE parameter is after unpacking translated to the</span><br><span style="color: hsl(120, 100%, 40%);">+ *            corresponding sequential number of this element and stored in</span><br><span>  *            the variable pointed out by the _MEMBER</span><br><span>  *      Par4: number of possible choices in the union</span><br><span>  *****************************************************************************/</span><br><span>@@ -523,11 +523,11 @@</span><br><span> </span><br><span> /******************************************************************************</span><br><span>  * M_FIXED(Par1, Par2, Par3)</span><br><span style="color: hsl(0, 100%, 40%);">- * Defines a fixed value of type integer which should be fetched from or stored </span><br><span style="color: hsl(120, 100%, 40%);">+ * Defines a fixed value of type integer which should be fetched from or stored</span><br><span>  * in  the message</span><br><span>  *      Par1: C structure name</span><br><span>  *      Par2: gives the length of the fixed number in bits.</span><br><span style="color: hsl(0, 100%, 40%);">- *      Par3: the value of the number. If the expected value is not present in </span><br><span style="color: hsl(120, 100%, 40%);">+ *      Par3: the value of the number. If the expected value is not present in</span><br><span> *             the message the unpacking procedure is aborted</span><br><span>  *****************************************************************************/</span><br><span> #define M_FIXED(_STRUCT, _BITS, _BITVALUE)\</span><br><span>@@ -535,12 +535,12 @@</span><br><span> </span><br><span> /******************************************************************************</span><br><span>  * M_SERIALIZE(Par1, Par2, Par3)</span><br><span style="color: hsl(0, 100%, 40%);">- * Allows using a complete free format of data being encoded or decoded. </span><br><span style="color: hsl(120, 100%, 40%);">+ * Allows using a complete free format of data being encoded or decoded.</span><br><span>  * When the M_SERIALIZE is encounted during encoding or decoding of a message</span><br><span style="color: hsl(0, 100%, 40%);">- * the CSNstream program passes the control over to the specified function </span><br><span style="color: hsl(0, 100%, 40%);">- * together with all necessary parameters about the current position within </span><br><span style="color: hsl(0, 100%, 40%);">- * the message being unpacked or packed.  When transferring of "serialized" </span><br><span style="color: hsl(0, 100%, 40%);">- * data to or from the message is finished by the function the CSNstream gets </span><br><span style="color: hsl(120, 100%, 40%);">+ * the CSNstream program passes the control over to the specified function</span><br><span style="color: hsl(120, 100%, 40%);">+ * together with all necessary parameters about the current position within</span><br><span style="color: hsl(120, 100%, 40%);">+ * the message being unpacked or packed.  When transferring of "serialized"</span><br><span style="color: hsl(120, 100%, 40%);">+ * data to or from the message is finished by the function the CSNstream gets</span><br><span>  * back control over the data stream and continues to work with the message.</span><br><span>  *****************************************************************************/</span><br><span> #define M_SERIALIZE(_STRUCT, _MEMBER, _LENGTH_LEN, _SERIALIZEFCN)\</span><br><span>@@ -551,7 +551,7 @@</span><br><span> </span><br><span> /******************************************************************************</span><br><span>  * M_BITMAP(Par1, Par2, Par3)</span><br><span style="color: hsl(0, 100%, 40%);">- * Defines a type which consists of a bitmap. The size of the bitmap in bits </span><br><span style="color: hsl(120, 100%, 40%);">+ * Defines a type which consists of a bitmap. The size of the bitmap in bits</span><br><span>  * is fixed and provided by the parameter Par3</span><br><span>  *      Par1: C structure name</span><br><span>  *      Par2: C structure element name</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17624">change 17624</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-pcu/+/17624"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If17d36378fabeb7d22a513b93b0ecfde899df520 </div>
<div style="display:none"> Gerrit-Change-Number: 17624 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>