[pygobject/invoke-rewrite] [gi-invoke-ng] remove remaining bits of the invoke stage state machine
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/invoke-rewrite] [gi-invoke-ng] remove remaining bits of the invoke stage state machine
- Date: Mon, 23 May 2011 21:07:16 +0000 (UTC)
commit 990c60805c8ef718eb29e2e1b24f057552c6159e
Author: John (J5) Palmieri <johnp redhat com>
Date: Mon May 23 17:06:30 2011 -0400
[gi-invoke-ng] remove remaining bits of the invoke stage state machine
gi/pygi-invoke-ng.c | 7 +------
gi/pygi-invoke-state-struct.h | 14 --------------
2 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/gi/pygi-invoke-ng.c b/gi/pygi-invoke-ng.c
index da16755..c7c0b5f 100644
--- a/gi/pygi-invoke-ng.c
+++ b/gi/pygi-invoke-ng.c
@@ -315,7 +315,6 @@ _invoke_marshal_in_args (PyGIInvokeState *state, PyGICallableCache *cache)
return FALSE;
}
- state->stage = PYGI_INVOKE_STAGE_MARSHAL_IN_IDLE;
}
}
@@ -332,7 +331,7 @@ _invoke_marshal_out_args (PyGIInvokeState *state, PyGICallableCache *cache)
gboolean has_return = FALSE;
if (cache->return_cache) {
- state->stage = PYGI_INVOKE_STAGE_MARSHAL_RETURN_START;
+
if (cache->is_constructor) {
if (state->return_arg.v_pointer == NULL) {
PyErr_SetString (PyExc_TypeError, "constructor returned NULL");
@@ -352,7 +351,6 @@ _invoke_marshal_out_args (PyGIInvokeState *state, PyGICallableCache *cache)
return NULL;
}
- state->stage = PYGI_INVOKE_STAGE_MARSHAL_RETURN_DONE;
if (cache->return_cache->type_tag != GI_TYPE_TAG_VOID) {
total_out_args++;
@@ -366,7 +364,6 @@ _invoke_marshal_out_args (PyGIInvokeState *state, PyGICallableCache *cache)
py_out = py_return;
} else if (total_out_args == 1) {
/* if we get here there is one out arg an no return */
- state->stage = PYGI_INVOKE_STAGE_MARSHAL_OUT_START;
PyGIArgCache *arg_cache = (PyGIArgCache *)cache->out_args->data;
py_out = arg_cache->out_marshaller (state,
cache,
@@ -379,7 +376,6 @@ _invoke_marshal_out_args (PyGIInvokeState *state, PyGICallableCache *cache)
return NULL;
}
- state->stage = PYGI_INVOKE_STAGE_MARSHAL_OUT_IDLE;
} else {
int py_arg_index = 0;
GSList *cache_item = cache->out_args;
@@ -392,7 +388,6 @@ _invoke_marshal_out_args (PyGIInvokeState *state, PyGICallableCache *cache)
for(; py_arg_index < total_out_args; py_arg_index++) {
PyGIArgCache *arg_cache = (PyGIArgCache *)cache_item->data;
- state->stage = PYGI_INVOKE_STAGE_MARSHAL_OUT_START;
PyObject *py_obj = arg_cache->out_marshaller (state,
cache,
arg_cache,
diff --git a/gi/pygi-invoke-state-struct.h b/gi/pygi-invoke-state-struct.h
index 40c796c..924e511 100644
--- a/gi/pygi-invoke-state-struct.h
+++ b/gi/pygi-invoke-state-struct.h
@@ -7,18 +7,6 @@
G_BEGIN_DECLS
-typedef enum {
- PYGI_INVOKE_STAGE_MARSHAL_IN_START,
- PYGI_INVOKE_STAGE_MARSHAL_IN_IDLE,
- PYGI_INVOKE_STAGE_NATIVE_INVOKE_FAILED,
- PYGI_INVOKE_STAGE_NATIVE_INVOKE_DONE,
- PYGI_INVOKE_STAGE_MARSHAL_RETURN_START,
- PYGI_INVOKE_STAGE_MARSHAL_RETURN_DONE,
- PYGI_INVOKE_STAGE_MARSHAL_OUT_START,
- PYGI_INVOKE_STAGE_MARSHAL_OUT_IDLE,
- PYGI_INVOKE_STAGE_DONE
-} PyGIInvokeStage;
-
typedef struct _PyGIInvokeState
{
PyObject *py_in_args;
@@ -26,8 +14,6 @@ typedef struct _PyGIInvokeState
gssize n_py_in_args;
gssize current_arg;
- PyGIInvokeStage stage;
-
GType implementor_gtype;
GIArgument **args;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]