The newer Ubuntu since 20.04 do not have the `python` binary.
There one explicitly needs to choose between `python2` or `python3`.
See also:
https://askubuntu.com/q/1296790/141958
This also introduces a breaking change as it is now necessary to use the `NAMESPACE_MAP` parameter for the CMake macro, instead of the `NAMESPACE_IDX`.
Up to now, complex extension objects initialized in the nodeset were not correctly set, especially if a data type from an dependent nodeset was used.
This commit drops the 'ua_' prefix and changes the public includes
to the form `#include <open62541/server.h>` instead of the old
`#include <ua_server.h>`
If there's a type definition in the .bsd file, but there is no corresponding
entry in the .csv, then the old code silently set the type id to NODEID_NULL.
This will then cause the server to fail on a later stage. To avoid this,
the datatype generator should check this immediately and inform the user.
Only the inserted dataTypes in list whitelistFuncAttrWarnUnusedResult will be generated with the define UA_INTERNAL_FUNC_ATTR_WARN_UNUSED_RESULT in front of the function declaration.
* Escape quotes in (Expanded)NodeIds
(but only if they are not already escaped). Node ID strings are allowed
to contain quotation marks (encoded as " in XML), but they mess up
the generated C strings.
* Strip non-alnum chars from C identifiers
The names of dataTypeNodes may contain unsafe characters, which leads to
invalid C code if they end up in the generated code
* Use C-safe type names for code generation
OPC-UA type names may contain special characters, such as quotes, dots,
spaces etc. They should not end up in the generated code.
* Fix quote-escaping in makeCLiteral and splitStringLiterals
* Re-use makeCLiteral from ..._datatypes
* Separate makeCLiteral and makeCIdentifier
* be more compliant
* Generates the correct dataType for nodes with an opaque dataType
* don't generate dataType for opaque dataType
* fix UA_TYPES_COUNT
* force valueRank = -1 for scalar VariableNode
* new implementation
* remove iter_opaque_types
* force rebuild
If that's not the case, the error during compile time will be similar to
`error: named bit-field 'static_assertion_failed_enum_must_be_32bit' has zero width`