aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cpp-compile-test.cpp
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-11-10 09:53:08 +1000
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-11-17 14:36:21 +0200
commitf66e2d53dd8920451a4d9544b2fd2568a6a75b9b (patch)
tree4feaf18a88235a2d9584405e9c8a34af7d6fc7f5 /tests/cpp-compile-test.cpp
parentprotocol: add the new bitfields to the dtd (diff)
downloadwayland-f66e2d53dd8920451a4d9544b2fd2568a6a75b9b.tar
wayland-f66e2d53dd8920451a4d9544b2fd2568a6a75b9b.tar.gz
wayland-f66e2d53dd8920451a4d9544b2fd2568a6a75b9b.tar.bz2
wayland-f66e2d53dd8920451a4d9544b2fd2568a6a75b9b.tar.lz
wayland-f66e2d53dd8920451a4d9544b2fd2568a6a75b9b.tar.xz
wayland-f66e2d53dd8920451a4d9544b2fd2568a6a75b9b.tar.zst
wayland-f66e2d53dd8920451a4d9544b2fd2568a6a75b9b.zip
Validate the protocol xml during scanning
Embed the wayland.dtd protocol data into the scanner binary so we can validate external protocol files without requiring makefile changes. Hat-tip to Pekka Paalanen for the embedding trick. The embedding trick doesn't work well if the to-be-embedded file is in a different location than the source file, so copy/link it during configure and then build it in from the local directory. The current expat parser is not a validating parser, moving scanner.c to another parser has the risk of breaking compatibility. This patch adds libxml2 as extra (optional) dependency, but that also requires parsing the input twice. If the protocol fails validation a warning is printed but no error is returned otherwise. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'tests/cpp-compile-test.cpp')
0 files changed, 0 insertions, 0 deletions