diff options
author | Simon Ser <contact@emersion.fr> | 2018-05-25 17:24:41 -0400 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2018-06-07 11:52:06 +0300 |
commit | 8b2ba84bd0c152d3e6de8bd22b413a1ca6eb6630 (patch) | |
tree | 7446008700e43ea723677491048a57f4ae3ea81f | |
parent | a060822399b8f38ca665b502c6fb4c204029c5e8 (diff) | |
download | wayland-8b2ba84bd0c152d3e6de8bd22b413a1ca6eb6630.tar.gz |
scanner: allow referencing foreign enums
It's already possible to reference foreign interfaces, so it
should also be possible to reference foreign enums.
Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Silvan Jegen <s.jegen@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r-- | src/scanner.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/scanner.c b/src/scanner.c index 1737911..205c28a 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -894,14 +894,9 @@ verify_arguments(struct parse_context *ctx, e = find_enumeration(ctx->protocol, interface, a->enumeration_name); - if (e == NULL) - fail(&ctx->loc, - "could not find enumeration %s", - a->enumeration_name); - switch (a->type) { case INT: - if (e->bitfield) + if (e && e->bitfield) fail(&ctx->loc, "bitfield-style enum must only be referenced by uint"); break; |