summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dwb.c1
-rw-r--r--src/scripts.c16
2 files changed, 10 insertions, 7 deletions
diff --git a/src/dwb.c b/src/dwb.c
index bc19f642..4d20b9d2 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -4094,7 +4094,6 @@ main(int argc, char *argv[]) {
dwb.misc.profile = "default";
dwb.misc.prog_path = argv[0];
dwb.gui.wid = 0;
-
gint ret = application_run(argc, argv);
return ret;
}/*}}}*/
diff --git a/src/scripts.c b/src/scripts.c
index b7a50e43..71c1d4ce 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -471,7 +471,8 @@ wv_set_title(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t ar
/*}}}*/
-
+/* SOUP_MESSAGE {{{*/
+/* soup_uri_to_js_object {{{*/
JSObjectRef
soup_uri_to_js_object(JSContextRef ctx, SoupURI *uri, JSValueRef *exception) {
JSObjectRef o = JSObjectMake(ctx, NULL, NULL);
@@ -484,7 +485,9 @@ soup_uri_to_js_object(JSContextRef ctx, SoupURI *uri, JSValueRef *exception) {
js_set_object_property(ctx, o, "query", uri->query, exception);
js_set_object_property(ctx, o, "fragment", uri->fragment, exception);
return o;
-}
+}/*}}}*/
+
+/* message_get_uri {{{*/
static JSValueRef
message_get_uri(JSContextRef ctx, JSObjectRef object, JSStringRef js_name, JSValueRef* exception) {
SoupMessage *msg = JSObjectGetPrivate(object);
@@ -494,7 +497,9 @@ message_get_uri(JSContextRef ctx, JSObjectRef object, JSStringRef js_name, JSVal
if (uri == NULL)
return JSValueMakeNull(ctx);
return soup_uri_to_js_object(ctx, uri, exception);
-}
+}/*}}}*/
+
+/* message_get_first_party {{{*/
static JSValueRef
message_get_first_party(JSContextRef ctx, JSObjectRef object, JSStringRef js_name, JSValueRef* exception) {
SoupMessage *msg = JSObjectGetPrivate(object);
@@ -504,8 +509,8 @@ message_get_first_party(JSContextRef ctx, JSObjectRef object, JSStringRef js_nam
if (uri == NULL)
return JSValueMakeNull(ctx);
return soup_uri_to_js_object(ctx, uri, exception);
-}
-
+}/*}}}*/
+/*}}}*/
/* FRAMES {{{*/
/* frame_get_domain {{{*/
@@ -1949,7 +1954,6 @@ scripts_unbind(JSObjectRef obj) {
if (obj != NULL) {
JSValueUnprotect(m_global_context, obj);
}
-
}
/* scripts_end {{{*/