-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Review] Fix/cleanup unsafe c names (#2064)
* 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
- Loading branch information
Showing
3 changed files
with
65 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters