aboutsummaryrefslogtreecommitdiffstats
path: root/src/xwidget.c
diff options
context:
space:
mode:
authorPaul Eggert2016-11-05 20:44:56 -0700
committerPaul Eggert2016-11-05 20:45:17 -0700
commit3424c27abb7c8ea64c32eaf54cf53fc58323e5ce (patch)
treed791b4470d7736d7c140aa71d3ff2845bb08f0c0 /src/xwidget.c
parentde75a1154e9dad334ff1359d7f606c66b2fd2233 (diff)
downloademacs-3424c27abb7c8ea64c32eaf54cf53fc58323e5ce.tar.gz
emacs-3424c27abb7c8ea64c32eaf54cf53fc58323e5ce.zip
Prefer comments /* like this */ in C code
Diffstat (limited to 'src/xwidget.c')
-rw-r--r--src/xwidget.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index e97d963e01b..d1f9540e11f 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -326,7 +326,7 @@ webkit_js_to_lisp (JSContextRef context, JSValueRef value)
326 int n = JSPropertyNameArrayGetCount (properties); 326 int n = JSPropertyNameArrayGetCount (properties);
327 Lisp_Object obj; 327 Lisp_Object obj;
328 328
329 // TODO: can we use a regular list here? 329 /* TODO: can we use a regular list here? */
330 struct Lisp_Vector *p = allocate_vector (n); 330 struct Lisp_Vector *p = allocate_vector (n);
331 331
332 for (int i = 0; i < n; ++i) 332 for (int i = 0; i < n; ++i)
@@ -386,9 +386,9 @@ webkit_javascript_finished_cb (GObject *webview,
386 Lisp_Object lisp_value = webkit_js_to_lisp (context, value); 386 Lisp_Object lisp_value = webkit_js_to_lisp (context, value);
387 webkit_javascript_result_unref (js_result); 387 webkit_javascript_result_unref (js_result);
388 388
389 // Register an xwidget event here, which then runs the callback. 389 /* Register an xwidget event here, which then runs the callback.
390 // This ensures that the callback runs in sync with the Emacs 390 This ensures that the callback runs in sync with the Emacs
391 // event loop. 391 event loop. */
392 store_xwidget_js_callback_event (xw, (Lisp_Object)lisp_callback, 392 store_xwidget_js_callback_event (xw, (Lisp_Object)lisp_callback,
393 lisp_value); 393 lisp_value);
394} 394}
@@ -717,9 +717,9 @@ argument procedure FUN.*/)
717 void *callback = (FUNCTIONP (fun)) ? 717 void *callback = (FUNCTIONP (fun)) ?
718 &webkit_javascript_finished_cb : NULL; 718 &webkit_javascript_finished_cb : NULL;
719 719
720 // JavaScript execution happens asynchronously. If an elisp 720 /* JavaScript execution happens asynchronously. If an elisp
721 // callback function is provided we pass it to the C callback 721 callback function is provided we pass it to the C callback
722 // procedure that retrieves the return value. 722 procedure that retrieves the return value. */
723 webkit_web_view_run_javascript (WEBKIT_WEB_VIEW (xw->widget_osr), 723 webkit_web_view_run_javascript (WEBKIT_WEB_VIEW (xw->widget_osr),
724 SSDATA (script), 724 SSDATA (script),
725 NULL, /* cancelable */ 725 NULL, /* cancelable */