• Manuel Stoeckl's avatar
    scanner: error when element names will not compile · 6ce4bbb3
    Manuel Stoeckl authored
    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: 's avatarManuel Stoeckl <code@mstoeckl.com>
    6ce4bbb3
Name
Last commit
Last update
cursor Loading commit data...
doc Loading commit data...
egl Loading commit data...
m4 Loading commit data...
protocol Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
publish-doc Loading commit data...
releasing.txt Loading commit data...
wayland-scanner.m4 Loading commit data...
wayland-scanner.mk Loading commit data...