This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[Bug Report] C header uses C++ keywords as variable names

In nRF51 SDK 7.1.0, there is a c header file using c++ keywords operator. Here is a snippet of components/ble/ble_racp/ble_racp.h using the keywords.

/**@brief Record Access Control Point value structure. */
typedef struct
{
    uint8_t   opcode;                               /**< Op Code. */
    uint8_t   operator;                             /**< Operator. */ <-- HERE
    uint8_t   operand_len;                          /**< Length of the operand. */
    uint8_t * p_operand;                            /**< Pointer to the operand. */
} ble_racp_value_t;
Related