[gobject-introspection/wip/transformer] [girparser] Allow static methods on records, union, boxed
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] [girparser] Allow static methods on records, union, boxed
- Date: Wed, 28 Jul 2010 23:00:15 +0000 (UTC)
commit cdf9a42dd66b92829f4203de2c3ed26a799142ad
Author: Colin Walters <walters verbum org>
Date: Wed Jul 28 18:29:43 2010 -0400
[girparser] Allow static methods on records, union, boxed
This corresponds with the change to the scanner.
girepository/girparser.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 5422b04..d725602 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -787,15 +787,14 @@ start_function (GMarkupParseContext *context,
strcmp (element_name, "callback") == 0);
break;
case STATE_CLASS:
- found = strcmp (element_name, "function") == 0;
- /* fallthrough */
case STATE_BOXED:
case STATE_STRUCT:
case STATE_UNION:
- found = (found || strcmp (element_name, "constructor") == 0);
+ found = strcmp (element_name, "constructor") == 0;
/* fallthrough */
case STATE_INTERFACE:
found = (found ||
+ strcmp (element_name, "function") == 0 ||
strcmp (element_name, "method") == 0 ||
strcmp (element_name, "callback") == 0);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]