diff options
| author | Dmitry Antipov | 2012-07-10 20:53:26 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-07-10 20:53:26 +0400 |
| commit | 7d7bbefd049fc22cf3bf333592abf57a3bde8766 (patch) | |
| tree | ab416b8873bb2c77a6d247b1c65a94ec5d274d3b /src/coding.c | |
| parent | 3a4c8000fba422ac9d005d29ad0c5d8becc58167 (diff) | |
| download | emacs-7d7bbefd049fc22cf3bf333592abf57a3bde8766.tar.gz emacs-7d7bbefd049fc22cf3bf333592abf57a3bde8766.zip | |
Use XCAR and XCDR instead of Fcar and Fcdr where possible.
* admin/coccinelle/list_loop.cocci: Semantic patch to convert from Fcdr
to XCDR and consistently use CONSP in the list iteration loops.
* admin/coccinelle/vector_contents.cocci: Fix indentation.
* src/callint.c, src/coding.c, src/doc.c, src/editfns.c, src/eval.c,
* src/font.c, src/fontset.c, src/frame.c, src/gnutls.c, src/minibuf.c,
* src/msdos.c, src/textprop.c, src/w32fns.c, src/w32menu.c, src/window.c,
* src/xmenu.c: Changed to use XCAR and XCDR where argument type is known
to be a Lisp_Cons.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index 8210cacc4d8..134ebf2ab73 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9791,7 +9791,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 9791 | 9791 | ||
| 9792 | val = args[coding_arg_ccl_valids]; | 9792 | val = args[coding_arg_ccl_valids]; |
| 9793 | valids = Fmake_string (make_number (256), make_number (0)); | 9793 | valids = Fmake_string (make_number (256), make_number (0)); |
| 9794 | for (tail = val; !NILP (tail); tail = Fcdr (tail)) | 9794 | for (tail = val; CONSP (tail); tail = XCDR (tail)) |
| 9795 | { | 9795 | { |
| 9796 | int from, to; | 9796 | int from, to; |
| 9797 | 9797 | ||
| @@ -9892,7 +9892,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 9892 | CHECK_NUMBER_CDR (reg_usage); | 9892 | CHECK_NUMBER_CDR (reg_usage); |
| 9893 | 9893 | ||
| 9894 | request = Fcopy_sequence (args[coding_arg_iso2022_request]); | 9894 | request = Fcopy_sequence (args[coding_arg_iso2022_request]); |
| 9895 | for (tail = request; ! NILP (tail); tail = Fcdr (tail)) | 9895 | for (tail = request; CONSP (tail); tail = XCDR (tail)) |
| 9896 | { | 9896 | { |
| 9897 | int id; | 9897 | int id; |
| 9898 | Lisp_Object tmp1; | 9898 | Lisp_Object tmp1; |