From 15ea2b9b50ec7804b562784b732bce687b420817 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sat, 25 Nov 2006 23:25:52 +0200 Subject: [PATCH] Bug 846: Add two more comments about how SMJS calls functions. They should have been in commit 670ad939c3f90c732942c9deb216e15e63907fff. The corresponding commit fcebd6d111b011dd58a3d5eea0ea04d0b6843647 in the elinks-0.11 branch does include them. --- src/scripting/smjs/elinks_object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripting/smjs/elinks_object.c b/src/scripting/smjs/elinks_object.c index 92d920026..e017723b9 100644 --- a/src/scripting/smjs/elinks_object.c +++ b/src/scripting/smjs/elinks_object.c @@ -69,6 +69,7 @@ elinks_set_location(JSContext *ctx, JSObject *obj, jsval id, jsval *vp) return JS_TRUE; } +/* @elinks_funcs{"alert"} */ static JSBool elinks_alert(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { @@ -89,6 +90,7 @@ elinks_alert(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval return JS_TRUE; } +/* @elinks_funcs{"execute"} */ static JSBool elinks_execute(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) {