Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3424c27a
Commit
3424c27a
authored
Nov 05, 2016
by
Paul Eggert
Browse files
Prefer comments /* like this */ in C code
parent
de75a115
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/xwidget.c
src/xwidget.c
+7
-7
No files found.
src/xwidget.c
View file @
3424c27a
...
...
@@ -326,7 +326,7 @@ webkit_js_to_lisp (JSContextRef context, JSValueRef value)
int
n
=
JSPropertyNameArrayGetCount
(
properties
);
Lisp_Object
obj
;
/
/
TODO: can we use a regular list here?
/
*
TODO: can we use a regular list here?
*/
struct
Lisp_Vector
*
p
=
allocate_vector
(
n
);
for
(
int
i
=
0
;
i
<
n
;
++
i
)
...
...
@@ -386,9 +386,9 @@ webkit_javascript_finished_cb (GObject *webview,
Lisp_Object
lisp_value
=
webkit_js_to_lisp
(
context
,
value
);
webkit_javascript_result_unref
(
js_result
);
/
/
Register an xwidget event here, which then runs the callback.
//
This ensures that the callback runs in sync with the Emacs
//
event loop.
/
*
Register an xwidget event here, which then runs the callback.
This ensures that the callback runs in sync with the Emacs
event loop.
*/
store_xwidget_js_callback_event
(
xw
,
(
Lisp_Object
)
lisp_callback
,
lisp_value
);
}
...
...
@@ -717,9 +717,9 @@ argument procedure FUN.*/)
void
*
callback
=
(
FUNCTIONP
(
fun
))
?
&
webkit_javascript_finished_cb
:
NULL
;
/
/
JavaScript execution happens asynchronously. If an elisp
//
callback function is provided we pass it to the C callback
//
procedure that retrieves the return value.
/
*
JavaScript execution happens asynchronously. If an elisp
callback function is provided we pass it to the C callback
procedure that retrieves the return value.
*/
webkit_web_view_run_javascript
(
WEBKIT_WEB_VIEW
(
xw
->
widget_osr
),
SSDATA
(
script
),
NULL
,
/* cancelable */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment