diff options
| author | Manuel Stoeckl <code@mstoeckl.com> | 2019-04-13 17:30:46 -0400 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2019-05-02 17:42:59 +0000 |
| commit | 6ce4bbb3dd86f8526331aa42916a120e39069bf1 (patch) | |
| tree | c0bb622c9189c92ca624db49469cfc060070eae6 /tests | |
| parent | protocol: allow to send a zero output refresh rate (diff) | |
| download | wayland-6ce4bbb3dd86f8526331aa42916a120e39069bf1.tar wayland-6ce4bbb3dd86f8526331aa42916a120e39069bf1.tar.gz wayland-6ce4bbb3dd86f8526331aa42916a120e39069bf1.tar.bz2 wayland-6ce4bbb3dd86f8526331aa42916a120e39069bf1.tar.lz wayland-6ce4bbb3dd86f8526331aa42916a120e39069bf1.tar.xz wayland-6ce4bbb3dd86f8526331aa42916a120e39069bf1.tar.zst wayland-6ce4bbb3dd86f8526331aa42916a120e39069bf1.zip | |
scanner: error when element names will not compile
This change checks that the "name" fields of the various structures in
a Wayland protocol XML file will be converted into C identifiers that
can be successfully compiled.
For names which will be inserted as the prefix of an identifier
enforce a match with [_a-zA-Z][_0-9a-zA-Z]* . For types only inserted
as the suffix of an identifier (enum, entry), enforce a format of
[_0-9a-zA-Z]+ .
Unicode characters (and escape sequences like \u0394) are not allowed,
because most older and some newer C compilers do not support them by
default.
For sake of simplicity, this patch does not check for collisions
with reserved words or standard library names.
Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
