Displaying 9 results from an estimated 9 matches for "callobj".
2009 Jan 05
1
bug involving quote(); ghost in the machine
...#39;ve narrowed down a weird bug. It's like a ghost in the machine, in
that functions seem to remember things that they should not be able
to. In the example below, the result of the second (and subseqent)
calls depend on what was given in the first call.
foo <- function(given = NULL) {
callObj <- quote(callFunc())
if (!is.null(given))
callObj$given <- given
if (is.null(given))
callObj$default <- TRUE
callObj
}
foo()
# callFunc(default = TRUE)
foo(given = TRUE)
# callFunc(default = TRUE, given = TRUE)
Note, if the first call was something different,...
2015 Feb 23
2
Queue PJSIP, not all contacts rings
Hay guys, have question.
When I do regular dial I use $this->AGI->get_fullvariable('${PJSIP_DIAL_CONTACTS('.$callObj.')}',false,true);
to get all contacts of current endpoint and so I dial to all phones at once,
but if I exec QUEUE, I have just one phone rings, seems like it take first one as Dial app by default, is there way to fix this?
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...jsid) atom, ret);
}
diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c
index d46687f..824861b 100644
--- a/libswfdec/swfdec_script.c
+++ b/libswfdec/swfdec_script.c
@@ -1643,11 +1643,11 @@ swfdec_action_define_local (JSContext *c
{
const char *name;
- g_assert (cx->fp->callobj != NULL);
+ g_assert (cx->fp->scopeChain != NULL);
name = swfdec_js_to_string (cx, cx->fp->sp[-2]);
if (name == NULL)
return JS_FALSE;
- if (!JS_SetProperty (cx, cx->fp->callobj, name, &cx->fp->sp[-1]))
+ if (!JS_SetProperty (cx, cx->fp->scopeChain, n...
2007 Jan 31
0
Branch 'interpreter' - 3 commits - libswfdec/js libswfdec/swfdec_script.c
...const guint8 *data, guint len)
{
guint32 amount, value;
@@ -1414,6 +1443,54 @@ swfdec_action_target_path (JSContext *cx
return JS_TRUE;
}
+static JSBool
+swfdec_action_define_local (JSContext *cx, guint action, const guint8 *data, guint len)
+{
+ const char *name;
+
+ if (cx->fp->callobj == NULL) {
+ SWFDEC_ERROR ("FIXME: no local scope");
+ return JS_FALSE;
+ }
+ name = swfdec_js_to_string (cx, cx->fp->sp[-2]);
+ if (name == NULL)
+ return JS_FALSE;
+ if (!JS_SetProperty (cx, cx->fp->callobj, name, &cx->fp->sp[-1]))
+ return JS_FALSE...
2007 Jan 18
0
Branch 'interpreter' - 2 commits - libswfdec/js libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...also, some more functions are implemented (like WaitForFrame, it needs this)
diff --git a/libswfdec/js/jsinterp.c b/libswfdec/js/jsinterp.c
index 1a45a77..1d15966 100644
--- a/libswfdec/js/jsinterp.c
+++ b/libswfdec/js/jsinterp.c
@@ -832,6 +832,7 @@ have_fun:
frame.varobj = NULL;
frame.callobj = frame.argsobj = NULL;
frame.script = script;
+ frame.swf = swf;
frame.fun = fun;
frame.argc = argc;
frame.argv = sp - argc;
diff --git a/libswfdec/js/jsinterp.h b/libswfdec/js/jsinterp.h
index d68957d..b22166d 100644
--- a/libswfdec/js/jsinterp.h
+++ b/libswfdec/js/jsinterp...
2015 Feb 23
0
Queue PJSIP, not all contacts rings
Nick Awesome wrote:
> Hay guys, have question.
>
> When I do regular dial I use
> $this->AGI->get_fullvariable('${PJSIP_DIAL_CONTACTS('.$callObj.')}',false,true);
>
> to get all contacts of current endpoint and so I dial to all phones
> at once,
>
> but if I exec QUEUE, I have just one phone rings, seems like it take
> first one as Dial app by default, is there way to fix this?
There is no way to directly do this...
2007 Feb 22
0
3 commits - libswfdec/swfdec_js.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...n_do_unset_target (cx);
+ target = swfdec_js_eval (cx, NULL, (const char *) data);
if (!JSVAL_IS_OBJECT (target) || JSVAL_IS_NULL (target)) {
SWFDEC_WARNING ("target is not an object");
return JS_TRUE;
@@ -2601,7 +2628,7 @@ swfdec_script_execute (SwfdecScript *scr
frame.callobj = NULL;
frame.script = NULL;
- frame.varobj = frame.argsobj = NULL;
+ frame.argsobj = NULL;
frame.fun = swfdec_script_ensure_function (script, scriptable);
frame.swf = script;
frame.constant_pool = NULL;
@@ -2621,6 +2648,7 @@ swfdec_script_execute (SwfdecScript *scr
frame.objAtomMa...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...const guint8 *data, guint len)
{
guint32 amount, value;
@@ -1414,6 +1443,54 @@ swfdec_action_target_path (JSContext *cx
return JS_TRUE;
}
+static JSBool
+swfdec_action_define_local (JSContext *cx, guint action, const guint8 *data, guint len)
+{
+ const char *name;
+
+ if (cx->fp->callobj == NULL) {
+ SWFDEC_ERROR ("FIXME: no local scope");
+ return JS_FALSE;
+ }
+ name = swfdec_js_to_string (cx, cx->fp->sp[-2]);
+ if (name == NULL)
+ return JS_FALSE;
+ if (!JS_SetProperty (cx, cx->fp->callobj, name, &cx->fp->sp[-1]))
+ return JS_FALSE...
2007 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...oid *mark;
-
- g_return_val_if_fail (script != NULL, JSVAL_VOID);
- g_return_val_if_fail (SWFDEC_IS_SCRIPTABLE (scriptable), JSVAL_VOID);
-
- cx = scriptable->jscx;
- obj = swfdec_scriptable_get_object (scriptable);
- if (obj == NULL)
- return JSVAL_VOID;
- oldfp = cx->fp;
-
- frame.callobj = NULL;
- frame.script = NULL;
- frame.argsobj = NULL;
- frame.fun = swfdec_script_ensure_function (script, scriptable);
- frame.swf = script;
- frame.constant_pool = NULL;
- frame.thisp = obj;
- frame.argc = 0;
- frame.argv = NULL;
- frame.annotation = NULL;
- frame.sharpArray = NULL;
-...