[pygobject/gsoc2009: 47/160] Rename pyg_type_get_size and make pygi_gi_type_tag_get_py_bounds static
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject/gsoc2009: 47/160] Rename pyg_type_get_size and make pygi_gi_type_tag_get_py_bounds static
- Date: Fri, 14 Aug 2009 21:26:02 +0000 (UTC)
commit 938a74e2c2de838eca4ed5a93129c1e6b7963b02
Author: Simon van der Linden <svdlinden src gnome org>
Date: Mon Jul 20 18:26:46 2009 +0200
Rename pyg_type_get_size and make pygi_gi_type_tag_get_py_bounds static
Rename pyg_type_get_size to pygi_gi_type_tag_get_size.
gi/pygargument.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gi/pygargument.c b/gi/pygargument.c
index af3ea41..f4d36b3 100644
--- a/gi/pygargument.c
+++ b/gi/pygargument.c
@@ -83,6 +83,7 @@ pygi_gi_registered_type_info_check_py_object(GIRegisteredTypeInfo *info,
return retval;
}
+static
void
pygi_gi_type_tag_get_py_bounds(GITypeTag type_tag, PyObject **lower,
PyObject **upper)
@@ -394,7 +395,7 @@ check_number_clean:
static
gsize
-pyg_type_get_size(GITypeTag type_tag)
+pygi_gi_type_tag_get_size(GITypeTag type_tag)
{
gsize size;
@@ -465,7 +466,7 @@ pyg_array_from_pyobject(PyObject *object, GITypeInfo *type_info, gsize *length)
item_type_info = g_type_info_get_param_type(type_info, 0);
type_tag = g_type_info_get_tag(item_type_info);
- item_size = pyg_type_get_size(type_tag);
+ item_size = pygi_gi_type_tag_get_size(type_tag);
*length = PyTuple_Size(object);
items = g_try_malloc(*length * (item_size + (is_zero_terminated ? 1 : 0)));
@@ -779,7 +780,7 @@ pyg_array_to_pyobject(gpointer items, gsize length, GITypeInfo *type_info)
item_type_info = g_type_info_get_param_type (type_info, 0);
type_tag = g_type_info_get_tag(item_type_info);
- item_size = pyg_type_get_size(type_tag);
+ item_size = pygi_gi_type_tag_get_size(type_tag);
current_item = items;
for(i = 0; i < length; i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]