[gobject-introspection] Use -1 not None for closure/destroy indices
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Use -1 not None for closure/destroy indices
- Date: Fri, 7 May 2010 16:09:21 +0000 (UTC)
commit 2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu May 6 18:02:22 2010 -0400
Use -1 not None for closure/destroy indices
Don't assign None to closure and destroy indices in case of
collision, they are supposed to be numeric.
https://bugzilla.gnome.org/show_bug.cgi?id=617978
giscanner/annotationparser.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index fa43378..99da0bf 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -550,12 +550,12 @@ class AnnotationApplier(object):
def _fixup_param_destroy(self, parent, param):
for p in parent.parameters:
if p is not param and p.destroy_index == param.destroy_index:
- p.destroy_index = None
+ p.destroy_index = -1
def _fixup_param_closure(self, parent, param):
for p in parent.parameters:
if p is not param and p.closure_index == param.closure_index:
- p.closure_index = None
+ p.closure_index = -1
def _parse_param_ret_common(self, parent, node, tag):
options = getattr(tag, 'options', {})
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]