diff options
| author | Eli Zaretskii | 2018-01-19 11:54:44 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-01-19 11:54:44 +0200 |
| commit | a41ad3df9ff4377a99439b4541535c522fe2f845 (patch) | |
| tree | c2f18ee40c9e15985cae03c3276f60bef5654886 /src | |
| parent | c28d4b6d8e1ad3d8c96329239a01af9d1dc048c5 (diff) | |
| download | emacs-a41ad3df9ff4377a99439b4541535c522fe2f845.tar.gz emacs-a41ad3df9ff4377a99439b4541535c522fe2f845.zip | |
Don't unnecessarily use non-ASCII characters in C sources
* src/xwidget.c (webkit_javascript_finished_cb):
* src/gtkutil.c (xg_check_special_colors):
* src/emacs-module.c (module_make_string):
* src/alloc.c (SET_STACK_TOP_ADDRESS): Don't use non-ASCII quote
characters.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/emacs-module.c | 2 | ||||
| -rw-r--r-- | src/gtkutil.c | 4 | ||||
| -rw-r--r-- | src/xwidget.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index 6704c51a207..9d0e2d37e3c 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5124,7 +5124,7 @@ typedef union | |||
| 5124 | #endif | 5124 | #endif |
| 5125 | 5125 | ||
| 5126 | /* Set *P to the address of the top of the stack. This must be a | 5126 | /* Set *P to the address of the top of the stack. This must be a |
| 5127 | macro, not a function, so that it is executed in the caller’s | 5127 | macro, not a function, so that it is executed in the caller's |
| 5128 | environment. It is not inside a do-while so that its storage | 5128 | environment. It is not inside a do-while so that its storage |
| 5129 | survives the macro. Callers should be declared NO_INLINE. */ | 5129 | survives the macro. Callers should be declared NO_INLINE. */ |
| 5130 | #ifdef HAVE___BUILTIN_UNWIND_INIT | 5130 | #ifdef HAVE___BUILTIN_UNWIND_INIT |
diff --git a/src/emacs-module.c b/src/emacs-module.c index 00f0e86d7da..1b19e8033df 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c | |||
| @@ -574,7 +574,7 @@ module_make_string (emacs_env *env, const char *str, ptrdiff_t length) | |||
| 574 | if (! (0 <= length && length <= STRING_BYTES_BOUND)) | 574 | if (! (0 <= length && length <= STRING_BYTES_BOUND)) |
| 575 | xsignal0 (Qoverflow_error); | 575 | xsignal0 (Qoverflow_error); |
| 576 | /* FIXME: AUTO_STRING_WITH_LEN requires STR to be null-terminated, | 576 | /* FIXME: AUTO_STRING_WITH_LEN requires STR to be null-terminated, |
| 577 | but we shouldn’t require that. */ | 577 | but we shouldn't require that. */ |
| 578 | AUTO_STRING_WITH_LEN (lstr, str, length); | 578 | AUTO_STRING_WITH_LEN (lstr, str, length); |
| 579 | return lisp_to_value (env, | 579 | return lisp_to_value (env, |
| 580 | code_convert_string_norecord (lstr, Qutf_8, false)); | 580 | code_convert_string_norecord (lstr, Qutf_8, false)); |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 3ef0fa00a2c..123236f5f08 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -580,8 +580,8 @@ xg_check_special_colors (struct frame *f, | |||
| 580 | { | 580 | { |
| 581 | GdkRGBA *c; | 581 | GdkRGBA *c; |
| 582 | /* FIXME: Retrieving the background color is deprecated in | 582 | /* FIXME: Retrieving the background color is deprecated in |
| 583 | GTK+ 3.16. New versions of GTK+ don’t use the concept of a | 583 | GTK+ 3.16. New versions of GTK+ don't use the concept of a |
| 584 | single background color any more, so we shouldn’t query for | 584 | single background color any more, so we shouldn't query for |
| 585 | it. */ | 585 | it. */ |
| 586 | gtk_style_context_get (gsty, state, | 586 | gtk_style_context_get (gsty, state, |
| 587 | GTK_STYLE_PROPERTY_BACKGROUND_COLOR, &c, | 587 | GTK_STYLE_PROPERTY_BACKGROUND_COLOR, &c, |
diff --git a/src/xwidget.c b/src/xwidget.c index e095b0be56f..530d1af707a 100644 --- a/src/xwidget.c +++ b/src/xwidget.c | |||
| @@ -389,7 +389,7 @@ webkit_javascript_finished_cb (GObject *webview, | |||
| 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 | /* FIXME: This might lead to disaster if LISP_CALLBACK’s object | 392 | /* FIXME: This might lead to disaster if LISP_CALLBACK's object |
| 393 | was garbage collected before now. See the FIXME in | 393 | was garbage collected before now. See the FIXME in |
| 394 | Fxwidget_webkit_execute_script. */ | 394 | Fxwidget_webkit_execute_script. */ |
| 395 | store_xwidget_js_callback_event (xw, XIL ((intptr_t) lisp_callback), | 395 | store_xwidget_js_callback_event (xw, XIL ((intptr_t) lisp_callback), |