scanner: prepend protocol name to types symbol
authorMarty E. Plummer <hanetzer@startmail.com>
Sat, 11 May 2019 14:53:01 +0000 (09:53 -0500)
committerMarty E. Plummer <hanetzer@startmail.com>
Wed, 11 Sep 2019 18:27:03 +0000 (13:27 -0500)
commit9f004d8b0fa37787fe96662cf5ff414e8d6ef5e4
tree67a90352370263a6e5ed131dee186fac0f6972d1
parenta89a5349af690f87c24abcaafc524f2cfd6e9d24
scanner: prepend protocol name to types symbol

When doing unity builds via meson (example project:
https://github.com/swaywm/sway) multiple source files are glued together
via #include directives. Having every wayland-scanner generated source
file have an identifier named '*types[]' will lead to errors in these
unity builds if two or more of these are joined.

Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
src/scanner.c
tests/data/example-code.c
tests/data/small-code-core.c
tests/data/small-code.c
tests/data/small-private-code.c