diff options
| author | Pavel Janík | 2001-11-02 20:46:55 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-11-02 20:46:55 +0000 |
| commit | b78265036088d5d0eac2a03b929adb50aa59b45c (patch) | |
| tree | de99fe733144deb926fd31ee7bdff95cb1bc5073 /src | |
| parent | 00a2cef7d11a1b193891eb3d28274ef7fc7c3fe4 (diff) | |
| download | emacs-b78265036088d5d0eac2a03b929adb50aa59b45c.tar.gz emacs-b78265036088d5d0eac2a03b929adb50aa59b45c.zip | |
Update usage of CHECK_ macros (remove unused second argument).
Diffstat (limited to 'src')
| -rw-r--r-- | src/abbrev.c | 20 | ||||
| -rw-r--r-- | src/alloc.c | 16 | ||||
| -rw-r--r-- | src/buffer.c | 66 | ||||
| -rw-r--r-- | src/bytecode.c | 16 | ||||
| -rw-r--r-- | src/callint.c | 2 | ||||
| -rw-r--r-- | src/callproc.c | 12 | ||||
| -rw-r--r-- | src/casefiddle.c | 2 | ||||
| -rw-r--r-- | src/category.c | 18 | ||||
| -rw-r--r-- | src/ccl.c | 14 | ||||
| -rw-r--r-- | src/charset.c | 54 | ||||
| -rw-r--r-- | src/cmds.c | 18 | ||||
| -rw-r--r-- | src/coding.c | 42 | ||||
| -rw-r--r-- | src/composite.c | 14 | ||||
| -rw-r--r-- | src/data.c | 90 | ||||
| -rw-r--r-- | src/dired.c | 4 | ||||
| -rw-r--r-- | src/dispnew.c | 12 | ||||
| -rw-r--r-- | src/doc.c | 6 | ||||
| -rw-r--r-- | src/dosfns.c | 20 | ||||
| -rw-r--r-- | src/editfns.c | 86 | ||||
| -rw-r--r-- | src/emacs.c | 6 | ||||
| -rw-r--r-- | src/eval.c | 24 | ||||
| -rw-r--r-- | src/fileio.c | 90 | ||||
| -rw-r--r-- | src/filelock.c | 2 | ||||
| -rw-r--r-- | src/floatfns.c | 14 | ||||
| -rw-r--r-- | src/fns.c | 110 | ||||
| -rw-r--r-- | src/fontset.c | 32 | ||||
| -rw-r--r-- | src/frame.c | 92 | ||||
| -rw-r--r-- | src/indent.c | 40 | ||||
| -rw-r--r-- | src/keyboard.c | 8 | ||||
| -rw-r--r-- | src/keymap.c | 8 | ||||
| -rw-r--r-- | src/lread.c | 18 | ||||
| -rw-r--r-- | src/macros.c | 2 | ||||
| -rw-r--r-- | src/marker.c | 28 | ||||
| -rw-r--r-- | src/minibuf.c | 32 | ||||
| -rw-r--r-- | src/mocklisp.c | 8 | ||||
| -rw-r--r-- | src/msdos.c | 6 | ||||
| -rw-r--r-- | src/print.c | 6 | ||||
| -rw-r--r-- | src/process.c | 78 | ||||
| -rw-r--r-- | src/search.c | 30 | ||||
| -rw-r--r-- | src/sunfns.c | 28 | ||||
| -rw-r--r-- | src/syntax.c | 28 | ||||
| -rw-r--r-- | src/textprop.c | 32 | ||||
| -rw-r--r-- | src/undo.c | 2 | ||||
| -rw-r--r-- | src/w16select.c | 8 | ||||
| -rw-r--r-- | src/w32console.c | 2 | ||||
| -rw-r--r-- | src/w32fns.c | 104 | ||||
| -rw-r--r-- | src/w32menu.c | 24 | ||||
| -rw-r--r-- | src/w32proc.c | 24 | ||||
| -rw-r--r-- | src/w32select.c | 10 | ||||
| -rw-r--r-- | src/window.c | 76 | ||||
| -rw-r--r-- | src/xdisp.c | 6 | ||||
| -rw-r--r-- | src/xfaces.c | 86 | ||||
| -rw-r--r-- | src/xfns.c | 92 | ||||
| -rw-r--r-- | src/xmenu.c | 24 | ||||
| -rw-r--r-- | src/xselect.c | 34 |
55 files changed, 863 insertions, 863 deletions
diff --git a/src/abbrev.c b/src/abbrev.c index ec92e4d5d6f..51623ade93c 100644 --- a/src/abbrev.c +++ b/src/abbrev.c | |||
| @@ -97,7 +97,7 @@ DEFUN ("clear-abbrev-table", Fclear_abbrev_table, Sclear_abbrev_table, 1, 1, 0, | |||
| 97 | { | 97 | { |
| 98 | int i, size; | 98 | int i, size; |
| 99 | 99 | ||
| 100 | CHECK_VECTOR (table, 0); | 100 | CHECK_VECTOR (table); |
| 101 | size = XVECTOR (table)->size; | 101 | size = XVECTOR (table)->size; |
| 102 | abbrevs_changed = 1; | 102 | abbrevs_changed = 1; |
| 103 | for (i = 0; i < size; i++) | 103 | for (i = 0; i < size; i++) |
| @@ -120,13 +120,13 @@ which is incremented each time the abbrev is used. */) | |||
| 120 | Lisp_Object table, name, expansion, hook, count; | 120 | Lisp_Object table, name, expansion, hook, count; |
| 121 | { | 121 | { |
| 122 | Lisp_Object sym, oexp, ohook, tem; | 122 | Lisp_Object sym, oexp, ohook, tem; |
| 123 | CHECK_VECTOR (table, 0); | 123 | CHECK_VECTOR (table); |
| 124 | CHECK_STRING (name, 1); | 124 | CHECK_STRING (name); |
| 125 | 125 | ||
| 126 | if (NILP (count)) | 126 | if (NILP (count)) |
| 127 | count = make_number (0); | 127 | count = make_number (0); |
| 128 | else | 128 | else |
| 129 | CHECK_NUMBER (count, 0); | 129 | CHECK_NUMBER (count); |
| 130 | 130 | ||
| 131 | sym = Fintern (name, table); | 131 | sym = Fintern (name, table); |
| 132 | 132 | ||
| @@ -183,7 +183,7 @@ The default is to try buffer's mode-specific abbrev table, then global table. * | |||
| 183 | Lisp_Object abbrev, table; | 183 | Lisp_Object abbrev, table; |
| 184 | { | 184 | { |
| 185 | Lisp_Object sym; | 185 | Lisp_Object sym; |
| 186 | CHECK_STRING (abbrev, 0); | 186 | CHECK_STRING (abbrev); |
| 187 | if (!NILP (table)) | 187 | if (!NILP (table)) |
| 188 | sym = Fintern_soft (abbrev, table); | 188 | sym = Fintern_soft (abbrev, table); |
| 189 | else | 189 | else |
| @@ -244,7 +244,7 @@ Returns the abbrev symbol, if expansion took place. */) | |||
| 244 | if (!NILP (Vabbrev_start_location)) | 244 | if (!NILP (Vabbrev_start_location)) |
| 245 | { | 245 | { |
| 246 | tem = Vabbrev_start_location; | 246 | tem = Vabbrev_start_location; |
| 247 | CHECK_NUMBER_COERCE_MARKER (tem, 0); | 247 | CHECK_NUMBER_COERCE_MARKER (tem); |
| 248 | wordstart = XINT (tem); | 248 | wordstart = XINT (tem); |
| 249 | Vabbrev_start_location = Qnil; | 249 | Vabbrev_start_location = Qnil; |
| 250 | if (wordstart < BEGV || wordstart > ZV) | 250 | if (wordstart < BEGV || wordstart > ZV) |
| @@ -479,9 +479,9 @@ define the abbrev table NAME exactly as it is currently defined. */) | |||
| 479 | Lisp_Object table; | 479 | Lisp_Object table; |
| 480 | Lisp_Object stream; | 480 | Lisp_Object stream; |
| 481 | 481 | ||
| 482 | CHECK_SYMBOL (name, 0); | 482 | CHECK_SYMBOL (name); |
| 483 | table = Fsymbol_value (name); | 483 | table = Fsymbol_value (name); |
| 484 | CHECK_VECTOR (table, 0); | 484 | CHECK_VECTOR (table); |
| 485 | 485 | ||
| 486 | XSETBUFFER (stream, current_buffer); | 486 | XSETBUFFER (stream, current_buffer); |
| 487 | 487 | ||
| @@ -516,7 +516,7 @@ of the form (ABBREVNAME EXPANSION HOOK USECOUNT). */) | |||
| 516 | Lisp_Object name, exp, hook, count; | 516 | Lisp_Object name, exp, hook, count; |
| 517 | Lisp_Object table, elt; | 517 | Lisp_Object table, elt; |
| 518 | 518 | ||
| 519 | CHECK_SYMBOL (tablename, 0); | 519 | CHECK_SYMBOL (tablename); |
| 520 | table = Fboundp (tablename); | 520 | table = Fboundp (tablename); |
| 521 | if (NILP (table) || (table = Fsymbol_value (tablename), NILP (table))) | 521 | if (NILP (table) || (table = Fsymbol_value (tablename), NILP (table))) |
| 522 | { | 522 | { |
| @@ -524,7 +524,7 @@ of the form (ABBREVNAME EXPANSION HOOK USECOUNT). */) | |||
| 524 | Fset (tablename, table); | 524 | Fset (tablename, table); |
| 525 | Vabbrev_table_name_list = Fcons (tablename, Vabbrev_table_name_list); | 525 | Vabbrev_table_name_list = Fcons (tablename, Vabbrev_table_name_list); |
| 526 | } | 526 | } |
| 527 | CHECK_VECTOR (table, 0); | 527 | CHECK_VECTOR (table); |
| 528 | 528 | ||
| 529 | for (; !NILP (definitions); definitions = Fcdr (definitions)) | 529 | for (; !NILP (definitions); definitions = Fcdr (definitions)) |
| 530 | { | 530 | { |
diff --git a/src/alloc.c b/src/alloc.c index 6340761c880..3545f5256f2 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1668,8 +1668,8 @@ Both LENGTH and INIT must be numbers. */) | |||
| 1668 | register unsigned char *p, *end; | 1668 | register unsigned char *p, *end; |
| 1669 | int c, nbytes; | 1669 | int c, nbytes; |
| 1670 | 1670 | ||
| 1671 | CHECK_NATNUM (length, 0); | 1671 | CHECK_NATNUM (length); |
| 1672 | CHECK_NUMBER (init, 1); | 1672 | CHECK_NUMBER (init); |
| 1673 | 1673 | ||
| 1674 | c = XINT (init); | 1674 | c = XINT (init); |
| 1675 | if (SINGLE_BYTE_CHAR_P (c)) | 1675 | if (SINGLE_BYTE_CHAR_P (c)) |
| @@ -1713,7 +1713,7 @@ LENGTH must be a number. INIT matters only in whether it is t or nil. */) | |||
| 1713 | int real_init, i; | 1713 | int real_init, i; |
| 1714 | int length_in_chars, length_in_elts, bits_per_value; | 1714 | int length_in_chars, length_in_elts, bits_per_value; |
| 1715 | 1715 | ||
| 1716 | CHECK_NATNUM (length, 0); | 1716 | CHECK_NATNUM (length); |
| 1717 | 1717 | ||
| 1718 | bits_per_value = sizeof (EMACS_INT) * BITS_PER_CHAR; | 1718 | bits_per_value = sizeof (EMACS_INT) * BITS_PER_CHAR; |
| 1719 | 1719 | ||
| @@ -2157,7 +2157,7 @@ DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0, | |||
| 2157 | register Lisp_Object val; | 2157 | register Lisp_Object val; |
| 2158 | register int size; | 2158 | register int size; |
| 2159 | 2159 | ||
| 2160 | CHECK_NATNUM (length, 0); | 2160 | CHECK_NATNUM (length); |
| 2161 | size = XFASTINT (length); | 2161 | size = XFASTINT (length); |
| 2162 | 2162 | ||
| 2163 | val = Qnil; | 2163 | val = Qnil; |
| @@ -2347,7 +2347,7 @@ See also the function `vector'. */) | |||
| 2347 | register int index; | 2347 | register int index; |
| 2348 | register struct Lisp_Vector *p; | 2348 | register struct Lisp_Vector *p; |
| 2349 | 2349 | ||
| 2350 | CHECK_NATNUM (length, 0); | 2350 | CHECK_NATNUM (length); |
| 2351 | sizei = XFASTINT (length); | 2351 | sizei = XFASTINT (length); |
| 2352 | 2352 | ||
| 2353 | p = allocate_vector (sizei); | 2353 | p = allocate_vector (sizei); |
| @@ -2369,9 +2369,9 @@ The property's value should be an integer between 0 and 10. */) | |||
| 2369 | { | 2369 | { |
| 2370 | Lisp_Object vector; | 2370 | Lisp_Object vector; |
| 2371 | Lisp_Object n; | 2371 | Lisp_Object n; |
| 2372 | CHECK_SYMBOL (purpose, 1); | 2372 | CHECK_SYMBOL (purpose); |
| 2373 | n = Fget (purpose, Qchar_table_extra_slots); | 2373 | n = Fget (purpose, Qchar_table_extra_slots); |
| 2374 | CHECK_NUMBER (n, 0); | 2374 | CHECK_NUMBER (n); |
| 2375 | if (XINT (n) < 0 || XINT (n) > 10) | 2375 | if (XINT (n) < 0 || XINT (n) > 10) |
| 2376 | args_out_of_range (n, Qnil); | 2376 | args_out_of_range (n, Qnil); |
| 2377 | /* Add 2 to the size for the defalt and parent slots. */ | 2377 | /* Add 2 to the size for the defalt and parent slots. */ |
| @@ -2521,7 +2521,7 @@ Its value and function definition are void, and its property list is nil. */) | |||
| 2521 | register Lisp_Object val; | 2521 | register Lisp_Object val; |
| 2522 | register struct Lisp_Symbol *p; | 2522 | register struct Lisp_Symbol *p; |
| 2523 | 2523 | ||
| 2524 | CHECK_STRING (name, 0); | 2524 | CHECK_STRING (name); |
| 2525 | 2525 | ||
| 2526 | if (symbol_free_list) | 2526 | if (symbol_free_list) |
| 2527 | { | 2527 | { |
diff --git a/src/buffer.c b/src/buffer.c index f3b6d5f735f..2207adcf406 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -220,7 +220,7 @@ If the optional arg FRAME is a frame, we return that frame's buffer list. */) | |||
| 220 | { | 220 | { |
| 221 | Lisp_Object tail; | 221 | Lisp_Object tail; |
| 222 | 222 | ||
| 223 | CHECK_FRAME (frame, 1); | 223 | CHECK_FRAME (frame); |
| 224 | 224 | ||
| 225 | framelist = Fcopy_sequence (XFRAME (frame)->buffer_list); | 225 | framelist = Fcopy_sequence (XFRAME (frame)->buffer_list); |
| 226 | 226 | ||
| @@ -267,7 +267,7 @@ NAME may also be a buffer; if so, the value is that buffer. */) | |||
| 267 | { | 267 | { |
| 268 | if (BUFFERP (name)) | 268 | if (BUFFERP (name)) |
| 269 | return name; | 269 | return name; |
| 270 | CHECK_STRING (name, 0); | 270 | CHECK_STRING (name); |
| 271 | 271 | ||
| 272 | return Fcdr (assoc_ignore_text_properties (name, Vbuffer_alist)); | 272 | return Fcdr (assoc_ignore_text_properties (name, Vbuffer_alist)); |
| 273 | } | 273 | } |
| @@ -283,7 +283,7 @@ See also `find-buffer-visiting'. */) | |||
| 283 | register Lisp_Object tail, buf, tem; | 283 | register Lisp_Object tail, buf, tem; |
| 284 | Lisp_Object handler; | 284 | Lisp_Object handler; |
| 285 | 285 | ||
| 286 | CHECK_STRING (filename, 0); | 286 | CHECK_STRING (filename); |
| 287 | filename = Fexpand_file_name (filename, Qnil); | 287 | filename = Fexpand_file_name (filename, Qnil); |
| 288 | 288 | ||
| 289 | /* If the file name has special constructs in it, | 289 | /* If the file name has special constructs in it, |
| @@ -739,7 +739,7 @@ even if a buffer with that name exists. */) | |||
| 739 | int count; | 739 | int count; |
| 740 | char number[10]; | 740 | char number[10]; |
| 741 | 741 | ||
| 742 | CHECK_STRING (name, 0); | 742 | CHECK_STRING (name); |
| 743 | 743 | ||
| 744 | tem = Fget_buffer (name); | 744 | tem = Fget_buffer (name); |
| 745 | if (NILP (tem)) | 745 | if (NILP (tem)) |
| @@ -768,7 +768,7 @@ With no argument or nil as argument, return the name of the current buffer. */) | |||
| 768 | { | 768 | { |
| 769 | if (NILP (buffer)) | 769 | if (NILP (buffer)) |
| 770 | return current_buffer->name; | 770 | return current_buffer->name; |
| 771 | CHECK_BUFFER (buffer, 0); | 771 | CHECK_BUFFER (buffer); |
| 772 | return XBUFFER (buffer)->name; | 772 | return XBUFFER (buffer)->name; |
| 773 | } | 773 | } |
| 774 | 774 | ||
| @@ -780,7 +780,7 @@ No argument or nil as argument means use the current buffer. */) | |||
| 780 | { | 780 | { |
| 781 | if (NILP (buffer)) | 781 | if (NILP (buffer)) |
| 782 | return current_buffer->filename; | 782 | return current_buffer->filename; |
| 783 | CHECK_BUFFER (buffer, 0); | 783 | CHECK_BUFFER (buffer); |
| 784 | return XBUFFER (buffer)->filename; | 784 | return XBUFFER (buffer)->filename; |
| 785 | } | 785 | } |
| 786 | 786 | ||
| @@ -798,7 +798,7 @@ If BUFFER is not indirect, return nil. */) | |||
| 798 | base = current_buffer->base_buffer; | 798 | base = current_buffer->base_buffer; |
| 799 | else | 799 | else |
| 800 | { | 800 | { |
| 801 | CHECK_BUFFER (buffer, 0); | 801 | CHECK_BUFFER (buffer); |
| 802 | base = XBUFFER (buffer)->base_buffer; | 802 | base = XBUFFER (buffer)->base_buffer; |
| 803 | } | 803 | } |
| 804 | 804 | ||
| @@ -825,7 +825,7 @@ No argument or nil as argument means use current buffer as BUFFER. */) | |||
| 825 | buf = current_buffer; | 825 | buf = current_buffer; |
| 826 | else | 826 | else |
| 827 | { | 827 | { |
| 828 | CHECK_BUFFER (buffer, 0); | 828 | CHECK_BUFFER (buffer); |
| 829 | buf = XBUFFER (buffer); | 829 | buf = XBUFFER (buffer); |
| 830 | } | 830 | } |
| 831 | 831 | ||
| @@ -892,7 +892,7 @@ No argument or nil as argument means use current buffer as BUFFER. */) | |||
| 892 | buf = current_buffer; | 892 | buf = current_buffer; |
| 893 | else | 893 | else |
| 894 | { | 894 | { |
| 895 | CHECK_BUFFER (buffer, 0); | 895 | CHECK_BUFFER (buffer); |
| 896 | buf = XBUFFER (buffer); | 896 | buf = XBUFFER (buffer); |
| 897 | } | 897 | } |
| 898 | 898 | ||
| @@ -994,7 +994,7 @@ No argument or nil as argument means use current buffer as BUFFER. */) | |||
| 994 | buf = current_buffer; | 994 | buf = current_buffer; |
| 995 | else | 995 | else |
| 996 | { | 996 | { |
| 997 | CHECK_BUFFER (buffer, 0); | 997 | CHECK_BUFFER (buffer); |
| 998 | buf = XBUFFER (buffer); | 998 | buf = XBUFFER (buffer); |
| 999 | } | 999 | } |
| 1000 | 1000 | ||
| @@ -1016,7 +1016,7 @@ This does not change the name of the visited file (if any). */) | |||
| 1016 | { | 1016 | { |
| 1017 | register Lisp_Object tem, buf; | 1017 | register Lisp_Object tem, buf; |
| 1018 | 1018 | ||
| 1019 | CHECK_STRING (newname, 0); | 1019 | CHECK_STRING (newname); |
| 1020 | 1020 | ||
| 1021 | if (XSTRING (newname)->size == 0) | 1021 | if (XSTRING (newname)->size == 0) |
| 1022 | error ("Empty string is invalid as a buffer name"); | 1022 | error ("Empty string is invalid as a buffer name"); |
| @@ -1903,8 +1903,8 @@ void | |||
| 1903 | validate_region (b, e) | 1903 | validate_region (b, e) |
| 1904 | register Lisp_Object *b, *e; | 1904 | register Lisp_Object *b, *e; |
| 1905 | { | 1905 | { |
| 1906 | CHECK_NUMBER_COERCE_MARKER (*b, 0); | 1906 | CHECK_NUMBER_COERCE_MARKER (*b); |
| 1907 | CHECK_NUMBER_COERCE_MARKER (*e, 1); | 1907 | CHECK_NUMBER_COERCE_MARKER (*e); |
| 1908 | 1908 | ||
| 1909 | if (XINT (*b) > XINT (*e)) | 1909 | if (XINT (*b) > XINT (*e)) |
| 1910 | { | 1910 | { |
| @@ -3371,7 +3371,7 @@ rear delimiter advance when text is inserted there. */) | |||
| 3371 | if (NILP (buffer)) | 3371 | if (NILP (buffer)) |
| 3372 | XSETBUFFER (buffer, current_buffer); | 3372 | XSETBUFFER (buffer, current_buffer); |
| 3373 | else | 3373 | else |
| 3374 | CHECK_BUFFER (buffer, 2); | 3374 | CHECK_BUFFER (buffer); |
| 3375 | if (MARKERP (beg) | 3375 | if (MARKERP (beg) |
| 3376 | && ! EQ (Fmarker_buffer (beg), buffer)) | 3376 | && ! EQ (Fmarker_buffer (beg), buffer)) |
| 3377 | error ("Marker points into wrong buffer"); | 3377 | error ("Marker points into wrong buffer"); |
| @@ -3379,8 +3379,8 @@ rear delimiter advance when text is inserted there. */) | |||
| 3379 | && ! EQ (Fmarker_buffer (end), buffer)) | 3379 | && ! EQ (Fmarker_buffer (end), buffer)) |
| 3380 | error ("Marker points into wrong buffer"); | 3380 | error ("Marker points into wrong buffer"); |
| 3381 | 3381 | ||
| 3382 | CHECK_NUMBER_COERCE_MARKER (beg, 1); | 3382 | CHECK_NUMBER_COERCE_MARKER (beg); |
| 3383 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 3383 | CHECK_NUMBER_COERCE_MARKER (end); |
| 3384 | 3384 | ||
| 3385 | if (XINT (beg) > XINT (end)) | 3385 | if (XINT (beg) > XINT (end)) |
| 3386 | { | 3386 | { |
| @@ -3462,12 +3462,12 @@ buffer. */) | |||
| 3462 | Lisp_Object obuffer; | 3462 | Lisp_Object obuffer; |
| 3463 | int count = specpdl_ptr - specpdl; | 3463 | int count = specpdl_ptr - specpdl; |
| 3464 | 3464 | ||
| 3465 | CHECK_OVERLAY (overlay, 0); | 3465 | CHECK_OVERLAY (overlay); |
| 3466 | if (NILP (buffer)) | 3466 | if (NILP (buffer)) |
| 3467 | buffer = Fmarker_buffer (OVERLAY_START (overlay)); | 3467 | buffer = Fmarker_buffer (OVERLAY_START (overlay)); |
| 3468 | if (NILP (buffer)) | 3468 | if (NILP (buffer)) |
| 3469 | XSETBUFFER (buffer, current_buffer); | 3469 | XSETBUFFER (buffer, current_buffer); |
| 3470 | CHECK_BUFFER (buffer, 3); | 3470 | CHECK_BUFFER (buffer); |
| 3471 | 3471 | ||
| 3472 | if (MARKERP (beg) | 3472 | if (MARKERP (beg) |
| 3473 | && ! EQ (Fmarker_buffer (beg), buffer)) | 3473 | && ! EQ (Fmarker_buffer (beg), buffer)) |
| @@ -3476,8 +3476,8 @@ buffer. */) | |||
| 3476 | && ! EQ (Fmarker_buffer (end), buffer)) | 3476 | && ! EQ (Fmarker_buffer (end), buffer)) |
| 3477 | error ("Marker points into wrong buffer"); | 3477 | error ("Marker points into wrong buffer"); |
| 3478 | 3478 | ||
| 3479 | CHECK_NUMBER_COERCE_MARKER (beg, 1); | 3479 | CHECK_NUMBER_COERCE_MARKER (beg); |
| 3480 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 3480 | CHECK_NUMBER_COERCE_MARKER (end); |
| 3481 | 3481 | ||
| 3482 | if (XINT (beg) == XINT (end) && ! NILP (Foverlay_get (overlay, Qevaporate))) | 3482 | if (XINT (beg) == XINT (end) && ! NILP (Foverlay_get (overlay, Qevaporate))) |
| 3483 | return Fdelete_overlay (overlay); | 3483 | return Fdelete_overlay (overlay); |
| @@ -3563,7 +3563,7 @@ DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0, | |||
| 3563 | struct buffer *b; | 3563 | struct buffer *b; |
| 3564 | int count = specpdl_ptr - specpdl; | 3564 | int count = specpdl_ptr - specpdl; |
| 3565 | 3565 | ||
| 3566 | CHECK_OVERLAY (overlay, 0); | 3566 | CHECK_OVERLAY (overlay); |
| 3567 | 3567 | ||
| 3568 | buffer = Fmarker_buffer (OVERLAY_START (overlay)); | 3568 | buffer = Fmarker_buffer (OVERLAY_START (overlay)); |
| 3569 | if (NILP (buffer)) | 3569 | if (NILP (buffer)) |
| @@ -3599,7 +3599,7 @@ DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0, | |||
| 3599 | (overlay) | 3599 | (overlay) |
| 3600 | Lisp_Object overlay; | 3600 | Lisp_Object overlay; |
| 3601 | { | 3601 | { |
| 3602 | CHECK_OVERLAY (overlay, 0); | 3602 | CHECK_OVERLAY (overlay); |
| 3603 | 3603 | ||
| 3604 | return (Fmarker_position (OVERLAY_START (overlay))); | 3604 | return (Fmarker_position (OVERLAY_START (overlay))); |
| 3605 | } | 3605 | } |
| @@ -3609,7 +3609,7 @@ DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0, | |||
| 3609 | (overlay) | 3609 | (overlay) |
| 3610 | Lisp_Object overlay; | 3610 | Lisp_Object overlay; |
| 3611 | { | 3611 | { |
| 3612 | CHECK_OVERLAY (overlay, 0); | 3612 | CHECK_OVERLAY (overlay); |
| 3613 | 3613 | ||
| 3614 | return (Fmarker_position (OVERLAY_END (overlay))); | 3614 | return (Fmarker_position (OVERLAY_END (overlay))); |
| 3615 | } | 3615 | } |
| @@ -3619,7 +3619,7 @@ DEFUN ("overlay-buffer", Foverlay_buffer, Soverlay_buffer, 1, 1, 0, | |||
| 3619 | (overlay) | 3619 | (overlay) |
| 3620 | Lisp_Object overlay; | 3620 | Lisp_Object overlay; |
| 3621 | { | 3621 | { |
| 3622 | CHECK_OVERLAY (overlay, 0); | 3622 | CHECK_OVERLAY (overlay); |
| 3623 | 3623 | ||
| 3624 | return Fmarker_buffer (OVERLAY_START (overlay)); | 3624 | return Fmarker_buffer (OVERLAY_START (overlay)); |
| 3625 | } | 3625 | } |
| @@ -3631,7 +3631,7 @@ OVERLAY. */) | |||
| 3631 | (overlay) | 3631 | (overlay) |
| 3632 | Lisp_Object overlay; | 3632 | Lisp_Object overlay; |
| 3633 | { | 3633 | { |
| 3634 | CHECK_OVERLAY (overlay, 0); | 3634 | CHECK_OVERLAY (overlay); |
| 3635 | 3635 | ||
| 3636 | return Fcopy_sequence (XOVERLAY (overlay)->plist); | 3636 | return Fcopy_sequence (XOVERLAY (overlay)->plist); |
| 3637 | } | 3637 | } |
| @@ -3647,7 +3647,7 @@ DEFUN ("overlays-at", Foverlays_at, Soverlays_at, 1, 1, 0, | |||
| 3647 | int len; | 3647 | int len; |
| 3648 | Lisp_Object result; | 3648 | Lisp_Object result; |
| 3649 | 3649 | ||
| 3650 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 3650 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 3651 | 3651 | ||
| 3652 | len = 10; | 3652 | len = 10; |
| 3653 | /* We can't use alloca here because overlays_at can call xrealloc. */ | 3653 | /* We can't use alloca here because overlays_at can call xrealloc. */ |
| @@ -3679,8 +3679,8 @@ or between BEG and END. */) | |||
| 3679 | int len; | 3679 | int len; |
| 3680 | Lisp_Object result; | 3680 | Lisp_Object result; |
| 3681 | 3681 | ||
| 3682 | CHECK_NUMBER_COERCE_MARKER (beg, 0); | 3682 | CHECK_NUMBER_COERCE_MARKER (beg); |
| 3683 | CHECK_NUMBER_COERCE_MARKER (end, 0); | 3683 | CHECK_NUMBER_COERCE_MARKER (end); |
| 3684 | 3684 | ||
| 3685 | len = 10; | 3685 | len = 10; |
| 3686 | overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); | 3686 | overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); |
| @@ -3710,7 +3710,7 @@ If there are no more overlay boundaries after POS, return (point-max). */) | |||
| 3710 | int len; | 3710 | int len; |
| 3711 | int i; | 3711 | int i; |
| 3712 | 3712 | ||
| 3713 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 3713 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 3714 | 3714 | ||
| 3715 | len = 10; | 3715 | len = 10; |
| 3716 | overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); | 3716 | overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); |
| @@ -3750,7 +3750,7 @@ If there are no more overlay boundaries before POS, return (point-min). */) | |||
| 3750 | Lisp_Object *overlay_vec; | 3750 | Lisp_Object *overlay_vec; |
| 3751 | int len; | 3751 | int len; |
| 3752 | 3752 | ||
| 3753 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 3753 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 3754 | 3754 | ||
| 3755 | /* At beginning of buffer, we know the answer; | 3755 | /* At beginning of buffer, we know the answer; |
| 3756 | avoid bug subtracting 1 below. */ | 3756 | avoid bug subtracting 1 below. */ |
| @@ -3797,7 +3797,7 @@ DEFUN ("overlay-recenter", Foverlay_recenter, Soverlay_recenter, 1, 1, 0, | |||
| 3797 | (pos) | 3797 | (pos) |
| 3798 | Lisp_Object pos; | 3798 | Lisp_Object pos; |
| 3799 | { | 3799 | { |
| 3800 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 3800 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 3801 | 3801 | ||
| 3802 | recenter_overlay_lists (current_buffer, XINT (pos)); | 3802 | recenter_overlay_lists (current_buffer, XINT (pos)); |
| 3803 | return Qnil; | 3803 | return Qnil; |
| @@ -3810,7 +3810,7 @@ DEFUN ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0, | |||
| 3810 | { | 3810 | { |
| 3811 | Lisp_Object plist, fallback; | 3811 | Lisp_Object plist, fallback; |
| 3812 | 3812 | ||
| 3813 | CHECK_OVERLAY (overlay, 0); | 3813 | CHECK_OVERLAY (overlay); |
| 3814 | 3814 | ||
| 3815 | fallback = Qnil; | 3815 | fallback = Qnil; |
| 3816 | 3816 | ||
| @@ -3840,7 +3840,7 @@ DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0, | |||
| 3840 | Lisp_Object tail, buffer; | 3840 | Lisp_Object tail, buffer; |
| 3841 | int changed; | 3841 | int changed; |
| 3842 | 3842 | ||
| 3843 | CHECK_OVERLAY (overlay, 0); | 3843 | CHECK_OVERLAY (overlay); |
| 3844 | 3844 | ||
| 3845 | buffer = Fmarker_buffer (OVERLAY_START (overlay)); | 3845 | buffer = Fmarker_buffer (OVERLAY_START (overlay)); |
| 3846 | 3846 | ||
diff --git a/src/bytecode.c b/src/bytecode.c index c356eb3a262..c926a3237a6 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -447,10 +447,10 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 447 | } | 447 | } |
| 448 | #endif | 448 | #endif |
| 449 | 449 | ||
| 450 | CHECK_STRING (bytestr, 0); | 450 | CHECK_STRING (bytestr); |
| 451 | if (!VECTORP (vector)) | 451 | if (!VECTORP (vector)) |
| 452 | vector = wrong_type_argument (Qvectorp, vector); | 452 | vector = wrong_type_argument (Qvectorp, vector); |
| 453 | CHECK_NUMBER (maxdepth, 2); | 453 | CHECK_NUMBER (maxdepth); |
| 454 | 454 | ||
| 455 | if (STRING_MULTIBYTE (bytestr)) | 455 | if (STRING_MULTIBYTE (bytestr)) |
| 456 | /* BYTESTR must have been produced by Emacs 20.2 or the earlier | 456 | /* BYTESTR must have been produced by Emacs 20.2 or the earlier |
| @@ -895,7 +895,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 895 | 895 | ||
| 896 | case Btemp_output_buffer_setup: | 896 | case Btemp_output_buffer_setup: |
| 897 | BEFORE_POTENTIAL_GC (); | 897 | BEFORE_POTENTIAL_GC (); |
| 898 | CHECK_STRING (TOP, 0); | 898 | CHECK_STRING (TOP); |
| 899 | temp_output_buffer_setup (XSTRING (TOP)->data); | 899 | temp_output_buffer_setup (XSTRING (TOP)->data); |
| 900 | AFTER_POTENTIAL_GC (); | 900 | AFTER_POTENTIAL_GC (); |
| 901 | TOP = Vstandard_output; | 901 | TOP = Vstandard_output; |
| @@ -920,7 +920,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 920 | BEFORE_POTENTIAL_GC (); | 920 | BEFORE_POTENTIAL_GC (); |
| 921 | v1 = POP; | 921 | v1 = POP; |
| 922 | v2 = TOP; | 922 | v2 = TOP; |
| 923 | CHECK_NUMBER (v2, 0); | 923 | CHECK_NUMBER (v2); |
| 924 | AFTER_POTENTIAL_GC (); | 924 | AFTER_POTENTIAL_GC (); |
| 925 | op = XINT (v2); | 925 | op = XINT (v2); |
| 926 | immediate_quit = 1; | 926 | immediate_quit = 1; |
| @@ -1152,8 +1152,8 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 1152 | Lisp_Object v1, v2; | 1152 | Lisp_Object v1, v2; |
| 1153 | BEFORE_POTENTIAL_GC (); | 1153 | BEFORE_POTENTIAL_GC (); |
| 1154 | v2 = POP; v1 = TOP; | 1154 | v2 = POP; v1 = TOP; |
| 1155 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (v1, 0); | 1155 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (v1); |
| 1156 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (v2, 0); | 1156 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (v2); |
| 1157 | AFTER_POTENTIAL_GC (); | 1157 | AFTER_POTENTIAL_GC (); |
| 1158 | if (FLOATP (v1) || FLOATP (v2)) | 1158 | if (FLOATP (v1) || FLOATP (v2)) |
| 1159 | { | 1159 | { |
| @@ -1434,7 +1434,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 1434 | 1434 | ||
| 1435 | case Bchar_syntax: | 1435 | case Bchar_syntax: |
| 1436 | BEFORE_POTENTIAL_GC (); | 1436 | BEFORE_POTENTIAL_GC (); |
| 1437 | CHECK_NUMBER (TOP, 0); | 1437 | CHECK_NUMBER (TOP); |
| 1438 | AFTER_POTENTIAL_GC (); | 1438 | AFTER_POTENTIAL_GC (); |
| 1439 | XSETFASTINT (TOP, syntax_code_spec[(int) SYNTAX (XINT (TOP))]); | 1439 | XSETFASTINT (TOP, syntax_code_spec[(int) SYNTAX (XINT (TOP))]); |
| 1440 | break; | 1440 | break; |
| @@ -1563,7 +1563,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 1563 | BEFORE_POTENTIAL_GC (); | 1563 | BEFORE_POTENTIAL_GC (); |
| 1564 | v2 = POP; | 1564 | v2 = POP; |
| 1565 | v1 = TOP; | 1565 | v1 = TOP; |
| 1566 | CHECK_NUMBER (v2, 0); | 1566 | CHECK_NUMBER (v2); |
| 1567 | AFTER_POTENTIAL_GC (); | 1567 | AFTER_POTENTIAL_GC (); |
| 1568 | op = XINT (v2); | 1568 | op = XINT (v2); |
| 1569 | immediate_quit = 1; | 1569 | immediate_quit = 1; |
diff --git a/src/callint.c b/src/callint.c index 30036ea5b3a..f84d0048877 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -223,7 +223,7 @@ supply if the command inquires which events were used to invoke it. */) | |||
| 223 | keys = this_command_keys, key_count = this_command_key_count; | 223 | keys = this_command_keys, key_count = this_command_key_count; |
| 224 | else | 224 | else |
| 225 | { | 225 | { |
| 226 | CHECK_VECTOR (keys, 3); | 226 | CHECK_VECTOR (keys); |
| 227 | key_count = XVECTOR (keys)->size; | 227 | key_count = XVECTOR (keys)->size; |
| 228 | } | 228 | } |
| 229 | 229 | ||
diff --git a/src/callproc.c b/src/callproc.c index 6798caba8b0..21cfc11dd66 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -247,7 +247,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 247 | /* Qt denotes that Ffind_operation_coding_system is not yet called. */ | 247 | /* Qt denotes that Ffind_operation_coding_system is not yet called. */ |
| 248 | coding_systems = Qt; | 248 | coding_systems = Qt; |
| 249 | 249 | ||
| 250 | CHECK_STRING (args[0], 0); | 250 | CHECK_STRING (args[0]); |
| 251 | 251 | ||
| 252 | error_file = Qt; | 252 | error_file = Qt; |
| 253 | 253 | ||
| @@ -269,7 +269,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 269 | int must_encode = 0; | 269 | int must_encode = 0; |
| 270 | 270 | ||
| 271 | for (i = 4; i < nargs; i++) | 271 | for (i = 4; i < nargs; i++) |
| 272 | CHECK_STRING (args[i], i); | 272 | CHECK_STRING (args[i]); |
| 273 | 273 | ||
| 274 | for (i = 4; i < nargs; i++) | 274 | for (i = 4; i < nargs; i++) |
| 275 | if (STRING_MULTIBYTE (args[i])) | 275 | if (STRING_MULTIBYTE (args[i])) |
| @@ -299,7 +299,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 299 | if (nargs >= 2 && ! NILP (args[1])) | 299 | if (nargs >= 2 && ! NILP (args[1])) |
| 300 | { | 300 | { |
| 301 | infile = Fexpand_file_name (args[1], current_buffer->directory); | 301 | infile = Fexpand_file_name (args[1], current_buffer->directory); |
| 302 | CHECK_STRING (infile, 1); | 302 | CHECK_STRING (infile); |
| 303 | } | 303 | } |
| 304 | else | 304 | else |
| 305 | infile = build_string (NULL_DEVICE); | 305 | infile = build_string (NULL_DEVICE); |
| @@ -335,8 +335,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 335 | buffer = Fget_buffer_create (buffer); | 335 | buffer = Fget_buffer_create (buffer); |
| 336 | /* Mention the buffer name for a better error message. */ | 336 | /* Mention the buffer name for a better error message. */ |
| 337 | if (NILP (buffer)) | 337 | if (NILP (buffer)) |
| 338 | CHECK_BUFFER (spec_buffer, 2); | 338 | CHECK_BUFFER (spec_buffer); |
| 339 | CHECK_BUFFER (buffer, 2); | 339 | CHECK_BUFFER (buffer); |
| 340 | } | 340 | } |
| 341 | } | 341 | } |
| 342 | else | 342 | else |
| @@ -1419,7 +1419,7 @@ This function consults the variable ``process-environment'' for its value. */) | |||
| 1419 | char *value; | 1419 | char *value; |
| 1420 | int valuelen; | 1420 | int valuelen; |
| 1421 | 1421 | ||
| 1422 | CHECK_STRING (var, 0); | 1422 | CHECK_STRING (var); |
| 1423 | if (getenv_internal (XSTRING (var)->data, STRING_BYTES (XSTRING (var)), | 1423 | if (getenv_internal (XSTRING (var)->data, STRING_BYTES (XSTRING (var)), |
| 1424 | &value, &valuelen)) | 1424 | &value, &valuelen)) |
| 1425 | return make_string (value, valuelen); | 1425 | return make_string (value, valuelen); |
diff --git a/src/casefiddle.c b/src/casefiddle.c index 47f355461a8..c449547bf1d 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c | |||
| @@ -354,7 +354,7 @@ operate_on_word (arg, newpoint) | |||
| 354 | int farend; | 354 | int farend; |
| 355 | int iarg; | 355 | int iarg; |
| 356 | 356 | ||
| 357 | CHECK_NUMBER (arg, 0); | 357 | CHECK_NUMBER (arg); |
| 358 | iarg = XINT (arg); | 358 | iarg = XINT (arg); |
| 359 | farend = scan_words (PT, iarg); | 359 | farend = scan_words (PT, iarg); |
| 360 | if (!farend) | 360 | if (!farend) |
diff --git a/src/category.c b/src/category.c index 40804367528..f99a300f7b0 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -63,7 +63,7 @@ those categories. */) | |||
| 63 | Lisp_Object val; | 63 | Lisp_Object val; |
| 64 | int len; | 64 | int len; |
| 65 | 65 | ||
| 66 | CHECK_STRING (categories, 0); | 66 | CHECK_STRING (categories); |
| 67 | val = MAKE_CATEGORY_SET; | 67 | val = MAKE_CATEGORY_SET; |
| 68 | 68 | ||
| 69 | if (STRING_MULTIBYTE (categories)) | 69 | if (STRING_MULTIBYTE (categories)) |
| @@ -75,7 +75,7 @@ those categories. */) | |||
| 75 | Lisp_Object category; | 75 | Lisp_Object category; |
| 76 | 76 | ||
| 77 | XSETFASTINT (category, XSTRING (categories)->data[len]); | 77 | XSETFASTINT (category, XSTRING (categories)->data[len]); |
| 78 | CHECK_CATEGORY (category, 0); | 78 | CHECK_CATEGORY (category); |
| 79 | SET_CATEGORY_SET (val, category, Qt); | 79 | SET_CATEGORY_SET (val, category, Qt); |
| 80 | } | 80 | } |
| 81 | return val; | 81 | return val; |
| @@ -95,8 +95,8 @@ The category is defined only in category table TABLE, which defaults to | |||
| 95 | (category, docstring, table) | 95 | (category, docstring, table) |
| 96 | Lisp_Object category, docstring, table; | 96 | Lisp_Object category, docstring, table; |
| 97 | { | 97 | { |
| 98 | CHECK_CATEGORY (category, 0); | 98 | CHECK_CATEGORY (category); |
| 99 | CHECK_STRING (docstring, 1); | 99 | CHECK_STRING (docstring); |
| 100 | table = check_category_table (table); | 100 | table = check_category_table (table); |
| 101 | 101 | ||
| 102 | if (!NILP (CATEGORY_DOCSTRING (table, XFASTINT (category)))) | 102 | if (!NILP (CATEGORY_DOCSTRING (table, XFASTINT (category)))) |
| @@ -111,7 +111,7 @@ DEFUN ("category-docstring", Fcategory_docstring, Scategory_docstring, 1, 2, 0, | |||
| 111 | (category, table) | 111 | (category, table) |
| 112 | Lisp_Object category, table; | 112 | Lisp_Object category, table; |
| 113 | { | 113 | { |
| 114 | CHECK_CATEGORY (category, 0); | 114 | CHECK_CATEGORY (category); |
| 115 | table = check_category_table (table); | 115 | table = check_category_table (table); |
| 116 | 116 | ||
| 117 | return CATEGORY_DOCSTRING (table, XFASTINT (category)); | 117 | return CATEGORY_DOCSTRING (table, XFASTINT (category)); |
| @@ -285,7 +285,7 @@ DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0, | |||
| 285 | (ch) | 285 | (ch) |
| 286 | Lisp_Object ch; | 286 | Lisp_Object ch; |
| 287 | { | 287 | { |
| 288 | CHECK_NUMBER (ch, 0); | 288 | CHECK_NUMBER (ch); |
| 289 | return CATEGORY_SET (XFASTINT (ch)); | 289 | return CATEGORY_SET (XFASTINT (ch)); |
| 290 | } | 290 | } |
| 291 | 291 | ||
| @@ -301,7 +301,7 @@ The return value is a string containing those same categories. */) | |||
| 301 | int i, j; | 301 | int i, j; |
| 302 | char str[96]; | 302 | char str[96]; |
| 303 | 303 | ||
| 304 | CHECK_CATEGORY_SET (category_set, 0); | 304 | CHECK_CATEGORY_SET (category_set); |
| 305 | 305 | ||
| 306 | j = 0; | 306 | j = 0; |
| 307 | for (i = 32; i < 127; i++) | 307 | for (i = 32; i < 127; i++) |
| @@ -369,9 +369,9 @@ then delete CATEGORY from the category set instead of adding it. */) | |||
| 369 | Lisp_Object set_value; /* Actual value to be set in category sets. */ | 369 | Lisp_Object set_value; /* Actual value to be set in category sets. */ |
| 370 | Lisp_Object val, category_set; | 370 | Lisp_Object val, category_set; |
| 371 | 371 | ||
| 372 | CHECK_NUMBER (character, 0); | 372 | CHECK_NUMBER (character); |
| 373 | c = XINT (character); | 373 | c = XINT (character); |
| 374 | CHECK_CATEGORY (category, 1); | 374 | CHECK_CATEGORY (category); |
| 375 | table = check_category_table (table); | 375 | table = check_category_table (table); |
| 376 | 376 | ||
| 377 | if (NILP (CATEGORY_DOCSTRING (table, XFASTINT (category)))) | 377 | if (NILP (CATEGORY_DOCSTRING (table, XFASTINT (category)))) |
| @@ -2056,7 +2056,7 @@ programs. */) | |||
| 2056 | if (setup_ccl_program (&ccl, ccl_prog) < 0) | 2056 | if (setup_ccl_program (&ccl, ccl_prog) < 0) |
| 2057 | error ("Invalid CCL program"); | 2057 | error ("Invalid CCL program"); |
| 2058 | 2058 | ||
| 2059 | CHECK_VECTOR (reg, 1); | 2059 | CHECK_VECTOR (reg); |
| 2060 | if (XVECTOR (reg)->size != 8) | 2060 | if (XVECTOR (reg)->size != 8) |
| 2061 | error ("Length of vector REGISTERS is not 8"); | 2061 | error ("Length of vector REGISTERS is not 8"); |
| 2062 | 2062 | ||
| @@ -2114,10 +2114,10 @@ See the documentation of `define-ccl-program' for the detail of CCL program. */ | |||
| 2114 | if (setup_ccl_program (&ccl, ccl_prog) < 0) | 2114 | if (setup_ccl_program (&ccl, ccl_prog) < 0) |
| 2115 | error ("Invalid CCL program"); | 2115 | error ("Invalid CCL program"); |
| 2116 | 2116 | ||
| 2117 | CHECK_VECTOR (status, 1); | 2117 | CHECK_VECTOR (status); |
| 2118 | if (XVECTOR (status)->size != 9) | 2118 | if (XVECTOR (status)->size != 9) |
| 2119 | error ("Length of vector STATUS is not 9"); | 2119 | error ("Length of vector STATUS is not 9"); |
| 2120 | CHECK_STRING (str, 2); | 2120 | CHECK_STRING (str); |
| 2121 | 2121 | ||
| 2122 | GCPRO2 (status, str); | 2122 | GCPRO2 (status, str); |
| 2123 | 2123 | ||
| @@ -2178,11 +2178,11 @@ Return index number of the registered CCL program. */) | |||
| 2178 | int idx; | 2178 | int idx; |
| 2179 | Lisp_Object resolved; | 2179 | Lisp_Object resolved; |
| 2180 | 2180 | ||
| 2181 | CHECK_SYMBOL (name, 0); | 2181 | CHECK_SYMBOL (name); |
| 2182 | resolved = Qnil; | 2182 | resolved = Qnil; |
| 2183 | if (!NILP (ccl_prog)) | 2183 | if (!NILP (ccl_prog)) |
| 2184 | { | 2184 | { |
| 2185 | CHECK_VECTOR (ccl_prog, 1); | 2185 | CHECK_VECTOR (ccl_prog); |
| 2186 | resolved = resolve_symbol_ccl_program (ccl_prog); | 2186 | resolved = resolve_symbol_ccl_program (ccl_prog); |
| 2187 | if (NILP (resolved)) | 2187 | if (NILP (resolved)) |
| 2188 | error ("Error in CCL program"); | 2188 | error ("Error in CCL program"); |
| @@ -2261,8 +2261,8 @@ Return index number of the registered map. */) | |||
| 2261 | int i; | 2261 | int i; |
| 2262 | Lisp_Object index; | 2262 | Lisp_Object index; |
| 2263 | 2263 | ||
| 2264 | CHECK_SYMBOL (symbol, 0); | 2264 | CHECK_SYMBOL (symbol); |
| 2265 | CHECK_VECTOR (map, 1); | 2265 | CHECK_VECTOR (map); |
| 2266 | 2266 | ||
| 2267 | for (i = 0; i < len; i++) | 2267 | for (i = 0; i < len; i++) |
| 2268 | { | 2268 | { |
diff --git a/src/charset.c b/src/charset.c index 445ecbd1296..b691cc9da65 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -667,9 +667,9 @@ DESCRIPTION (string) is the description string of the charset. */) | |||
| 667 | Lisp_Object *vec; | 667 | Lisp_Object *vec; |
| 668 | 668 | ||
| 669 | if (!NILP (charset_id)) | 669 | if (!NILP (charset_id)) |
| 670 | CHECK_NUMBER (charset_id, 0); | 670 | CHECK_NUMBER (charset_id); |
| 671 | CHECK_SYMBOL (charset_symbol, 1); | 671 | CHECK_SYMBOL (charset_symbol); |
| 672 | CHECK_VECTOR (info_vector, 2); | 672 | CHECK_VECTOR (info_vector); |
| 673 | 673 | ||
| 674 | if (! NILP (charset_id)) | 674 | if (! NILP (charset_id)) |
| 675 | { | 675 | { |
| @@ -734,8 +734,8 @@ return nil. */) | |||
| 734 | { | 734 | { |
| 735 | int final_char; | 735 | int final_char; |
| 736 | 736 | ||
| 737 | CHECK_NUMBER (dimension, 0); | 737 | CHECK_NUMBER (dimension); |
| 738 | CHECK_NUMBER (chars, 1); | 738 | CHECK_NUMBER (chars); |
| 739 | if (XINT (dimension) != 1 && XINT (dimension) != 2) | 739 | if (XINT (dimension) != 1 && XINT (dimension) != 2) |
| 740 | error ("Invalid charset dimension %d, it should be 1 or 2", | 740 | error ("Invalid charset dimension %d, it should be 1 or 2", |
| 741 | XINT (dimension)); | 741 | XINT (dimension)); |
| @@ -759,10 +759,10 @@ CHARSET should be defined by `defined-charset' in advance. */) | |||
| 759 | { | 759 | { |
| 760 | int charset; | 760 | int charset; |
| 761 | 761 | ||
| 762 | CHECK_NUMBER (dimension, 0); | 762 | CHECK_NUMBER (dimension); |
| 763 | CHECK_NUMBER (chars, 1); | 763 | CHECK_NUMBER (chars); |
| 764 | CHECK_NUMBER (final_char, 2); | 764 | CHECK_NUMBER (final_char); |
| 765 | CHECK_SYMBOL (charset_symbol, 3); | 765 | CHECK_SYMBOL (charset_symbol); |
| 766 | 766 | ||
| 767 | if (XINT (dimension) != 1 && XINT (dimension) != 2) | 767 | if (XINT (dimension) != 1 && XINT (dimension) != 2) |
| 768 | error ("Invalid DIMENSION %d, it should be 1 or 2", XINT (dimension)); | 768 | error ("Invalid DIMENSION %d, it should be 1 or 2", XINT (dimension)); |
| @@ -932,7 +932,7 @@ only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) | |||
| 932 | int i; | 932 | int i; |
| 933 | Lisp_Object val; | 933 | Lisp_Object val; |
| 934 | 934 | ||
| 935 | CHECK_STRING (str, 0); | 935 | CHECK_STRING (str); |
| 936 | 936 | ||
| 937 | bzero (charsets, (MAX_CHARSET + 1) * sizeof (int)); | 937 | bzero (charsets, (MAX_CHARSET + 1) * sizeof (int)); |
| 938 | find_charset_in_text (XSTRING (str)->data, XSTRING (str)->size, | 938 | find_charset_in_text (XSTRING (str)->data, XSTRING (str)->size, |
| @@ -958,7 +958,7 @@ Internal use only. */) | |||
| 958 | { | 958 | { |
| 959 | int charset_id, c1, c2; | 959 | int charset_id, c1, c2; |
| 960 | 960 | ||
| 961 | CHECK_NUMBER (charset, 0); | 961 | CHECK_NUMBER (charset); |
| 962 | charset_id = XINT (charset); | 962 | charset_id = XINT (charset); |
| 963 | if (!CHARSET_DEFINED_P (charset_id)) | 963 | if (!CHARSET_DEFINED_P (charset_id)) |
| 964 | error ("Invalid charset ID: %d", XINT (charset)); | 964 | error ("Invalid charset ID: %d", XINT (charset)); |
| @@ -967,14 +967,14 @@ Internal use only. */) | |||
| 967 | c1 = 0; | 967 | c1 = 0; |
| 968 | else | 968 | else |
| 969 | { | 969 | { |
| 970 | CHECK_NUMBER (code1, 1); | 970 | CHECK_NUMBER (code1); |
| 971 | c1 = XINT (code1); | 971 | c1 = XINT (code1); |
| 972 | } | 972 | } |
| 973 | if (NILP (code2)) | 973 | if (NILP (code2)) |
| 974 | c2 = 0; | 974 | c2 = 0; |
| 975 | else | 975 | else |
| 976 | { | 976 | { |
| 977 | CHECK_NUMBER (code2, 2); | 977 | CHECK_NUMBER (code2); |
| 978 | c2 = XINT (code2); | 978 | c2 = XINT (code2); |
| 979 | } | 979 | } |
| 980 | 980 | ||
| @@ -1025,7 +1025,7 @@ return a list of symbol `unknown' and CHAR. */) | |||
| 1025 | { | 1025 | { |
| 1026 | int c, charset, c1, c2; | 1026 | int c, charset, c1, c2; |
| 1027 | 1027 | ||
| 1028 | CHECK_NUMBER (ch, 0); | 1028 | CHECK_NUMBER (ch); |
| 1029 | c = XFASTINT (ch); | 1029 | c = XFASTINT (ch); |
| 1030 | if (!CHAR_VALID_P (c, 1)) | 1030 | if (!CHAR_VALID_P (c, 1)) |
| 1031 | return Fcons (Qunknown, Fcons (ch, Qnil)); | 1031 | return Fcons (Qunknown, Fcons (ch, Qnil)); |
| @@ -1041,7 +1041,7 @@ DEFUN ("char-charset", Fchar_charset, Schar_charset, 1, 1, 0, | |||
| 1041 | (ch) | 1041 | (ch) |
| 1042 | Lisp_Object ch; | 1042 | Lisp_Object ch; |
| 1043 | { | 1043 | { |
| 1044 | CHECK_NUMBER (ch, 0); | 1044 | CHECK_NUMBER (ch); |
| 1045 | 1045 | ||
| 1046 | return CHARSET_SYMBOL (CHAR_CHARSET (XINT (ch))); | 1046 | return CHARSET_SYMBOL (CHAR_CHARSET (XINT (ch))); |
| 1047 | } | 1047 | } |
| @@ -1076,9 +1076,9 @@ DIMENSION, CHARS, and FINAL-CHAR. */) | |||
| 1076 | { | 1076 | { |
| 1077 | int charset; | 1077 | int charset; |
| 1078 | 1078 | ||
| 1079 | CHECK_NUMBER (dimension, 0); | 1079 | CHECK_NUMBER (dimension); |
| 1080 | CHECK_NUMBER (chars, 1); | 1080 | CHECK_NUMBER (chars); |
| 1081 | CHECK_NUMBER (final_char, 2); | 1081 | CHECK_NUMBER (final_char); |
| 1082 | 1082 | ||
| 1083 | if ((charset = ISO_CHARSET_TABLE (dimension, chars, final_char)) < 0) | 1083 | if ((charset = ISO_CHARSET_TABLE (dimension, chars, final_char)) < 0) |
| 1084 | return Qnil; | 1084 | return Qnil; |
| @@ -1137,7 +1137,7 @@ The conversion is done based on `nonascii-translation-table' (which see) | |||
| 1137 | { | 1137 | { |
| 1138 | int c; | 1138 | int c; |
| 1139 | 1139 | ||
| 1140 | CHECK_NUMBER (ch, 0); | 1140 | CHECK_NUMBER (ch); |
| 1141 | c = XINT (ch); | 1141 | c = XINT (ch); |
| 1142 | if (c < 0 || c >= 0400) | 1142 | if (c < 0 || c >= 0400) |
| 1143 | error ("Invalid unibyte character: %d", c); | 1143 | error ("Invalid unibyte character: %d", c); |
| @@ -1157,7 +1157,7 @@ The conversion is done based on `nonascii-translation-table' (which see) | |||
| 1157 | { | 1157 | { |
| 1158 | int c; | 1158 | int c; |
| 1159 | 1159 | ||
| 1160 | CHECK_NUMBER (ch, 0); | 1160 | CHECK_NUMBER (ch); |
| 1161 | c = XINT (ch); | 1161 | c = XINT (ch); |
| 1162 | if (! CHAR_VALID_P (c, 0)) | 1162 | if (! CHAR_VALID_P (c, 0)) |
| 1163 | error ("Invalid multibyte character: %d", c); | 1163 | error ("Invalid multibyte character: %d", c); |
| @@ -1173,7 +1173,7 @@ This is now an obsolete function. We keep it just for backward compatibility. | |||
| 1173 | (ch) | 1173 | (ch) |
| 1174 | Lisp_Object ch; | 1174 | Lisp_Object ch; |
| 1175 | { | 1175 | { |
| 1176 | CHECK_NUMBER (ch, 0); | 1176 | CHECK_NUMBER (ch); |
| 1177 | return make_number (1); | 1177 | return make_number (1); |
| 1178 | } | 1178 | } |
| 1179 | 1179 | ||
| @@ -1223,7 +1223,7 @@ Tab is taken to occupy `tab-width' columns. */) | |||
| 1223 | int c; | 1223 | int c; |
| 1224 | struct Lisp_Char_Table *dp = buffer_display_table (); | 1224 | struct Lisp_Char_Table *dp = buffer_display_table (); |
| 1225 | 1225 | ||
| 1226 | CHECK_NUMBER (ch, 0); | 1226 | CHECK_NUMBER (ch); |
| 1227 | 1227 | ||
| 1228 | c = XINT (ch); | 1228 | c = XINT (ch); |
| 1229 | 1229 | ||
| @@ -1401,7 +1401,7 @@ taken to occupy `tab-width' columns. */) | |||
| 1401 | { | 1401 | { |
| 1402 | Lisp_Object val; | 1402 | Lisp_Object val; |
| 1403 | 1403 | ||
| 1404 | CHECK_STRING (str, 0); | 1404 | CHECK_STRING (str); |
| 1405 | XSETFASTINT (val, lisp_string_width (str, -1, NULL, NULL)); | 1405 | XSETFASTINT (val, lisp_string_width (str, -1, NULL, NULL)); |
| 1406 | return val; | 1406 | return val; |
| 1407 | } | 1407 | } |
| @@ -1414,7 +1414,7 @@ The returned value is 0 for left-to-right and 1 for right-to-left. */) | |||
| 1414 | { | 1414 | { |
| 1415 | int charset; | 1415 | int charset; |
| 1416 | 1416 | ||
| 1417 | CHECK_NUMBER (ch, 0); | 1417 | CHECK_NUMBER (ch); |
| 1418 | charset = CHAR_CHARSET (XFASTINT (ch)); | 1418 | charset = CHAR_CHARSET (XFASTINT (ch)); |
| 1419 | if (!CHARSET_DEFINED_P (charset)) | 1419 | if (!CHARSET_DEFINED_P (charset)) |
| 1420 | invalid_character (XINT (ch)); | 1420 | invalid_character (XINT (ch)); |
| @@ -1428,8 +1428,8 @@ DEFUN ("chars-in-region", Fchars_in_region, Schars_in_region, 2, 2, 0, | |||
| 1428 | { | 1428 | { |
| 1429 | int from, to; | 1429 | int from, to; |
| 1430 | 1430 | ||
| 1431 | CHECK_NUMBER_COERCE_MARKER (beg, 0); | 1431 | CHECK_NUMBER_COERCE_MARKER (beg); |
| 1432 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 1432 | CHECK_NUMBER_COERCE_MARKER (end); |
| 1433 | 1433 | ||
| 1434 | from = min (XFASTINT (beg), XFASTINT (end)); | 1434 | from = min (XFASTINT (beg), XFASTINT (end)); |
| 1435 | to = max (XFASTINT (beg), XFASTINT (end)); | 1435 | to = max (XFASTINT (beg), XFASTINT (end)); |
| @@ -1643,7 +1643,7 @@ usage: (string &rest CHARACTERS) */) | |||
| 1643 | 1643 | ||
| 1644 | for (i = 0; i < n; i++) | 1644 | for (i = 0; i < n; i++) |
| 1645 | { | 1645 | { |
| 1646 | CHECK_NUMBER (args[i], 0); | 1646 | CHECK_NUMBER (args[i]); |
| 1647 | if (!multibyte && !SINGLE_BYTE_CHAR_P (XFASTINT (args[i]))) | 1647 | if (!multibyte && !SINGLE_BYTE_CHAR_P (XFASTINT (args[i]))) |
| 1648 | multibyte = 1; | 1648 | multibyte = 1; |
| 1649 | } | 1649 | } |
diff --git a/src/cmds.c b/src/cmds.c index 791b410eb5b..36e1c8944ef 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -48,7 +48,7 @@ DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, | |||
| 48 | (n) | 48 | (n) |
| 49 | Lisp_Object n; | 49 | Lisp_Object n; |
| 50 | { | 50 | { |
| 51 | CHECK_NUMBER (n, 0); | 51 | CHECK_NUMBER (n); |
| 52 | 52 | ||
| 53 | return make_number (PT + XINT (n)); | 53 | return make_number (PT + XINT (n)); |
| 54 | } | 54 | } |
| @@ -62,7 +62,7 @@ On reaching end of buffer, stop and signal error.") | |||
| 62 | if (NILP (n)) | 62 | if (NILP (n)) |
| 63 | XSETFASTINT (n, 1); | 63 | XSETFASTINT (n, 1); |
| 64 | else | 64 | else |
| 65 | CHECK_NUMBER (n, 0); | 65 | CHECK_NUMBER (n); |
| 66 | 66 | ||
| 67 | /* This used to just set point to point + XINT (n), and then check | 67 | /* This used to just set point to point + XINT (n), and then check |
| 68 | to see if it was within boundaries. But now that SET_PT can | 68 | to see if it was within boundaries. But now that SET_PT can |
| @@ -98,7 +98,7 @@ On attempt to pass beginning or end of buffer, stop and signal error.") | |||
| 98 | if (NILP (n)) | 98 | if (NILP (n)) |
| 99 | XSETFASTINT (n, 1); | 99 | XSETFASTINT (n, 1); |
| 100 | else | 100 | else |
| 101 | CHECK_NUMBER (n, 0); | 101 | CHECK_NUMBER (n); |
| 102 | 102 | ||
| 103 | XSETINT (n, - XINT (n)); | 103 | XSETINT (n, - XINT (n)); |
| 104 | return Fforward_char (n); | 104 | return Fforward_char (n); |
| @@ -123,7 +123,7 @@ With positive N, a non-empty line at the end counts as one line\n\ | |||
| 123 | count = 1; | 123 | count = 1; |
| 124 | else | 124 | else |
| 125 | { | 125 | { |
| 126 | CHECK_NUMBER (n, 0); | 126 | CHECK_NUMBER (n); |
| 127 | count = XINT (n); | 127 | count = XINT (n); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| @@ -168,7 +168,7 @@ boundaries. */) | |||
| 168 | if (NILP (n)) | 168 | if (NILP (n)) |
| 169 | XSETFASTINT (n, 1); | 169 | XSETFASTINT (n, 1); |
| 170 | else | 170 | else |
| 171 | CHECK_NUMBER (n, 0); | 171 | CHECK_NUMBER (n); |
| 172 | 172 | ||
| 173 | SET_PT (XINT (Fline_beginning_position (n))); | 173 | SET_PT (XINT (Fline_beginning_position (n))); |
| 174 | 174 | ||
| @@ -190,7 +190,7 @@ boundaries bind `inhibit-field-text-motion' to t. */) | |||
| 190 | if (NILP (n)) | 190 | if (NILP (n)) |
| 191 | XSETFASTINT (n, 1); | 191 | XSETFASTINT (n, 1); |
| 192 | else | 192 | else |
| 193 | CHECK_NUMBER (n, 0); | 193 | CHECK_NUMBER (n); |
| 194 | 194 | ||
| 195 | SET_PT (XINT (Fline_end_position (n))); | 195 | SET_PT (XINT (Fline_end_position (n))); |
| 196 | 196 | ||
| @@ -207,7 +207,7 @@ N was explicitly specified.") | |||
| 207 | { | 207 | { |
| 208 | int pos; | 208 | int pos; |
| 209 | 209 | ||
| 210 | CHECK_NUMBER (n, 0); | 210 | CHECK_NUMBER (n); |
| 211 | 211 | ||
| 212 | pos = PT + XINT (n); | 212 | pos = PT + XINT (n); |
| 213 | if (NILP (killflag)) | 213 | if (NILP (killflag)) |
| @@ -247,7 +247,7 @@ N was explicitly specified.") | |||
| 247 | int deleted_special = 0; | 247 | int deleted_special = 0; |
| 248 | int pos, pos_byte, i; | 248 | int pos, pos_byte, i; |
| 249 | 249 | ||
| 250 | CHECK_NUMBER (n, 0); | 250 | CHECK_NUMBER (n); |
| 251 | 251 | ||
| 252 | /* See if we are about to delete a tab or newline backwards. */ | 252 | /* See if we are about to delete a tab or newline backwards. */ |
| 253 | pos = PT; | 253 | pos = PT; |
| @@ -294,7 +294,7 @@ Whichever character you type to run this command is inserted.") | |||
| 294 | { | 294 | { |
| 295 | int character = XINT (last_command_char); | 295 | int character = XINT (last_command_char); |
| 296 | 296 | ||
| 297 | CHECK_NUMBER (n, 0); | 297 | CHECK_NUMBER (n); |
| 298 | 298 | ||
| 299 | /* Barf if the key that invoked this was not a character. */ | 299 | /* Barf if the key that invoked this was not a character. */ |
| 300 | if (!INTEGERP (last_command_char)) | 300 | if (!INTEGERP (last_command_char)) |
diff --git a/src/coding.c b/src/coding.c index 78ba80c35ee..e94a65006cc 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5741,7 +5741,7 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) | |||
| 5741 | inhibit_pre_post_conversion = 0; | 5741 | inhibit_pre_post_conversion = 0; |
| 5742 | /* Discard the unwind protect. */ | 5742 | /* Discard the unwind protect. */ |
| 5743 | specpdl_ptr--; | 5743 | specpdl_ptr--; |
| 5744 | CHECK_NUMBER (val, 0); | 5744 | CHECK_NUMBER (val); |
| 5745 | inserted += Z - prev_Z; | 5745 | inserted += Z - prev_Z; |
| 5746 | } | 5746 | } |
| 5747 | 5747 | ||
| @@ -6148,7 +6148,7 @@ The value of property should be a vector of length 5.") | |||
| 6148 | (coding_system) | 6148 | (coding_system) |
| 6149 | Lisp_Object coding_system; | 6149 | Lisp_Object coding_system; |
| 6150 | { | 6150 | { |
| 6151 | CHECK_SYMBOL (coding_system, 0); | 6151 | CHECK_SYMBOL (coding_system); |
| 6152 | if (!NILP (Fcoding_system_p (coding_system))) | 6152 | if (!NILP (Fcoding_system_p (coding_system))) |
| 6153 | return coding_system; | 6153 | return coding_system; |
| 6154 | while (1) | 6154 | while (1) |
| @@ -6236,8 +6236,8 @@ highest priority.") | |||
| 6236 | int from_byte, to_byte; | 6236 | int from_byte, to_byte; |
| 6237 | int include_anchor_byte = 0; | 6237 | int include_anchor_byte = 0; |
| 6238 | 6238 | ||
| 6239 | CHECK_NUMBER_COERCE_MARKER (start, 0); | 6239 | CHECK_NUMBER_COERCE_MARKER (start); |
| 6240 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 6240 | CHECK_NUMBER_COERCE_MARKER (end); |
| 6241 | 6241 | ||
| 6242 | validate_region (&start, &end); | 6242 | validate_region (&start, &end); |
| 6243 | from = XINT (start), to = XINT (end); | 6243 | from = XINT (start), to = XINT (end); |
| @@ -6276,7 +6276,7 @@ highest priority.") | |||
| 6276 | (string, highest) | 6276 | (string, highest) |
| 6277 | Lisp_Object string, highest; | 6277 | Lisp_Object string, highest; |
| 6278 | { | 6278 | { |
| 6279 | CHECK_STRING (string, 0); | 6279 | CHECK_STRING (string); |
| 6280 | 6280 | ||
| 6281 | return detect_coding_system (XSTRING (string)->data, | 6281 | return detect_coding_system (XSTRING (string)->data, |
| 6282 | /* "+ 1" is to include the anchor byte | 6282 | /* "+ 1" is to include the anchor byte |
| @@ -6386,8 +6386,8 @@ DEFUN ("find-coding-systems-region-internal", | |||
| 6386 | { | 6386 | { |
| 6387 | int from, to, stop; | 6387 | int from, to, stop; |
| 6388 | 6388 | ||
| 6389 | CHECK_NUMBER_COERCE_MARKER (start, 0); | 6389 | CHECK_NUMBER_COERCE_MARKER (start); |
| 6390 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 6390 | CHECK_NUMBER_COERCE_MARKER (end); |
| 6391 | if (XINT (start) < BEG || XINT (end) > Z || XINT (start) > XINT (end)) | 6391 | if (XINT (start) < BEG || XINT (end) > Z || XINT (start) > XINT (end)) |
| 6392 | args_out_of_range (start, end); | 6392 | args_out_of_range (start, end); |
| 6393 | if (NILP (current_buffer->enable_multibyte_characters)) | 6393 | if (NILP (current_buffer->enable_multibyte_characters)) |
| @@ -6453,9 +6453,9 @@ code_convert_region1 (start, end, coding_system, encodep) | |||
| 6453 | struct coding_system coding; | 6453 | struct coding_system coding; |
| 6454 | int from, to; | 6454 | int from, to; |
| 6455 | 6455 | ||
| 6456 | CHECK_NUMBER_COERCE_MARKER (start, 0); | 6456 | CHECK_NUMBER_COERCE_MARKER (start); |
| 6457 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 6457 | CHECK_NUMBER_COERCE_MARKER (end); |
| 6458 | CHECK_SYMBOL (coding_system, 2); | 6458 | CHECK_SYMBOL (coding_system); |
| 6459 | 6459 | ||
| 6460 | validate_region (&start, &end); | 6460 | validate_region (&start, &end); |
| 6461 | from = XFASTINT (start); | 6461 | from = XFASTINT (start); |
| @@ -6513,8 +6513,8 @@ code_convert_string1 (string, coding_system, nocopy, encodep) | |||
| 6513 | { | 6513 | { |
| 6514 | struct coding_system coding; | 6514 | struct coding_system coding; |
| 6515 | 6515 | ||
| 6516 | CHECK_STRING (string, 0); | 6516 | CHECK_STRING (string); |
| 6517 | CHECK_SYMBOL (coding_system, 1); | 6517 | CHECK_SYMBOL (coding_system); |
| 6518 | 6518 | ||
| 6519 | if (NILP (coding_system)) | 6519 | if (NILP (coding_system)) |
| 6520 | return (NILP (nocopy) ? Fcopy_sequence (string) : string); | 6520 | return (NILP (nocopy) ? Fcopy_sequence (string) : string); |
| @@ -6572,8 +6572,8 @@ code_convert_string_norecord (string, coding_system, encodep) | |||
| 6572 | { | 6572 | { |
| 6573 | struct coding_system coding; | 6573 | struct coding_system coding; |
| 6574 | 6574 | ||
| 6575 | CHECK_STRING (string, 0); | 6575 | CHECK_STRING (string); |
| 6576 | CHECK_SYMBOL (coding_system, 1); | 6576 | CHECK_SYMBOL (coding_system); |
| 6577 | 6577 | ||
| 6578 | if (NILP (coding_system)) | 6578 | if (NILP (coding_system)) |
| 6579 | return string; | 6579 | return string; |
| @@ -6597,7 +6597,7 @@ Return the corresponding character.") | |||
| 6597 | unsigned char c1, c2, s1, s2; | 6597 | unsigned char c1, c2, s1, s2; |
| 6598 | Lisp_Object val; | 6598 | Lisp_Object val; |
| 6599 | 6599 | ||
| 6600 | CHECK_NUMBER (code, 0); | 6600 | CHECK_NUMBER (code); |
| 6601 | s1 = (XFASTINT (code)) >> 8, s2 = (XFASTINT (code)) & 0xFF; | 6601 | s1 = (XFASTINT (code)) >> 8, s2 = (XFASTINT (code)) & 0xFF; |
| 6602 | if (s1 == 0) | 6602 | if (s1 == 0) |
| 6603 | { | 6603 | { |
| @@ -6628,7 +6628,7 @@ Return the corresponding code in SJIS.") | |||
| 6628 | int charset, c1, c2, s1, s2; | 6628 | int charset, c1, c2, s1, s2; |
| 6629 | Lisp_Object val; | 6629 | Lisp_Object val; |
| 6630 | 6630 | ||
| 6631 | CHECK_NUMBER (ch, 0); | 6631 | CHECK_NUMBER (ch); |
| 6632 | SPLIT_CHAR (XFASTINT (ch), charset, c1, c2); | 6632 | SPLIT_CHAR (XFASTINT (ch), charset, c1, c2); |
| 6633 | if (charset == CHARSET_ASCII) | 6633 | if (charset == CHARSET_ASCII) |
| 6634 | { | 6634 | { |
| @@ -6660,7 +6660,7 @@ Return the corresponding character.") | |||
| 6660 | unsigned char b1, b2, c1, c2; | 6660 | unsigned char b1, b2, c1, c2; |
| 6661 | Lisp_Object val; | 6661 | Lisp_Object val; |
| 6662 | 6662 | ||
| 6663 | CHECK_NUMBER (code, 0); | 6663 | CHECK_NUMBER (code); |
| 6664 | b1 = (XFASTINT (code)) >> 8, b2 = (XFASTINT (code)) & 0xFF; | 6664 | b1 = (XFASTINT (code)) >> 8, b2 = (XFASTINT (code)) & 0xFF; |
| 6665 | if (b1 == 0) | 6665 | if (b1 == 0) |
| 6666 | { | 6666 | { |
| @@ -6688,7 +6688,7 @@ Return the corresponding character code in Big5.") | |||
| 6688 | int charset, c1, c2, b1, b2; | 6688 | int charset, c1, c2, b1, b2; |
| 6689 | Lisp_Object val; | 6689 | Lisp_Object val; |
| 6690 | 6690 | ||
| 6691 | CHECK_NUMBER (ch, 0); | 6691 | CHECK_NUMBER (ch); |
| 6692 | SPLIT_CHAR (XFASTINT (ch), charset, c1, c2); | 6692 | SPLIT_CHAR (XFASTINT (ch), charset, c1, c2); |
| 6693 | if (charset == CHARSET_ASCII) | 6693 | if (charset == CHARSET_ASCII) |
| 6694 | { | 6694 | { |
| @@ -6713,7 +6713,7 @@ DEFUN ("set-terminal-coding-system-internal", | |||
| 6713 | (coding_system) | 6713 | (coding_system) |
| 6714 | Lisp_Object coding_system; | 6714 | Lisp_Object coding_system; |
| 6715 | { | 6715 | { |
| 6716 | CHECK_SYMBOL (coding_system, 0); | 6716 | CHECK_SYMBOL (coding_system); |
| 6717 | setup_coding_system (Fcheck_coding_system (coding_system), &terminal_coding); | 6717 | setup_coding_system (Fcheck_coding_system (coding_system), &terminal_coding); |
| 6718 | /* We had better not send unsafe characters to terminal. */ | 6718 | /* We had better not send unsafe characters to terminal. */ |
| 6719 | terminal_coding.flags |= CODING_FLAG_ISO_SAFE; | 6719 | terminal_coding.flags |= CODING_FLAG_ISO_SAFE; |
| @@ -6732,7 +6732,7 @@ DEFUN ("set-safe-terminal-coding-system-internal", | |||
| 6732 | (coding_system) | 6732 | (coding_system) |
| 6733 | Lisp_Object coding_system; | 6733 | Lisp_Object coding_system; |
| 6734 | { | 6734 | { |
| 6735 | CHECK_SYMBOL (coding_system, 0); | 6735 | CHECK_SYMBOL (coding_system); |
| 6736 | setup_coding_system (Fcheck_coding_system (coding_system), | 6736 | setup_coding_system (Fcheck_coding_system (coding_system), |
| 6737 | &safe_terminal_coding); | 6737 | &safe_terminal_coding); |
| 6738 | /* Character composition should be disabled. */ | 6738 | /* Character composition should be disabled. */ |
| @@ -6758,7 +6758,7 @@ DEFUN ("set-keyboard-coding-system-internal", | |||
| 6758 | (coding_system) | 6758 | (coding_system) |
| 6759 | Lisp_Object coding_system; | 6759 | Lisp_Object coding_system; |
| 6760 | { | 6760 | { |
| 6761 | CHECK_SYMBOL (coding_system, 0); | 6761 | CHECK_SYMBOL (coding_system); |
| 6762 | setup_coding_system (Fcheck_coding_system (coding_system), &keyboard_coding); | 6762 | setup_coding_system (Fcheck_coding_system (coding_system), &keyboard_coding); |
| 6763 | /* Character composition should be disabled. */ | 6763 | /* Character composition should be disabled. */ |
| 6764 | keyboard_coding.composing = COMPOSITION_DISABLED; | 6764 | keyboard_coding.composing = COMPOSITION_DISABLED; |
diff --git a/src/composite.c b/src/composite.c index ff6d1a5ba34..1c67a2ca107 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -730,7 +730,7 @@ for the composition. See `compose-region' for more detial.") | |||
| 730 | && !INTEGERP (components) | 730 | && !INTEGERP (components) |
| 731 | && !CONSP (components) | 731 | && !CONSP (components) |
| 732 | && !STRINGP (components)) | 732 | && !STRINGP (components)) |
| 733 | CHECK_VECTOR (components, 2); | 733 | CHECK_VECTOR (components); |
| 734 | 734 | ||
| 735 | compose_text (XINT (start), XINT (end), components, mod_func, Qnil); | 735 | compose_text (XINT (start), XINT (end), components, mod_func, Qnil); |
| 736 | return Qnil; | 736 | return Qnil; |
| @@ -746,9 +746,9 @@ for the composition. See `compose-string' for more detial.") | |||
| 746 | (string, start, end, components, mod_func) | 746 | (string, start, end, components, mod_func) |
| 747 | Lisp_Object string, start, end, components, mod_func; | 747 | Lisp_Object string, start, end, components, mod_func; |
| 748 | { | 748 | { |
| 749 | CHECK_STRING (string, 0); | 749 | CHECK_STRING (string); |
| 750 | CHECK_NUMBER (start, 1); | 750 | CHECK_NUMBER (start); |
| 751 | CHECK_NUMBER (end, 2); | 751 | CHECK_NUMBER (end); |
| 752 | 752 | ||
| 753 | if (XINT (start) < 0 || | 753 | if (XINT (start) < 0 || |
| 754 | XINT (start) > XINT (end) | 754 | XINT (start) > XINT (end) |
| @@ -772,11 +772,11 @@ See `find-composition' for more detail.") | |||
| 772 | int start, end; | 772 | int start, end; |
| 773 | int id; | 773 | int id; |
| 774 | 774 | ||
| 775 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 775 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 776 | start = XINT (pos); | 776 | start = XINT (pos); |
| 777 | if (!NILP (limit)) | 777 | if (!NILP (limit)) |
| 778 | { | 778 | { |
| 779 | CHECK_NUMBER_COERCE_MARKER (limit, 1); | 779 | CHECK_NUMBER_COERCE_MARKER (limit); |
| 780 | end = XINT (limit); | 780 | end = XINT (limit); |
| 781 | } | 781 | } |
| 782 | else | 782 | else |
| @@ -784,7 +784,7 @@ See `find-composition' for more detail.") | |||
| 784 | 784 | ||
| 785 | if (!NILP (string)) | 785 | if (!NILP (string)) |
| 786 | { | 786 | { |
| 787 | CHECK_STRING (string, 2); | 787 | CHECK_STRING (string); |
| 788 | if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size) | 788 | if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size) |
| 789 | args_out_of_range (string, pos); | 789 | args_out_of_range (string, pos); |
| 790 | } | 790 | } |
diff --git a/src/data.c b/src/data.c index cf916141d35..b130129967f 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -616,7 +616,7 @@ DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0, | |||
| 616 | register Lisp_Object symbol; | 616 | register Lisp_Object symbol; |
| 617 | { | 617 | { |
| 618 | Lisp_Object valcontents; | 618 | Lisp_Object valcontents; |
| 619 | CHECK_SYMBOL (symbol, 0); | 619 | CHECK_SYMBOL (symbol); |
| 620 | 620 | ||
| 621 | valcontents = SYMBOL_VALUE (symbol); | 621 | valcontents = SYMBOL_VALUE (symbol); |
| 622 | 622 | ||
| @@ -632,7 +632,7 @@ DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, | |||
| 632 | (symbol) | 632 | (symbol) |
| 633 | register Lisp_Object symbol; | 633 | register Lisp_Object symbol; |
| 634 | { | 634 | { |
| 635 | CHECK_SYMBOL (symbol, 0); | 635 | CHECK_SYMBOL (symbol); |
| 636 | return (EQ (XSYMBOL (symbol)->function, Qunbound) ? Qnil : Qt); | 636 | return (EQ (XSYMBOL (symbol)->function, Qunbound) ? Qnil : Qt); |
| 637 | } | 637 | } |
| 638 | 638 | ||
| @@ -641,7 +641,7 @@ DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0, | |||
| 641 | (symbol) | 641 | (symbol) |
| 642 | register Lisp_Object symbol; | 642 | register Lisp_Object symbol; |
| 643 | { | 643 | { |
| 644 | CHECK_SYMBOL (symbol, 0); | 644 | CHECK_SYMBOL (symbol); |
| 645 | if (XSYMBOL (symbol)->constant) | 645 | if (XSYMBOL (symbol)->constant) |
| 646 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); | 646 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); |
| 647 | Fset (symbol, Qunbound); | 647 | Fset (symbol, Qunbound); |
| @@ -653,7 +653,7 @@ DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0, | |||
| 653 | (symbol) | 653 | (symbol) |
| 654 | register Lisp_Object symbol; | 654 | register Lisp_Object symbol; |
| 655 | { | 655 | { |
| 656 | CHECK_SYMBOL (symbol, 0); | 656 | CHECK_SYMBOL (symbol); |
| 657 | if (NILP (symbol) || EQ (symbol, Qt)) | 657 | if (NILP (symbol) || EQ (symbol, Qt)) |
| 658 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); | 658 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); |
| 659 | XSYMBOL (symbol)->function = Qunbound; | 659 | XSYMBOL (symbol)->function = Qunbound; |
| @@ -665,7 +665,7 @@ DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, | |||
| 665 | (symbol) | 665 | (symbol) |
| 666 | register Lisp_Object symbol; | 666 | register Lisp_Object symbol; |
| 667 | { | 667 | { |
| 668 | CHECK_SYMBOL (symbol, 0); | 668 | CHECK_SYMBOL (symbol); |
| 669 | if (EQ (XSYMBOL (symbol)->function, Qunbound)) | 669 | if (EQ (XSYMBOL (symbol)->function, Qunbound)) |
| 670 | return Fsignal (Qvoid_function, Fcons (symbol, Qnil)); | 670 | return Fsignal (Qvoid_function, Fcons (symbol, Qnil)); |
| 671 | return XSYMBOL (symbol)->function; | 671 | return XSYMBOL (symbol)->function; |
| @@ -676,7 +676,7 @@ DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0, | |||
| 676 | (symbol) | 676 | (symbol) |
| 677 | register Lisp_Object symbol; | 677 | register Lisp_Object symbol; |
| 678 | { | 678 | { |
| 679 | CHECK_SYMBOL (symbol, 0); | 679 | CHECK_SYMBOL (symbol); |
| 680 | return XSYMBOL (symbol)->plist; | 680 | return XSYMBOL (symbol)->plist; |
| 681 | } | 681 | } |
| 682 | 682 | ||
| @@ -687,7 +687,7 @@ DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0, | |||
| 687 | { | 687 | { |
| 688 | register Lisp_Object name; | 688 | register Lisp_Object name; |
| 689 | 689 | ||
| 690 | CHECK_SYMBOL (symbol, 0); | 690 | CHECK_SYMBOL (symbol); |
| 691 | XSETSTRING (name, XSYMBOL (symbol)->name); | 691 | XSETSTRING (name, XSYMBOL (symbol)->name); |
| 692 | return name; | 692 | return name; |
| 693 | } | 693 | } |
| @@ -697,7 +697,7 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | |||
| 697 | (symbol, definition) | 697 | (symbol, definition) |
| 698 | register Lisp_Object symbol, definition; | 698 | register Lisp_Object symbol, definition; |
| 699 | { | 699 | { |
| 700 | CHECK_SYMBOL (symbol, 0); | 700 | CHECK_SYMBOL (symbol); |
| 701 | if (NILP (symbol) || EQ (symbol, Qt)) | 701 | if (NILP (symbol) || EQ (symbol, Qt)) |
| 702 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); | 702 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); |
| 703 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound)) | 703 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound)) |
| @@ -729,7 +729,7 @@ DEFUN ("setplist", Fsetplist, Ssetplist, 2, 2, 0, | |||
| 729 | (symbol, newplist) | 729 | (symbol, newplist) |
| 730 | register Lisp_Object symbol, newplist; | 730 | register Lisp_Object symbol, newplist; |
| 731 | { | 731 | { |
| 732 | CHECK_SYMBOL (symbol, 0); | 732 | CHECK_SYMBOL (symbol); |
| 733 | XSYMBOL (symbol)->plist = newplist; | 733 | XSYMBOL (symbol)->plist = newplist; |
| 734 | return newplist; | 734 | return newplist; |
| 735 | } | 735 | } |
| @@ -874,7 +874,7 @@ store_symval_forwarding (symbol, valcontents, newval, buf) | |||
| 874 | switch (XMISCTYPE (valcontents)) | 874 | switch (XMISCTYPE (valcontents)) |
| 875 | { | 875 | { |
| 876 | case Lisp_Misc_Intfwd: | 876 | case Lisp_Misc_Intfwd: |
| 877 | CHECK_NUMBER (newval, 1); | 877 | CHECK_NUMBER (newval); |
| 878 | *XINTFWD (valcontents)->intvar = XINT (newval); | 878 | *XINTFWD (valcontents)->intvar = XINT (newval); |
| 879 | if (*XINTFWD (valcontents)->intvar != XINT (newval)) | 879 | if (*XINTFWD (valcontents)->intvar != XINT (newval)) |
| 880 | error ("Value out of range for variable `%s'", | 880 | error ("Value out of range for variable `%s'", |
| @@ -1029,7 +1029,7 @@ find_symbol_value (symbol) | |||
| 1029 | register Lisp_Object valcontents; | 1029 | register Lisp_Object valcontents; |
| 1030 | register Lisp_Object val; | 1030 | register Lisp_Object val; |
| 1031 | 1031 | ||
| 1032 | CHECK_SYMBOL (symbol, 0); | 1032 | CHECK_SYMBOL (symbol); |
| 1033 | valcontents = SYMBOL_VALUE (symbol); | 1033 | valcontents = SYMBOL_VALUE (symbol); |
| 1034 | 1034 | ||
| 1035 | if (BUFFER_LOCAL_VALUEP (valcontents) | 1035 | if (BUFFER_LOCAL_VALUEP (valcontents) |
| @@ -1134,7 +1134,7 @@ set_internal (symbol, newval, buf, bindflag) | |||
| 1134 | if (NILP (buf->name)) | 1134 | if (NILP (buf->name)) |
| 1135 | return newval; | 1135 | return newval; |
| 1136 | 1136 | ||
| 1137 | CHECK_SYMBOL (symbol, 0); | 1137 | CHECK_SYMBOL (symbol); |
| 1138 | if (SYMBOL_CONSTANT_P (symbol) | 1138 | if (SYMBOL_CONSTANT_P (symbol) |
| 1139 | && (NILP (Fkeywordp (symbol)) | 1139 | && (NILP (Fkeywordp (symbol)) |
| 1140 | || !EQ (newval, SYMBOL_VALUE (symbol)))) | 1140 | || !EQ (newval, SYMBOL_VALUE (symbol)))) |
| @@ -1275,7 +1275,7 @@ default_value (symbol) | |||
| 1275 | { | 1275 | { |
| 1276 | register Lisp_Object valcontents; | 1276 | register Lisp_Object valcontents; |
| 1277 | 1277 | ||
| 1278 | CHECK_SYMBOL (symbol, 0); | 1278 | CHECK_SYMBOL (symbol); |
| 1279 | valcontents = SYMBOL_VALUE (symbol); | 1279 | valcontents = SYMBOL_VALUE (symbol); |
| 1280 | 1280 | ||
| 1281 | /* For a built-in buffer-local variable, get the default value | 1281 | /* For a built-in buffer-local variable, get the default value |
| @@ -1346,7 +1346,7 @@ for this variable. */) | |||
| 1346 | { | 1346 | { |
| 1347 | register Lisp_Object valcontents, current_alist_element, alist_element_buffer; | 1347 | register Lisp_Object valcontents, current_alist_element, alist_element_buffer; |
| 1348 | 1348 | ||
| 1349 | CHECK_SYMBOL (symbol, 0); | 1349 | CHECK_SYMBOL (symbol); |
| 1350 | valcontents = SYMBOL_VALUE (symbol); | 1350 | valcontents = SYMBOL_VALUE (symbol); |
| 1351 | 1351 | ||
| 1352 | /* Handle variables like case-fold-search that have special slots | 1352 | /* Handle variables like case-fold-search that have special slots |
| @@ -1448,7 +1448,7 @@ The function `default-value' gets the default value and `set-default' sets it. | |||
| 1448 | { | 1448 | { |
| 1449 | register Lisp_Object tem, valcontents, newval; | 1449 | register Lisp_Object tem, valcontents, newval; |
| 1450 | 1450 | ||
| 1451 | CHECK_SYMBOL (variable, 0); | 1451 | CHECK_SYMBOL (variable); |
| 1452 | 1452 | ||
| 1453 | valcontents = SYMBOL_VALUE (variable); | 1453 | valcontents = SYMBOL_VALUE (variable); |
| 1454 | if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents)) | 1454 | if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents)) |
| @@ -1501,7 +1501,7 @@ Instead, use `add-hook' and specify t for the LOCAL argument. */) | |||
| 1501 | { | 1501 | { |
| 1502 | register Lisp_Object tem, valcontents; | 1502 | register Lisp_Object tem, valcontents; |
| 1503 | 1503 | ||
| 1504 | CHECK_SYMBOL (variable, 0); | 1504 | CHECK_SYMBOL (variable); |
| 1505 | 1505 | ||
| 1506 | valcontents = SYMBOL_VALUE (variable); | 1506 | valcontents = SYMBOL_VALUE (variable); |
| 1507 | if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents)) | 1507 | if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents)) |
| @@ -1580,7 +1580,7 @@ From now on the default value will apply in this buffer. */) | |||
| 1580 | { | 1580 | { |
| 1581 | register Lisp_Object tem, valcontents; | 1581 | register Lisp_Object tem, valcontents; |
| 1582 | 1582 | ||
| 1583 | CHECK_SYMBOL (variable, 0); | 1583 | CHECK_SYMBOL (variable); |
| 1584 | 1584 | ||
| 1585 | valcontents = SYMBOL_VALUE (variable); | 1585 | valcontents = SYMBOL_VALUE (variable); |
| 1586 | 1586 | ||
| @@ -1643,7 +1643,7 @@ See `modify-frame-parameters'. */) | |||
| 1643 | { | 1643 | { |
| 1644 | register Lisp_Object tem, valcontents, newval; | 1644 | register Lisp_Object tem, valcontents, newval; |
| 1645 | 1645 | ||
| 1646 | CHECK_SYMBOL (variable, 0); | 1646 | CHECK_SYMBOL (variable); |
| 1647 | 1647 | ||
| 1648 | valcontents = SYMBOL_VALUE (variable); | 1648 | valcontents = SYMBOL_VALUE (variable); |
| 1649 | if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents) | 1649 | if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents) |
| @@ -1688,11 +1688,11 @@ BUFFER defaults to the current buffer. */) | |||
| 1688 | buf = current_buffer; | 1688 | buf = current_buffer; |
| 1689 | else | 1689 | else |
| 1690 | { | 1690 | { |
| 1691 | CHECK_BUFFER (buffer, 0); | 1691 | CHECK_BUFFER (buffer); |
| 1692 | buf = XBUFFER (buffer); | 1692 | buf = XBUFFER (buffer); |
| 1693 | } | 1693 | } |
| 1694 | 1694 | ||
| 1695 | CHECK_SYMBOL (variable, 0); | 1695 | CHECK_SYMBOL (variable); |
| 1696 | 1696 | ||
| 1697 | valcontents = SYMBOL_VALUE (variable); | 1697 | valcontents = SYMBOL_VALUE (variable); |
| 1698 | if (BUFFER_LOCAL_VALUEP (valcontents) | 1698 | if (BUFFER_LOCAL_VALUEP (valcontents) |
| @@ -1732,11 +1732,11 @@ BUFFER defaults to the current buffer. */) | |||
| 1732 | buf = current_buffer; | 1732 | buf = current_buffer; |
| 1733 | else | 1733 | else |
| 1734 | { | 1734 | { |
| 1735 | CHECK_BUFFER (buffer, 0); | 1735 | CHECK_BUFFER (buffer); |
| 1736 | buf = XBUFFER (buffer); | 1736 | buf = XBUFFER (buffer); |
| 1737 | } | 1737 | } |
| 1738 | 1738 | ||
| 1739 | CHECK_SYMBOL (variable, 0); | 1739 | CHECK_SYMBOL (variable); |
| 1740 | 1740 | ||
| 1741 | valcontents = SYMBOL_VALUE (variable); | 1741 | valcontents = SYMBOL_VALUE (variable); |
| 1742 | 1742 | ||
| @@ -1826,7 +1826,7 @@ or a byte-code object. IDX starts at 0. */) | |||
| 1826 | { | 1826 | { |
| 1827 | register int idxval; | 1827 | register int idxval; |
| 1828 | 1828 | ||
| 1829 | CHECK_NUMBER (idx, 1); | 1829 | CHECK_NUMBER (idx); |
| 1830 | idxval = XINT (idx); | 1830 | idxval = XINT (idx); |
| 1831 | if (STRINGP (array)) | 1831 | if (STRINGP (array)) |
| 1832 | { | 1832 | { |
| @@ -1957,7 +1957,7 @@ IDX starts at 0. */) | |||
| 1957 | { | 1957 | { |
| 1958 | register int idxval; | 1958 | register int idxval; |
| 1959 | 1959 | ||
| 1960 | CHECK_NUMBER (idx, 1); | 1960 | CHECK_NUMBER (idx); |
| 1961 | idxval = XINT (idx); | 1961 | idxval = XINT (idx); |
| 1962 | if (!VECTORP (array) && !STRINGP (array) && !BOOL_VECTOR_P (array) | 1962 | if (!VECTORP (array) && !STRINGP (array) && !BOOL_VECTOR_P (array) |
| 1963 | && ! CHAR_TABLE_P (array)) | 1963 | && ! CHAR_TABLE_P (array)) |
| @@ -2033,7 +2033,7 @@ IDX starts at 0. */) | |||
| 2033 | 2033 | ||
| 2034 | if (idxval < 0 || idxval >= XSTRING (array)->size) | 2034 | if (idxval < 0 || idxval >= XSTRING (array)->size) |
| 2035 | args_out_of_range (array, idx); | 2035 | args_out_of_range (array, idx); |
| 2036 | CHECK_NUMBER (newelt, 2); | 2036 | CHECK_NUMBER (newelt); |
| 2037 | 2037 | ||
| 2038 | idxval_byte = string_char_to_byte (array, idxval); | 2038 | idxval_byte = string_char_to_byte (array, idxval); |
| 2039 | p1 = &XSTRING (array)->data[idxval_byte]; | 2039 | p1 = &XSTRING (array)->data[idxval_byte]; |
| @@ -2067,7 +2067,7 @@ IDX starts at 0. */) | |||
| 2067 | { | 2067 | { |
| 2068 | if (idxval < 0 || idxval >= XSTRING (array)->size) | 2068 | if (idxval < 0 || idxval >= XSTRING (array)->size) |
| 2069 | args_out_of_range (array, idx); | 2069 | args_out_of_range (array, idx); |
| 2070 | CHECK_NUMBER (newelt, 2); | 2070 | CHECK_NUMBER (newelt); |
| 2071 | 2071 | ||
| 2072 | if (XINT (newelt) < 0 || SINGLE_BYTE_CHAR_P (XINT (newelt))) | 2072 | if (XINT (newelt) < 0 || SINGLE_BYTE_CHAR_P (XINT (newelt))) |
| 2073 | XSTRING (array)->data[idxval] = XINT (newelt); | 2073 | XSTRING (array)->data[idxval] = XINT (newelt); |
| @@ -2120,8 +2120,8 @@ arithcompare (num1, num2, comparison) | |||
| 2120 | double f1 = 0, f2 = 0; | 2120 | double f1 = 0, f2 = 0; |
| 2121 | int floatp = 0; | 2121 | int floatp = 0; |
| 2122 | 2122 | ||
| 2123 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (num1, 0); | 2123 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (num1); |
| 2124 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (num2, 0); | 2124 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (num2); |
| 2125 | 2125 | ||
| 2126 | if (FLOATP (num1) || FLOATP (num2)) | 2126 | if (FLOATP (num1) || FLOATP (num2)) |
| 2127 | { | 2127 | { |
| @@ -2222,7 +2222,7 @@ DEFUN ("zerop", Fzerop, Szerop, 1, 1, 0, | |||
| 2222 | (number) | 2222 | (number) |
| 2223 | register Lisp_Object number; | 2223 | register Lisp_Object number; |
| 2224 | { | 2224 | { |
| 2225 | CHECK_NUMBER_OR_FLOAT (number, 0); | 2225 | CHECK_NUMBER_OR_FLOAT (number); |
| 2226 | 2226 | ||
| 2227 | if (FLOATP (number)) | 2227 | if (FLOATP (number)) |
| 2228 | { | 2228 | { |
| @@ -2274,7 +2274,7 @@ NUMBER may be an integer or a floating point number. */) | |||
| 2274 | { | 2274 | { |
| 2275 | char buffer[VALBITS]; | 2275 | char buffer[VALBITS]; |
| 2276 | 2276 | ||
| 2277 | CHECK_NUMBER_OR_FLOAT (number, 0); | 2277 | CHECK_NUMBER_OR_FLOAT (number); |
| 2278 | 2278 | ||
| 2279 | if (FLOATP (number)) | 2279 | if (FLOATP (number)) |
| 2280 | { | 2280 | { |
| @@ -2330,13 +2330,13 @@ If the base used is not 10, floating point is not recognized. */) | |||
| 2330 | int sign = 1; | 2330 | int sign = 1; |
| 2331 | Lisp_Object val; | 2331 | Lisp_Object val; |
| 2332 | 2332 | ||
| 2333 | CHECK_STRING (string, 0); | 2333 | CHECK_STRING (string); |
| 2334 | 2334 | ||
| 2335 | if (NILP (base)) | 2335 | if (NILP (base)) |
| 2336 | b = 10; | 2336 | b = 10; |
| 2337 | else | 2337 | else |
| 2338 | { | 2338 | { |
| 2339 | CHECK_NUMBER (base, 1); | 2339 | CHECK_NUMBER (base); |
| 2340 | b = XINT (base); | 2340 | b = XINT (base); |
| 2341 | if (b < 2 || b > 16) | 2341 | if (b < 2 || b > 16) |
| 2342 | Fsignal (Qargs_out_of_range, Fcons (base, Qnil)); | 2342 | Fsignal (Qargs_out_of_range, Fcons (base, Qnil)); |
| @@ -2427,7 +2427,7 @@ arith_driver (code, nargs, args) | |||
| 2427 | { | 2427 | { |
| 2428 | /* Using args[argnum] as argument to CHECK_NUMBER_... */ | 2428 | /* Using args[argnum] as argument to CHECK_NUMBER_... */ |
| 2429 | val = args[argnum]; | 2429 | val = args[argnum]; |
| 2430 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (val, argnum); | 2430 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (val); |
| 2431 | 2431 | ||
| 2432 | if (FLOATP (val)) | 2432 | if (FLOATP (val)) |
| 2433 | return float_arith_driver ((double) accum, argnum, code, | 2433 | return float_arith_driver ((double) accum, argnum, code, |
| @@ -2496,7 +2496,7 @@ float_arith_driver (accum, argnum, code, nargs, args) | |||
| 2496 | for (; argnum < nargs; argnum++) | 2496 | for (; argnum < nargs; argnum++) |
| 2497 | { | 2497 | { |
| 2498 | val = args[argnum]; /* using args[argnum] as argument to CHECK_NUMBER_... */ | 2498 | val = args[argnum]; /* using args[argnum] as argument to CHECK_NUMBER_... */ |
| 2499 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (val, argnum); | 2499 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (val); |
| 2500 | 2500 | ||
| 2501 | if (FLOATP (val)) | 2501 | if (FLOATP (val)) |
| 2502 | { | 2502 | { |
| @@ -2598,8 +2598,8 @@ Both must be integers or markers. */) | |||
| 2598 | { | 2598 | { |
| 2599 | Lisp_Object val; | 2599 | Lisp_Object val; |
| 2600 | 2600 | ||
| 2601 | CHECK_NUMBER_COERCE_MARKER (x, 0); | 2601 | CHECK_NUMBER_COERCE_MARKER (x); |
| 2602 | CHECK_NUMBER_COERCE_MARKER (y, 1); | 2602 | CHECK_NUMBER_COERCE_MARKER (y); |
| 2603 | 2603 | ||
| 2604 | if (XFASTINT (y) == 0) | 2604 | if (XFASTINT (y) == 0) |
| 2605 | Fsignal (Qarith_error, Qnil); | 2605 | Fsignal (Qarith_error, Qnil); |
| @@ -2641,8 +2641,8 @@ Both X and Y must be numbers or markers. */) | |||
| 2641 | Lisp_Object val; | 2641 | Lisp_Object val; |
| 2642 | EMACS_INT i1, i2; | 2642 | EMACS_INT i1, i2; |
| 2643 | 2643 | ||
| 2644 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (x, 0); | 2644 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (x); |
| 2645 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (y, 1); | 2645 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (y); |
| 2646 | 2646 | ||
| 2647 | if (FLOATP (x) || FLOATP (y)) | 2647 | if (FLOATP (x) || FLOATP (y)) |
| 2648 | return fmod_float (x, y); | 2648 | return fmod_float (x, y); |
| @@ -2727,8 +2727,8 @@ In this case, the sign bit is duplicated. */) | |||
| 2727 | { | 2727 | { |
| 2728 | register Lisp_Object val; | 2728 | register Lisp_Object val; |
| 2729 | 2729 | ||
| 2730 | CHECK_NUMBER (value, 0); | 2730 | CHECK_NUMBER (value); |
| 2731 | CHECK_NUMBER (count, 1); | 2731 | CHECK_NUMBER (count); |
| 2732 | 2732 | ||
| 2733 | if (XINT (count) >= BITS_PER_EMACS_INT) | 2733 | if (XINT (count) >= BITS_PER_EMACS_INT) |
| 2734 | XSETINT (val, 0); | 2734 | XSETINT (val, 0); |
| @@ -2750,8 +2750,8 @@ In this case, zeros are shifted in on the left. */) | |||
| 2750 | { | 2750 | { |
| 2751 | register Lisp_Object val; | 2751 | register Lisp_Object val; |
| 2752 | 2752 | ||
| 2753 | CHECK_NUMBER (value, 0); | 2753 | CHECK_NUMBER (value); |
| 2754 | CHECK_NUMBER (count, 1); | 2754 | CHECK_NUMBER (count); |
| 2755 | 2755 | ||
| 2756 | if (XINT (count) >= BITS_PER_EMACS_INT) | 2756 | if (XINT (count) >= BITS_PER_EMACS_INT) |
| 2757 | XSETINT (val, 0); | 2757 | XSETINT (val, 0); |
| @@ -2770,7 +2770,7 @@ Markers are converted to integers. */) | |||
| 2770 | (number) | 2770 | (number) |
| 2771 | register Lisp_Object number; | 2771 | register Lisp_Object number; |
| 2772 | { | 2772 | { |
| 2773 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number, 0); | 2773 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number); |
| 2774 | 2774 | ||
| 2775 | if (FLOATP (number)) | 2775 | if (FLOATP (number)) |
| 2776 | return (make_float (1.0 + XFLOAT_DATA (number))); | 2776 | return (make_float (1.0 + XFLOAT_DATA (number))); |
| @@ -2785,7 +2785,7 @@ Markers are converted to integers. */) | |||
| 2785 | (number) | 2785 | (number) |
| 2786 | register Lisp_Object number; | 2786 | register Lisp_Object number; |
| 2787 | { | 2787 | { |
| 2788 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number, 0); | 2788 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number); |
| 2789 | 2789 | ||
| 2790 | if (FLOATP (number)) | 2790 | if (FLOATP (number)) |
| 2791 | return (make_float (-1.0 + XFLOAT_DATA (number))); | 2791 | return (make_float (-1.0 + XFLOAT_DATA (number))); |
| @@ -2799,7 +2799,7 @@ DEFUN ("lognot", Flognot, Slognot, 1, 1, 0, | |||
| 2799 | (number) | 2799 | (number) |
| 2800 | register Lisp_Object number; | 2800 | register Lisp_Object number; |
| 2801 | { | 2801 | { |
| 2802 | CHECK_NUMBER (number, 0); | 2802 | CHECK_NUMBER (number); |
| 2803 | XSETINT (number, ~XINT (number)); | 2803 | XSETINT (number, ~XINT (number)); |
| 2804 | return number; | 2804 | return number; |
| 2805 | } | 2805 | } |
diff --git a/src/dired.c b/src/dired.c index 2dc13188b1e..eb10f7f1fea 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -156,7 +156,7 @@ directory_files_internal (directory, full, match, nosort, attrs) | |||
| 156 | 156 | ||
| 157 | if (!NILP (match)) | 157 | if (!NILP (match)) |
| 158 | { | 158 | { |
| 159 | CHECK_STRING (match, 3); | 159 | CHECK_STRING (match); |
| 160 | 160 | ||
| 161 | /* MATCH might be a flawed regular expression. Rather than | 161 | /* MATCH might be a flawed regular expression. Rather than |
| 162 | catching and signaling our own errors, we just call | 162 | catching and signaling our own errors, we just call |
| @@ -488,7 +488,7 @@ file_name_completion (file, dirname, all_flag, ver_flag) | |||
| 488 | readfunc = readdirver; | 488 | readfunc = readdirver; |
| 489 | file = Fupcase (file); | 489 | file = Fupcase (file); |
| 490 | #else /* not VMS */ | 490 | #else /* not VMS */ |
| 491 | CHECK_STRING (file, 0); | 491 | CHECK_STRING (file); |
| 492 | #endif /* not VMS */ | 492 | #endif /* not VMS */ |
| 493 | 493 | ||
| 494 | #ifdef FILE_SYSTEM_CASE | 494 | #ifdef FILE_SYSTEM_CASE |
diff --git a/src/dispnew.c b/src/dispnew.c index f5324b10818..04e9a031a93 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -3300,7 +3300,7 @@ DEFUN ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0, | |||
| 3300 | { | 3300 | { |
| 3301 | struct frame *f; | 3301 | struct frame *f; |
| 3302 | 3302 | ||
| 3303 | CHECK_LIVE_FRAME (frame, 0); | 3303 | CHECK_LIVE_FRAME (frame); |
| 3304 | f = XFRAME (frame); | 3304 | f = XFRAME (frame); |
| 3305 | 3305 | ||
| 3306 | /* Ignore redraw requests, if frame has no glyphs yet. | 3306 | /* Ignore redraw requests, if frame has no glyphs yet. |
| @@ -6023,7 +6023,7 @@ Control characters in STRING will have terminal-dependent effects. */) | |||
| 6023 | Lisp_Object string; | 6023 | Lisp_Object string; |
| 6024 | { | 6024 | { |
| 6025 | /* ??? Perhaps we should do something special for multibyte strings here. */ | 6025 | /* ??? Perhaps we should do something special for multibyte strings here. */ |
| 6026 | CHECK_STRING (string, 0); | 6026 | CHECK_STRING (string); |
| 6027 | fwrite (XSTRING (string)->data, 1, STRING_BYTES (XSTRING (string)), stdout); | 6027 | fwrite (XSTRING (string)->data, 1, STRING_BYTES (XSTRING (string)), stdout); |
| 6028 | fflush (stdout); | 6028 | fflush (stdout); |
| 6029 | if (termscript) | 6029 | if (termscript) |
| @@ -6090,7 +6090,7 @@ Emacs was built without floating point support. | |||
| 6090 | if (NILP (milliseconds)) | 6090 | if (NILP (milliseconds)) |
| 6091 | XSETINT (milliseconds, 0); | 6091 | XSETINT (milliseconds, 0); |
| 6092 | else | 6092 | else |
| 6093 | CHECK_NUMBER (milliseconds, 1); | 6093 | CHECK_NUMBER (milliseconds); |
| 6094 | usec = XINT (milliseconds) * 1000; | 6094 | usec = XINT (milliseconds) * 1000; |
| 6095 | 6095 | ||
| 6096 | { | 6096 | { |
| @@ -6217,7 +6217,7 @@ Value is t if waited the full time with no input arriving. */) | |||
| 6217 | if (NILP (milliseconds)) | 6217 | if (NILP (milliseconds)) |
| 6218 | XSETINT (milliseconds, 0); | 6218 | XSETINT (milliseconds, 0); |
| 6219 | else | 6219 | else |
| 6220 | CHECK_NUMBER (milliseconds, 1); | 6220 | CHECK_NUMBER (milliseconds); |
| 6221 | usec = XINT (milliseconds) * 1000; | 6221 | usec = XINT (milliseconds) * 1000; |
| 6222 | 6222 | ||
| 6223 | { | 6223 | { |
| @@ -6536,7 +6536,7 @@ don't show a cursor. */) | |||
| 6536 | if (NILP (window)) | 6536 | if (NILP (window)) |
| 6537 | window = selected_window; | 6537 | window = selected_window; |
| 6538 | else | 6538 | else |
| 6539 | CHECK_WINDOW (window, 2); | 6539 | CHECK_WINDOW (window); |
| 6540 | 6540 | ||
| 6541 | XWINDOW (window)->cursor_off_p = NILP (show); | 6541 | XWINDOW (window)->cursor_off_p = NILP (show); |
| 6542 | } | 6542 | } |
| @@ -6557,7 +6557,7 @@ WINDOW nil or omitted means report on the selected window. */) | |||
| 6557 | if (NILP (window)) | 6557 | if (NILP (window)) |
| 6558 | window = selected_window; | 6558 | window = selected_window; |
| 6559 | else | 6559 | else |
| 6560 | CHECK_WINDOW (window, 2); | 6560 | CHECK_WINDOW (window); |
| 6561 | 6561 | ||
| 6562 | w = XWINDOW (window); | 6562 | w = XWINDOW (window); |
| 6563 | return w->cursor_off_p ? Qnil : Qt; | 6563 | return w->cursor_off_p ? Qnil : Qt; |
| @@ -484,13 +484,13 @@ when doc strings are referred to later in the dumped Emacs.") | |||
| 484 | error ("Snarf-documentation can only be called in an undumped Emacs"); | 484 | error ("Snarf-documentation can only be called in an undumped Emacs"); |
| 485 | #endif | 485 | #endif |
| 486 | 486 | ||
| 487 | CHECK_STRING (filename, 0); | 487 | CHECK_STRING (filename); |
| 488 | 488 | ||
| 489 | #ifndef CANNOT_DUMP | 489 | #ifndef CANNOT_DUMP |
| 490 | name = (char *) alloca (XSTRING (filename)->size + 14); | 490 | name = (char *) alloca (XSTRING (filename)->size + 14); |
| 491 | strcpy (name, "../etc/"); | 491 | strcpy (name, "../etc/"); |
| 492 | #else /* CANNOT_DUMP */ | 492 | #else /* CANNOT_DUMP */ |
| 493 | CHECK_STRING (Vdoc_directory, 0); | 493 | CHECK_STRING (Vdoc_directory); |
| 494 | name = (char *) alloca (XSTRING (filename)->size + | 494 | name = (char *) alloca (XSTRING (filename)->size + |
| 495 | XSTRING (Vdoc_directory)->size + 1); | 495 | XSTRING (Vdoc_directory)->size + 1); |
| 496 | strcpy (name, XSTRING (Vdoc_directory)->data); | 496 | strcpy (name, XSTRING (Vdoc_directory)->data); |
| @@ -600,7 +600,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 600 | if (NILP (string)) | 600 | if (NILP (string)) |
| 601 | return Qnil; | 601 | return Qnil; |
| 602 | 602 | ||
| 603 | CHECK_STRING (string, 0); | 603 | CHECK_STRING (string); |
| 604 | tem = Qnil; | 604 | tem = Qnil; |
| 605 | keymap = Qnil; | 605 | keymap = Qnil; |
| 606 | name = Qnil; | 606 | name = Qnil; |
diff --git a/src/dosfns.c b/src/dosfns.c index f67a2450a26..783b1214437 100644 --- a/src/dosfns.c +++ b/src/dosfns.c | |||
| @@ -65,13 +65,13 @@ REGISTERS should be a vector produced by `make-register' and\n\ | |||
| 65 | union REGS inregs, outregs; | 65 | union REGS inregs, outregs; |
| 66 | Lisp_Object val; | 66 | Lisp_Object val; |
| 67 | 67 | ||
| 68 | CHECK_NUMBER (interrupt, 0); | 68 | CHECK_NUMBER (interrupt); |
| 69 | no = (unsigned long) XINT (interrupt); | 69 | no = (unsigned long) XINT (interrupt); |
| 70 | CHECK_VECTOR (registers, 1); | 70 | CHECK_VECTOR (registers); |
| 71 | if (no < 0 || no > 0xff || XVECTOR (registers)-> size != 8) | 71 | if (no < 0 || no > 0xff || XVECTOR (registers)-> size != 8) |
| 72 | return Qnil; | 72 | return Qnil; |
| 73 | for (i = 0; i < 8; i++) | 73 | for (i = 0; i < 8; i++) |
| 74 | CHECK_NUMBER (XVECTOR (registers)->contents[i], 1); | 74 | CHECK_NUMBER (XVECTOR (registers)->contents[i]); |
| 75 | 75 | ||
| 76 | inregs.x.ax = (unsigned long) XFASTINT (XVECTOR (registers)->contents[0]); | 76 | inregs.x.ax = (unsigned long) XFASTINT (XVECTOR (registers)->contents[0]); |
| 77 | inregs.x.bx = (unsigned long) XFASTINT (XVECTOR (registers)->contents[1]); | 77 | inregs.x.bx = (unsigned long) XFASTINT (XVECTOR (registers)->contents[1]); |
| @@ -107,9 +107,9 @@ Return the updated VECTOR.") | |||
| 107 | char *buf; | 107 | char *buf; |
| 108 | Lisp_Object val; | 108 | Lisp_Object val; |
| 109 | 109 | ||
| 110 | CHECK_NUMBER (address, 0); | 110 | CHECK_NUMBER (address); |
| 111 | offs = (unsigned long) XINT (address); | 111 | offs = (unsigned long) XINT (address); |
| 112 | CHECK_VECTOR (vector, 1); | 112 | CHECK_VECTOR (vector); |
| 113 | len = XVECTOR (vector)-> size; | 113 | len = XVECTOR (vector)-> size; |
| 114 | if (len < 1 || len > 2048 || address < 0 || address > 0xfffff - len) | 114 | if (len < 1 || len > 2048 || address < 0 || address > 0xfffff - len) |
| 115 | return Qnil; | 115 | return Qnil; |
| @@ -132,9 +132,9 @@ DEFUN ("msdos-memput", Fdos_memput, Sdos_memput, 2, 2, 0, | |||
| 132 | char *buf; | 132 | char *buf; |
| 133 | Lisp_Object val; | 133 | Lisp_Object val; |
| 134 | 134 | ||
| 135 | CHECK_NUMBER (address, 0); | 135 | CHECK_NUMBER (address); |
| 136 | offs = (unsigned long) XINT (address); | 136 | offs = (unsigned long) XINT (address); |
| 137 | CHECK_VECTOR (vector, 1); | 137 | CHECK_VECTOR (vector); |
| 138 | len = XVECTOR (vector)-> size; | 138 | len = XVECTOR (vector)-> size; |
| 139 | if (len < 1 || len > 2048 || address < 0 || address > 0xfffff - len) | 139 | if (len < 1 || len > 2048 || address < 0 || address > 0xfffff - len) |
| 140 | return Qnil; | 140 | return Qnil; |
| @@ -142,7 +142,7 @@ DEFUN ("msdos-memput", Fdos_memput, Sdos_memput, 2, 2, 0, | |||
| 142 | 142 | ||
| 143 | for (i = 0; i < len; i++) | 143 | for (i = 0; i < len; i++) |
| 144 | { | 144 | { |
| 145 | CHECK_NUMBER (XVECTOR (vector)->contents[i], 1); | 145 | CHECK_NUMBER (XVECTOR (vector)->contents[i]); |
| 146 | buf[i] = (unsigned char) XFASTINT (XVECTOR (vector)->contents[i]) & 0xFF; | 146 | buf[i] = (unsigned char) XFASTINT (XVECTOR (vector)->contents[i]) & 0xFF; |
| 147 | } | 147 | } |
| 148 | 148 | ||
| @@ -158,7 +158,7 @@ The current keyboard layout is available in dos-keyboard-code.") | |||
| 158 | (country_code, allkeys) | 158 | (country_code, allkeys) |
| 159 | Lisp_Object country_code; | 159 | Lisp_Object country_code; |
| 160 | { | 160 | { |
| 161 | CHECK_NUMBER (country_code, 0); | 161 | CHECK_NUMBER (country_code); |
| 162 | if (!dos_set_keyboard (XINT (country_code), !NILP (allkeys))) | 162 | if (!dos_set_keyboard (XINT (country_code), !NILP (allkeys))) |
| 163 | return Qnil; | 163 | return Qnil; |
| 164 | return Qt; | 164 | return Qt; |
| @@ -524,7 +524,7 @@ If the underlying system call fails, value is nil.") | |||
| 524 | struct statfs stfs; | 524 | struct statfs stfs; |
| 525 | Lisp_Object encoded, value; | 525 | Lisp_Object encoded, value; |
| 526 | 526 | ||
| 527 | CHECK_STRING (filename, 0); | 527 | CHECK_STRING (filename); |
| 528 | filename = Fexpand_file_name (filename, Qnil); | 528 | filename = Fexpand_file_name (filename, Qnil); |
| 529 | encoded = ENCODE_FILE (filename); | 529 | encoded = ENCODE_FILE (filename); |
| 530 | 530 | ||
diff --git a/src/editfns.c b/src/editfns.c index 77bb39df691..6dd998dc2d3 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -172,7 +172,7 @@ usage: (char-to-string CHAR) */) | |||
| 172 | int len; | 172 | int len; |
| 173 | unsigned char str[MAX_MULTIBYTE_LENGTH]; | 173 | unsigned char str[MAX_MULTIBYTE_LENGTH]; |
| 174 | 174 | ||
| 175 | CHECK_NUMBER (character, 0); | 175 | CHECK_NUMBER (character); |
| 176 | 176 | ||
| 177 | len = (SINGLE_BYTE_CHAR_P (XFASTINT (character)) | 177 | len = (SINGLE_BYTE_CHAR_P (XFASTINT (character)) |
| 178 | ? (*str = (unsigned char)(XFASTINT (character)), 1) | 178 | ? (*str = (unsigned char)(XFASTINT (character)), 1) |
| @@ -188,7 +188,7 @@ A multibyte character is handled correctly. */) | |||
| 188 | { | 188 | { |
| 189 | register Lisp_Object val; | 189 | register Lisp_Object val; |
| 190 | register struct Lisp_String *p; | 190 | register struct Lisp_String *p; |
| 191 | CHECK_STRING (string, 0); | 191 | CHECK_STRING (string); |
| 192 | p = XSTRING (string); | 192 | p = XSTRING (string); |
| 193 | if (p->size) | 193 | if (p->size) |
| 194 | { | 194 | { |
| @@ -266,7 +266,7 @@ except in the case that `enable-multibyte-characters' is nil. */) | |||
| 266 | return position; | 266 | return position; |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | CHECK_NUMBER_COERCE_MARKER (position, 0); | 269 | CHECK_NUMBER_COERCE_MARKER (position); |
| 270 | 270 | ||
| 271 | pos = clip_to_bounds (BEGV, XINT (position), ZV); | 271 | pos = clip_to_bounds (BEGV, XINT (position), ZV); |
| 272 | SET_PT (pos); | 272 | SET_PT (pos); |
| @@ -435,7 +435,7 @@ find_field (pos, merge_at_boundary, beg, end) | |||
| 435 | if (NILP (pos)) | 435 | if (NILP (pos)) |
| 436 | XSETFASTINT (pos, PT); | 436 | XSETFASTINT (pos, PT); |
| 437 | else | 437 | else |
| 438 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 438 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 439 | 439 | ||
| 440 | after_field | 440 | after_field |
| 441 | = get_char_property_and_overlay (pos, Qfield, Qnil, &after_overlay); | 441 | = get_char_property_and_overlay (pos, Qfield, Qnil, &after_overlay); |
| @@ -689,8 +689,8 @@ Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil. */) | |||
| 689 | int fwd, shortage; | 689 | int fwd, shortage; |
| 690 | Lisp_Object field_bound; | 690 | Lisp_Object field_bound; |
| 691 | 691 | ||
| 692 | CHECK_NUMBER_COERCE_MARKER (new_pos, 0); | 692 | CHECK_NUMBER_COERCE_MARKER (new_pos); |
| 693 | CHECK_NUMBER_COERCE_MARKER (old_pos, 0); | 693 | CHECK_NUMBER_COERCE_MARKER (old_pos); |
| 694 | 694 | ||
| 695 | fwd = (XFASTINT (new_pos) > XFASTINT (old_pos)); | 695 | fwd = (XFASTINT (new_pos) > XFASTINT (old_pos)); |
| 696 | 696 | ||
| @@ -748,7 +748,7 @@ This function does not move point. */) | |||
| 748 | if (NILP (n)) | 748 | if (NILP (n)) |
| 749 | XSETFASTINT (n, 1); | 749 | XSETFASTINT (n, 1); |
| 750 | else | 750 | else |
| 751 | CHECK_NUMBER (n, 0); | 751 | CHECK_NUMBER (n); |
| 752 | 752 | ||
| 753 | orig = PT; | 753 | orig = PT; |
| 754 | orig_byte = PT_BYTE; | 754 | orig_byte = PT_BYTE; |
| @@ -783,7 +783,7 @@ This function does not move point. */) | |||
| 783 | if (NILP (n)) | 783 | if (NILP (n)) |
| 784 | XSETFASTINT (n, 1); | 784 | XSETFASTINT (n, 1); |
| 785 | else | 785 | else |
| 786 | CHECK_NUMBER (n, 0); | 786 | CHECK_NUMBER (n); |
| 787 | 787 | ||
| 788 | end_pos = find_before_next_newline (orig, 0, XINT (n) - (XINT (n) <= 0)); | 788 | end_pos = find_before_next_newline (orig, 0, XINT (n) - (XINT (n) <= 0)); |
| 789 | 789 | ||
| @@ -942,7 +942,7 @@ If BUFFER, return the number of characters in that buffer instead. */) | |||
| 942 | return make_number (Z - BEG); | 942 | return make_number (Z - BEG); |
| 943 | else | 943 | else |
| 944 | { | 944 | { |
| 945 | CHECK_BUFFER (buffer, 1); | 945 | CHECK_BUFFER (buffer); |
| 946 | return make_number (BUF_Z (XBUFFER (buffer)) | 946 | return make_number (BUF_Z (XBUFFER (buffer)) |
| 947 | - BUF_BEG (XBUFFER (buffer))); | 947 | - BUF_BEG (XBUFFER (buffer))); |
| 948 | } | 948 | } |
| @@ -1012,7 +1012,7 @@ If POSITION is out of range, the value is nil. */) | |||
| 1012 | (position) | 1012 | (position) |
| 1013 | Lisp_Object position; | 1013 | Lisp_Object position; |
| 1014 | { | 1014 | { |
| 1015 | CHECK_NUMBER_COERCE_MARKER (position, 1); | 1015 | CHECK_NUMBER_COERCE_MARKER (position); |
| 1016 | if (XINT (position) < BEG || XINT (position) > Z) | 1016 | if (XINT (position) < BEG || XINT (position) > Z) |
| 1017 | return Qnil; | 1017 | return Qnil; |
| 1018 | return make_number (CHAR_TO_BYTE (XINT (position))); | 1018 | return make_number (CHAR_TO_BYTE (XINT (position))); |
| @@ -1024,7 +1024,7 @@ If BYTEPOS is out of range, the value is nil. */) | |||
| 1024 | (bytepos) | 1024 | (bytepos) |
| 1025 | Lisp_Object bytepos; | 1025 | Lisp_Object bytepos; |
| 1026 | { | 1026 | { |
| 1027 | CHECK_NUMBER (bytepos, 1); | 1027 | CHECK_NUMBER (bytepos); |
| 1028 | if (XINT (bytepos) < BEG_BYTE || XINT (bytepos) > Z_BYTE) | 1028 | if (XINT (bytepos) < BEG_BYTE || XINT (bytepos) > Z_BYTE) |
| 1029 | return Qnil; | 1029 | return Qnil; |
| 1030 | return make_number (BYTE_TO_CHAR (XINT (bytepos))); | 1030 | return make_number (BYTE_TO_CHAR (XINT (bytepos))); |
| @@ -1124,7 +1124,7 @@ If POS is out of range, the value is nil. */) | |||
| 1124 | } | 1124 | } |
| 1125 | else | 1125 | else |
| 1126 | { | 1126 | { |
| 1127 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 1127 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 1128 | if (XINT (pos) < BEGV || XINT (pos) >= ZV) | 1128 | if (XINT (pos) < BEGV || XINT (pos) >= ZV) |
| 1129 | return Qnil; | 1129 | return Qnil; |
| 1130 | 1130 | ||
| @@ -1159,7 +1159,7 @@ If POS is out of range, the value is nil. */) | |||
| 1159 | } | 1159 | } |
| 1160 | else | 1160 | else |
| 1161 | { | 1161 | { |
| 1162 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 1162 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 1163 | 1163 | ||
| 1164 | if (XINT (pos) <= BEGV || XINT (pos) > ZV) | 1164 | if (XINT (pos) <= BEGV || XINT (pos) > ZV) |
| 1165 | return Qnil; | 1165 | return Qnil; |
| @@ -1202,7 +1202,7 @@ with that uid, or nil if there is no such user. */) | |||
| 1202 | if (NILP (uid)) | 1202 | if (NILP (uid)) |
| 1203 | return Vuser_login_name; | 1203 | return Vuser_login_name; |
| 1204 | 1204 | ||
| 1205 | CHECK_NUMBER (uid, 0); | 1205 | CHECK_NUMBER (uid); |
| 1206 | pw = (struct passwd *) getpwuid (XINT (uid)); | 1206 | pw = (struct passwd *) getpwuid (XINT (uid)); |
| 1207 | return (pw ? build_string (pw->pw_name) : Qnil); | 1207 | return (pw ? build_string (pw->pw_name) : Qnil); |
| 1208 | } | 1208 | } |
| @@ -1366,7 +1366,7 @@ lisp_time_argument (specified_time, result, usec) | |||
| 1366 | { | 1366 | { |
| 1367 | Lisp_Object high, low; | 1367 | Lisp_Object high, low; |
| 1368 | high = Fcar (specified_time); | 1368 | high = Fcar (specified_time); |
| 1369 | CHECK_NUMBER (high, 0); | 1369 | CHECK_NUMBER (high); |
| 1370 | low = Fcdr (specified_time); | 1370 | low = Fcdr (specified_time); |
| 1371 | if (CONSP (low)) | 1371 | if (CONSP (low)) |
| 1372 | { | 1372 | { |
| @@ -1379,7 +1379,7 @@ lisp_time_argument (specified_time, result, usec) | |||
| 1379 | *usec = 0; | 1379 | *usec = 0; |
| 1380 | else | 1380 | else |
| 1381 | { | 1381 | { |
| 1382 | CHECK_NUMBER (usec_l, 0); | 1382 | CHECK_NUMBER (usec_l); |
| 1383 | *usec = XINT (usec_l); | 1383 | *usec = XINT (usec_l); |
| 1384 | } | 1384 | } |
| 1385 | } | 1385 | } |
| @@ -1387,7 +1387,7 @@ lisp_time_argument (specified_time, result, usec) | |||
| 1387 | } | 1387 | } |
| 1388 | else if (usec) | 1388 | else if (usec) |
| 1389 | *usec = 0; | 1389 | *usec = 0; |
| 1390 | CHECK_NUMBER (low, 0); | 1390 | CHECK_NUMBER (low); |
| 1391 | *result = (XINT (high) << 16) + (XINT (low) & 0xffff); | 1391 | *result = (XINT (high) << 16) + (XINT (low) & 0xffff); |
| 1392 | return *result >> 16 == XINT (high); | 1392 | return *result >> 16 == XINT (high); |
| 1393 | } | 1393 | } |
| @@ -1527,7 +1527,7 @@ For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */) | |||
| 1527 | struct tm *tm; | 1527 | struct tm *tm; |
| 1528 | int ut = ! NILP (universal); | 1528 | int ut = ! NILP (universal); |
| 1529 | 1529 | ||
| 1530 | CHECK_STRING (format_string, 1); | 1530 | CHECK_STRING (format_string); |
| 1531 | 1531 | ||
| 1532 | if (! lisp_time_argument (time, &value, NULL)) | 1532 | if (! lisp_time_argument (time, &value, NULL)) |
| 1533 | error ("Invalid time specification"); | 1533 | error ("Invalid time specification"); |
| @@ -1639,12 +1639,12 @@ usage: (encode-time SECOND MINUTE HOUR DAY MONTH YEAR &optional ZONE) */) | |||
| 1639 | struct tm tm; | 1639 | struct tm tm; |
| 1640 | Lisp_Object zone = (nargs > 6 ? args[nargs - 1] : Qnil); | 1640 | Lisp_Object zone = (nargs > 6 ? args[nargs - 1] : Qnil); |
| 1641 | 1641 | ||
| 1642 | CHECK_NUMBER (args[0], 0); /* second */ | 1642 | CHECK_NUMBER (args[0]); /* second */ |
| 1643 | CHECK_NUMBER (args[1], 1); /* minute */ | 1643 | CHECK_NUMBER (args[1]); /* minute */ |
| 1644 | CHECK_NUMBER (args[2], 2); /* hour */ | 1644 | CHECK_NUMBER (args[2]); /* hour */ |
| 1645 | CHECK_NUMBER (args[3], 3); /* day */ | 1645 | CHECK_NUMBER (args[3]); /* day */ |
| 1646 | CHECK_NUMBER (args[4], 4); /* month */ | 1646 | CHECK_NUMBER (args[4]); /* month */ |
| 1647 | CHECK_NUMBER (args[5], 5); /* year */ | 1647 | CHECK_NUMBER (args[5]); /* year */ |
| 1648 | 1648 | ||
| 1649 | tm.tm_sec = XINT (args[0]); | 1649 | tm.tm_sec = XINT (args[0]); |
| 1650 | tm.tm_min = XINT (args[1]); | 1650 | tm.tm_min = XINT (args[1]); |
| @@ -1844,7 +1844,7 @@ If TZ is t, use Universal Time. */) | |||
| 1844 | tzstring = "UTC0"; | 1844 | tzstring = "UTC0"; |
| 1845 | else | 1845 | else |
| 1846 | { | 1846 | { |
| 1847 | CHECK_STRING (tz, 0); | 1847 | CHECK_STRING (tz); |
| 1848 | tzstring = (char *) XSTRING (tz)->data; | 1848 | tzstring = (char *) XSTRING (tz)->data; |
| 1849 | } | 1849 | } |
| 1850 | 1850 | ||
| @@ -2114,8 +2114,8 @@ from adjoining text, if those properties are sticky. */) | |||
| 2114 | int len; | 2114 | int len; |
| 2115 | unsigned char str[MAX_MULTIBYTE_LENGTH]; | 2115 | unsigned char str[MAX_MULTIBYTE_LENGTH]; |
| 2116 | 2116 | ||
| 2117 | CHECK_NUMBER (character, 0); | 2117 | CHECK_NUMBER (character); |
| 2118 | CHECK_NUMBER (count, 1); | 2118 | CHECK_NUMBER (count); |
| 2119 | 2119 | ||
| 2120 | if (!NILP (current_buffer->enable_multibyte_characters)) | 2120 | if (!NILP (current_buffer->enable_multibyte_characters)) |
| 2121 | len = CHAR_STRING (XFASTINT (character), str); | 2121 | len = CHAR_STRING (XFASTINT (character), str); |
| @@ -2326,14 +2326,14 @@ They default to the beginning and the end of BUFFER. */) | |||
| 2326 | b = BUF_BEGV (bp); | 2326 | b = BUF_BEGV (bp); |
| 2327 | else | 2327 | else |
| 2328 | { | 2328 | { |
| 2329 | CHECK_NUMBER_COERCE_MARKER (start, 0); | 2329 | CHECK_NUMBER_COERCE_MARKER (start); |
| 2330 | b = XINT (start); | 2330 | b = XINT (start); |
| 2331 | } | 2331 | } |
| 2332 | if (NILP (end)) | 2332 | if (NILP (end)) |
| 2333 | e = BUF_ZV (bp); | 2333 | e = BUF_ZV (bp); |
| 2334 | else | 2334 | else |
| 2335 | { | 2335 | { |
| 2336 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 2336 | CHECK_NUMBER_COERCE_MARKER (end); |
| 2337 | e = XINT (end); | 2337 | e = XINT (end); |
| 2338 | } | 2338 | } |
| 2339 | 2339 | ||
| @@ -2392,14 +2392,14 @@ determines whether case is significant or ignored. */) | |||
| 2392 | begp1 = BUF_BEGV (bp1); | 2392 | begp1 = BUF_BEGV (bp1); |
| 2393 | else | 2393 | else |
| 2394 | { | 2394 | { |
| 2395 | CHECK_NUMBER_COERCE_MARKER (start1, 1); | 2395 | CHECK_NUMBER_COERCE_MARKER (start1); |
| 2396 | begp1 = XINT (start1); | 2396 | begp1 = XINT (start1); |
| 2397 | } | 2397 | } |
| 2398 | if (NILP (end1)) | 2398 | if (NILP (end1)) |
| 2399 | endp1 = BUF_ZV (bp1); | 2399 | endp1 = BUF_ZV (bp1); |
| 2400 | else | 2400 | else |
| 2401 | { | 2401 | { |
| 2402 | CHECK_NUMBER_COERCE_MARKER (end1, 2); | 2402 | CHECK_NUMBER_COERCE_MARKER (end1); |
| 2403 | endp1 = XINT (end1); | 2403 | endp1 = XINT (end1); |
| 2404 | } | 2404 | } |
| 2405 | 2405 | ||
| @@ -2430,14 +2430,14 @@ determines whether case is significant or ignored. */) | |||
| 2430 | begp2 = BUF_BEGV (bp2); | 2430 | begp2 = BUF_BEGV (bp2); |
| 2431 | else | 2431 | else |
| 2432 | { | 2432 | { |
| 2433 | CHECK_NUMBER_COERCE_MARKER (start2, 4); | 2433 | CHECK_NUMBER_COERCE_MARKER (start2); |
| 2434 | begp2 = XINT (start2); | 2434 | begp2 = XINT (start2); |
| 2435 | } | 2435 | } |
| 2436 | if (NILP (end2)) | 2436 | if (NILP (end2)) |
| 2437 | endp2 = BUF_ZV (bp2); | 2437 | endp2 = BUF_ZV (bp2); |
| 2438 | else | 2438 | else |
| 2439 | { | 2439 | { |
| 2440 | CHECK_NUMBER_COERCE_MARKER (end2, 5); | 2440 | CHECK_NUMBER_COERCE_MARKER (end2); |
| 2441 | endp2 = XINT (end2); | 2441 | endp2 = XINT (end2); |
| 2442 | } | 2442 | } |
| 2443 | 2443 | ||
| @@ -2547,8 +2547,8 @@ Both characters must have the same length of multi-byte form. */) | |||
| 2547 | int multibyte_p = !NILP (current_buffer->enable_multibyte_characters); | 2547 | int multibyte_p = !NILP (current_buffer->enable_multibyte_characters); |
| 2548 | 2548 | ||
| 2549 | validate_region (&start, &end); | 2549 | validate_region (&start, &end); |
| 2550 | CHECK_NUMBER (fromchar, 2); | 2550 | CHECK_NUMBER (fromchar); |
| 2551 | CHECK_NUMBER (tochar, 3); | 2551 | CHECK_NUMBER (tochar); |
| 2552 | 2552 | ||
| 2553 | if (multibyte_p) | 2553 | if (multibyte_p) |
| 2554 | { | 2554 | { |
| @@ -2712,7 +2712,7 @@ It returns the number of characters changed. */) | |||
| 2712 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); | 2712 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); |
| 2713 | 2713 | ||
| 2714 | validate_region (&start, &end); | 2714 | validate_region (&start, &end); |
| 2715 | CHECK_STRING (table, 2); | 2715 | CHECK_STRING (table); |
| 2716 | 2716 | ||
| 2717 | size = STRING_BYTES (XSTRING (table)); | 2717 | size = STRING_BYTES (XSTRING (table)); |
| 2718 | tt = XSTRING (table)->data; | 2718 | tt = XSTRING (table)->data; |
| @@ -2830,8 +2830,8 @@ or markers) bounding the text that should remain visible. */) | |||
| 2830 | (start, end) | 2830 | (start, end) |
| 2831 | register Lisp_Object start, end; | 2831 | register Lisp_Object start, end; |
| 2832 | { | 2832 | { |
| 2833 | CHECK_NUMBER_COERCE_MARKER (start, 0); | 2833 | CHECK_NUMBER_COERCE_MARKER (start); |
| 2834 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 2834 | CHECK_NUMBER_COERCE_MARKER (end); |
| 2835 | 2835 | ||
| 2836 | if (XINT (start) > XINT (end)) | 2836 | if (XINT (start) > XINT (end)) |
| 2837 | { | 2837 | { |
| @@ -3103,12 +3103,12 @@ usage: (propertize STRING &rest PROPERTIES) */) | |||
| 3103 | GCPRO2 (properties, string); | 3103 | GCPRO2 (properties, string); |
| 3104 | 3104 | ||
| 3105 | /* First argument must be a string. */ | 3105 | /* First argument must be a string. */ |
| 3106 | CHECK_STRING (args[0], 0); | 3106 | CHECK_STRING (args[0]); |
| 3107 | string = Fcopy_sequence (args[0]); | 3107 | string = Fcopy_sequence (args[0]); |
| 3108 | 3108 | ||
| 3109 | for (i = 1; i < nargs; i += 2) | 3109 | for (i = 1; i < nargs; i += 2) |
| 3110 | { | 3110 | { |
| 3111 | CHECK_SYMBOL (args[i], i); | 3111 | CHECK_SYMBOL (args[i]); |
| 3112 | properties = Fcons (args[i], Fcons (args[i + 1], properties)); | 3112 | properties = Fcons (args[i], Fcons (args[i + 1], properties)); |
| 3113 | } | 3113 | } |
| 3114 | 3114 | ||
| @@ -3182,7 +3182,7 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3182 | if (STRINGP (args[n]) && STRING_MULTIBYTE (args[n])) | 3182 | if (STRINGP (args[n]) && STRING_MULTIBYTE (args[n])) |
| 3183 | multibyte = 1; | 3183 | multibyte = 1; |
| 3184 | 3184 | ||
| 3185 | CHECK_STRING (args[0], 0); | 3185 | CHECK_STRING (args[0]); |
| 3186 | 3186 | ||
| 3187 | /* If we start out planning a unibyte result, | 3187 | /* If we start out planning a unibyte result, |
| 3188 | and later find it has to be multibyte, we jump back to retry. */ | 3188 | and later find it has to be multibyte, we jump back to retry. */ |
| @@ -3577,8 +3577,8 @@ Case is ignored if `case-fold-search' is non-nil in the current buffer. */) | |||
| 3577 | register Lisp_Object c1, c2; | 3577 | register Lisp_Object c1, c2; |
| 3578 | { | 3578 | { |
| 3579 | int i1, i2; | 3579 | int i1, i2; |
| 3580 | CHECK_NUMBER (c1, 0); | 3580 | CHECK_NUMBER (c1); |
| 3581 | CHECK_NUMBER (c2, 1); | 3581 | CHECK_NUMBER (c2); |
| 3582 | 3582 | ||
| 3583 | if (XINT (c1) == XINT (c2)) | 3583 | if (XINT (c1) == XINT (c2)) |
| 3584 | return Qt; | 3584 | return Qt; |
diff --git a/src/emacs.c b/src/emacs.c index 8ba9470f437..9a20a73a378 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1998,7 +1998,7 @@ This function exists on systems that use HAVE_SHM. */) | |||
| 1998 | Lisp_Object tem; | 1998 | Lisp_Object tem; |
| 1999 | 1999 | ||
| 2000 | check_pure_size (); | 2000 | check_pure_size (); |
| 2001 | CHECK_STRING (filename, 0); | 2001 | CHECK_STRING (filename); |
| 2002 | filename = Fexpand_file_name (filename, Qnil); | 2002 | filename = Fexpand_file_name (filename, Qnil); |
| 2003 | 2003 | ||
| 2004 | tem = Vpurify_flag; | 2004 | tem = Vpurify_flag; |
| @@ -2044,11 +2044,11 @@ You must run Emacs in batch mode in order to dump it. */) | |||
| 2044 | symbol = intern ("command-line-process"); | 2044 | symbol = intern ("command-line-process"); |
| 2045 | specbind (symbol, Qnil); | 2045 | specbind (symbol, Qnil); |
| 2046 | 2046 | ||
| 2047 | CHECK_STRING (filename, 0); | 2047 | CHECK_STRING (filename); |
| 2048 | filename = Fexpand_file_name (filename, Qnil); | 2048 | filename = Fexpand_file_name (filename, Qnil); |
| 2049 | if (!NILP (symfile)) | 2049 | if (!NILP (symfile)) |
| 2050 | { | 2050 | { |
| 2051 | CHECK_STRING (symfile, 0); | 2051 | CHECK_STRING (symfile); |
| 2052 | if (XSTRING (symfile)->size) | 2052 | if (XSTRING (symfile)->size) |
| 2053 | symfile = Fexpand_file_name (symfile, Qnil); | 2053 | symfile = Fexpand_file_name (symfile, Qnil); |
| 2054 | } | 2054 | } |
diff --git a/src/eval.c b/src/eval.c index 8071307b734..075bcf1d384 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -690,8 +690,8 @@ ALIASED nil means remove the alias; SYMBOL is unbound after that. */) | |||
| 690 | { | 690 | { |
| 691 | struct Lisp_Symbol *sym; | 691 | struct Lisp_Symbol *sym; |
| 692 | 692 | ||
| 693 | CHECK_SYMBOL (symbol, 0); | 693 | CHECK_SYMBOL (symbol); |
| 694 | CHECK_SYMBOL (aliased, 1); | 694 | CHECK_SYMBOL (aliased); |
| 695 | 695 | ||
| 696 | if (SYMBOL_CONSTANT_P (symbol)) | 696 | if (SYMBOL_CONSTANT_P (symbol)) |
| 697 | error ("Cannot make a constant an alias"); | 697 | error ("Cannot make a constant an alias"); |
| @@ -1215,7 +1215,7 @@ usage: (condition-case VAR BODYFORM HANDLERS...) */) | |||
| 1215 | var = Fcar (args); | 1215 | var = Fcar (args); |
| 1216 | bodyform = Fcar (Fcdr (args)); | 1216 | bodyform = Fcar (Fcdr (args)); |
| 1217 | handlers = Fcdr (Fcdr (args)); | 1217 | handlers = Fcdr (Fcdr (args)); |
| 1218 | CHECK_SYMBOL (var, 0); | 1218 | CHECK_SYMBOL (var); |
| 1219 | 1219 | ||
| 1220 | for (val = handlers; ! NILP (val); val = Fcdr (val)) | 1220 | for (val = handlers; ! NILP (val); val = Fcdr (val)) |
| 1221 | { | 1221 | { |
| @@ -1825,8 +1825,8 @@ this does nothing and returns nil. */) | |||
| 1825 | Lisp_Object args[4]; | 1825 | Lisp_Object args[4]; |
| 1826 | #endif | 1826 | #endif |
| 1827 | 1827 | ||
| 1828 | CHECK_SYMBOL (function, 0); | 1828 | CHECK_SYMBOL (function); |
| 1829 | CHECK_STRING (file, 1); | 1829 | CHECK_STRING (file); |
| 1830 | 1830 | ||
| 1831 | /* If function is defined and not as an autoload, don't override */ | 1831 | /* If function is defined and not as an autoload, don't override */ |
| 1832 | if (!EQ (XSYMBOL (function)->function, Qunbound) | 1832 | if (!EQ (XSYMBOL (function)->function, Qunbound) |
| @@ -1888,7 +1888,7 @@ do_autoload (fundef, funname) | |||
| 1888 | struct gcpro gcpro1, gcpro2, gcpro3; | 1888 | struct gcpro gcpro1, gcpro2, gcpro3; |
| 1889 | 1889 | ||
| 1890 | fun = funname; | 1890 | fun = funname; |
| 1891 | CHECK_SYMBOL (funname, 0); | 1891 | CHECK_SYMBOL (funname); |
| 1892 | GCPRO3 (fun, funname, fundef); | 1892 | GCPRO3 (fun, funname, fundef); |
| 1893 | 1893 | ||
| 1894 | /* Preserve the match data. */ | 1894 | /* Preserve the match data. */ |
| @@ -2158,7 +2158,7 @@ usage: (apply FUNCTION &rest ARGUMENTS) */) | |||
| 2158 | fun = args [0]; | 2158 | fun = args [0]; |
| 2159 | funcall_args = 0; | 2159 | funcall_args = 0; |
| 2160 | spread_arg = args [nargs - 1]; | 2160 | spread_arg = args [nargs - 1]; |
| 2161 | CHECK_LIST (spread_arg, nargs); | 2161 | CHECK_LIST (spread_arg); |
| 2162 | 2162 | ||
| 2163 | numargs = XINT (Flength (spread_arg)); | 2163 | numargs = XINT (Flength (spread_arg)); |
| 2164 | 2164 | ||
| @@ -2960,7 +2960,7 @@ specbind (symbol, value) | |||
| 2960 | Lisp_Object ovalue; | 2960 | Lisp_Object ovalue; |
| 2961 | Lisp_Object valcontents; | 2961 | Lisp_Object valcontents; |
| 2962 | 2962 | ||
| 2963 | CHECK_SYMBOL (symbol, 0); | 2963 | CHECK_SYMBOL (symbol); |
| 2964 | if (specpdl_ptr == specpdl + specpdl_size) | 2964 | if (specpdl_ptr == specpdl + specpdl_size) |
| 2965 | grow_specpdl (); | 2965 | grow_specpdl (); |
| 2966 | 2966 | ||
| @@ -3117,7 +3117,7 @@ top_level_value (symbol) | |||
| 3117 | { | 3117 | { |
| 3118 | register struct specbinding *ptr = specpdl; | 3118 | register struct specbinding *ptr = specpdl; |
| 3119 | 3119 | ||
| 3120 | CHECK_SYMBOL (symbol, 0); | 3120 | CHECK_SYMBOL (symbol); |
| 3121 | for (; ptr != specpdl_ptr; ptr++) | 3121 | for (; ptr != specpdl_ptr; ptr++) |
| 3122 | { | 3122 | { |
| 3123 | if (EQ (ptr->symbol, symbol)) | 3123 | if (EQ (ptr->symbol, symbol)) |
| @@ -3132,7 +3132,7 @@ top_level_set (symbol, newval) | |||
| 3132 | { | 3132 | { |
| 3133 | register struct specbinding *ptr = specpdl; | 3133 | register struct specbinding *ptr = specpdl; |
| 3134 | 3134 | ||
| 3135 | CHECK_SYMBOL (symbol, 0); | 3135 | CHECK_SYMBOL (symbol); |
| 3136 | for (; ptr != specpdl_ptr; ptr++) | 3136 | for (; ptr != specpdl_ptr; ptr++) |
| 3137 | { | 3137 | { |
| 3138 | if (EQ (ptr->symbol, symbol)) | 3138 | if (EQ (ptr->symbol, symbol)) |
| @@ -3155,7 +3155,7 @@ The debugger is entered when that frame exits, if the flag is non-nil. */) | |||
| 3155 | register struct backtrace *backlist = backtrace_list; | 3155 | register struct backtrace *backlist = backtrace_list; |
| 3156 | register int i; | 3156 | register int i; |
| 3157 | 3157 | ||
| 3158 | CHECK_NUMBER (level, 0); | 3158 | CHECK_NUMBER (level); |
| 3159 | 3159 | ||
| 3160 | for (i = 0; backlist && i < XINT (level); i++) | 3160 | for (i = 0; backlist && i < XINT (level); i++) |
| 3161 | { | 3161 | { |
| @@ -3243,7 +3243,7 @@ If NFRAMES is more than the number of frames, the value is nil. */) | |||
| 3243 | register int i; | 3243 | register int i; |
| 3244 | Lisp_Object tem; | 3244 | Lisp_Object tem; |
| 3245 | 3245 | ||
| 3246 | CHECK_NATNUM (nframes, 0); | 3246 | CHECK_NATNUM (nframes); |
| 3247 | 3247 | ||
| 3248 | /* Find the frame requested. */ | 3248 | /* Find the frame requested. */ |
| 3249 | for (i = 0; backlist && i < XFASTINT (nframes); i++) | 3249 | for (i = 0; backlist && i < XFASTINT (nframes); i++) |
diff --git a/src/fileio.c b/src/fileio.c index 823ab018bcd..f9838396746 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -338,7 +338,7 @@ use the standard functions without calling themselves recursively. */) | |||
| 338 | /* This function must not munge the match data. */ | 338 | /* This function must not munge the match data. */ |
| 339 | Lisp_Object chain, inhibited_handlers; | 339 | Lisp_Object chain, inhibited_handlers; |
| 340 | 340 | ||
| 341 | CHECK_STRING (filename, 0); | 341 | CHECK_STRING (filename); |
| 342 | 342 | ||
| 343 | if (EQ (operation, Vinhibit_file_name_operation)) | 343 | if (EQ (operation, Vinhibit_file_name_operation)) |
| 344 | inhibited_handlers = Vinhibit_file_name_handlers; | 344 | inhibited_handlers = Vinhibit_file_name_handlers; |
| @@ -384,7 +384,7 @@ on VMS, perhaps instead a string ending in `:', `]' or `>'. */) | |||
| 384 | register unsigned char *p; | 384 | register unsigned char *p; |
| 385 | Lisp_Object handler; | 385 | Lisp_Object handler; |
| 386 | 386 | ||
| 387 | CHECK_STRING (filename, 0); | 387 | CHECK_STRING (filename); |
| 388 | 388 | ||
| 389 | /* If the file name has special constructs in it, | 389 | /* If the file name has special constructs in it, |
| 390 | call the corresponding file handler. */ | 390 | call the corresponding file handler. */ |
| @@ -459,7 +459,7 @@ or the entire name if it contains no slash. */) | |||
| 459 | register unsigned char *beg, *p, *end; | 459 | register unsigned char *beg, *p, *end; |
| 460 | Lisp_Object handler; | 460 | Lisp_Object handler; |
| 461 | 461 | ||
| 462 | CHECK_STRING (filename, 0); | 462 | CHECK_STRING (filename); |
| 463 | 463 | ||
| 464 | /* If the file name has special constructs in it, | 464 | /* If the file name has special constructs in it, |
| 465 | call the corresponding file handler. */ | 465 | call the corresponding file handler. */ |
| @@ -614,7 +614,7 @@ On VMS, converts \"[X]FOO.DIR\" to \"[X.FOO]\", etc. */) | |||
| 614 | char *buf; | 614 | char *buf; |
| 615 | Lisp_Object handler; | 615 | Lisp_Object handler; |
| 616 | 616 | ||
| 617 | CHECK_STRING (file, 0); | 617 | CHECK_STRING (file); |
| 618 | if (NILP (file)) | 618 | if (NILP (file)) |
| 619 | return Qnil; | 619 | return Qnil; |
| 620 | 620 | ||
| @@ -805,7 +805,7 @@ it returns a file name such as \"[X]Y.DIR.1\". */) | |||
| 805 | char *buf; | 805 | char *buf; |
| 806 | Lisp_Object handler; | 806 | Lisp_Object handler; |
| 807 | 807 | ||
| 808 | CHECK_STRING (directory, 0); | 808 | CHECK_STRING (directory); |
| 809 | 809 | ||
| 810 | if (NILP (directory)) | 810 | if (NILP (directory)) |
| 811 | return Qnil; | 811 | return Qnil; |
| @@ -870,7 +870,7 @@ make_temp_name (prefix, base64_p) | |||
| 870 | char pidbuf[20]; | 870 | char pidbuf[20]; |
| 871 | int pidlen; | 871 | int pidlen; |
| 872 | 872 | ||
| 873 | CHECK_STRING (prefix, 0); | 873 | CHECK_STRING (prefix); |
| 874 | 874 | ||
| 875 | /* VAL is created by adding 6 characters to PREFIX. The first | 875 | /* VAL is created by adding 6 characters to PREFIX. The first |
| 876 | three are the PID of this process, in base 64, and the second | 876 | three are the PID of this process, in base 64, and the second |
| @@ -1019,7 +1019,7 @@ See also the function `substitute-in-file-name'. */) | |||
| 1019 | int length; | 1019 | int length; |
| 1020 | Lisp_Object handler; | 1020 | Lisp_Object handler; |
| 1021 | 1021 | ||
| 1022 | CHECK_STRING (name, 0); | 1022 | CHECK_STRING (name); |
| 1023 | 1023 | ||
| 1024 | /* If the file name has special constructs in it, | 1024 | /* If the file name has special constructs in it, |
| 1025 | call the corresponding file handler. */ | 1025 | call the corresponding file handler. */ |
| @@ -1686,7 +1686,7 @@ See also the function `substitute-in-file-name'.") | |||
| 1686 | int dots = 0; | 1686 | int dots = 0; |
| 1687 | #endif /* VMS */ | 1687 | #endif /* VMS */ |
| 1688 | 1688 | ||
| 1689 | CHECK_STRING (name, 0); | 1689 | CHECK_STRING (name); |
| 1690 | 1690 | ||
| 1691 | #ifdef VMS | 1691 | #ifdef VMS |
| 1692 | /* Filenames on VMS are always upper case. */ | 1692 | /* Filenames on VMS are always upper case. */ |
| @@ -1862,7 +1862,7 @@ See also the function `substitute-in-file-name'.") | |||
| 1862 | { | 1862 | { |
| 1863 | if (NILP (defalt)) | 1863 | if (NILP (defalt)) |
| 1864 | defalt = current_buffer->directory; | 1864 | defalt = current_buffer->directory; |
| 1865 | CHECK_STRING (defalt, 1); | 1865 | CHECK_STRING (defalt); |
| 1866 | newdir = XSTRING (defalt)->data; | 1866 | newdir = XSTRING (defalt)->data; |
| 1867 | } | 1867 | } |
| 1868 | 1868 | ||
| @@ -2004,7 +2004,7 @@ duplicates what `expand-file-name' does. */) | |||
| 2004 | unsigned char *xnm; | 2004 | unsigned char *xnm; |
| 2005 | Lisp_Object handler; | 2005 | Lisp_Object handler; |
| 2006 | 2006 | ||
| 2007 | CHECK_STRING (filename, 0); | 2007 | CHECK_STRING (filename); |
| 2008 | 2008 | ||
| 2009 | /* If the file name has special constructs in it, | 2009 | /* If the file name has special constructs in it, |
| 2010 | call the corresponding file handler. */ | 2010 | call the corresponding file handler. */ |
| @@ -2318,8 +2318,8 @@ A prefix arg makes KEEP-TIME non-nil. */) | |||
| 2318 | 2318 | ||
| 2319 | encoded_file = encoded_newname = Qnil; | 2319 | encoded_file = encoded_newname = Qnil; |
| 2320 | GCPRO4 (file, newname, encoded_file, encoded_newname); | 2320 | GCPRO4 (file, newname, encoded_file, encoded_newname); |
| 2321 | CHECK_STRING (file, 0); | 2321 | CHECK_STRING (file); |
| 2322 | CHECK_STRING (newname, 1); | 2322 | CHECK_STRING (newname); |
| 2323 | 2323 | ||
| 2324 | if (!NILP (Ffile_directory_p (newname))) | 2324 | if (!NILP (Ffile_directory_p (newname))) |
| 2325 | newname = Fexpand_file_name (file, newname); | 2325 | newname = Fexpand_file_name (file, newname); |
| @@ -2472,7 +2472,7 @@ DEFUN ("make-directory-internal", Fmake_directory_internal, | |||
| 2472 | Lisp_Object handler; | 2472 | Lisp_Object handler; |
| 2473 | Lisp_Object encoded_dir; | 2473 | Lisp_Object encoded_dir; |
| 2474 | 2474 | ||
| 2475 | CHECK_STRING (directory, 0); | 2475 | CHECK_STRING (directory); |
| 2476 | directory = Fexpand_file_name (directory, Qnil); | 2476 | directory = Fexpand_file_name (directory, Qnil); |
| 2477 | 2477 | ||
| 2478 | handler = Ffind_file_name_handler (directory, Qmake_directory_internal); | 2478 | handler = Ffind_file_name_handler (directory, Qmake_directory_internal); |
| @@ -2502,7 +2502,7 @@ DEFUN ("delete-directory", Fdelete_directory, Sdelete_directory, 1, 1, "FDelete | |||
| 2502 | Lisp_Object handler; | 2502 | Lisp_Object handler; |
| 2503 | Lisp_Object encoded_dir; | 2503 | Lisp_Object encoded_dir; |
| 2504 | 2504 | ||
| 2505 | CHECK_STRING (directory, 0); | 2505 | CHECK_STRING (directory); |
| 2506 | directory = Fdirectory_file_name (Fexpand_file_name (directory, Qnil)); | 2506 | directory = Fdirectory_file_name (Fexpand_file_name (directory, Qnil)); |
| 2507 | 2507 | ||
| 2508 | handler = Ffind_file_name_handler (directory, Qdelete_directory); | 2508 | handler = Ffind_file_name_handler (directory, Qdelete_directory); |
| @@ -2528,7 +2528,7 @@ If file has multiple names, it continues to exist with the other names. */) | |||
| 2528 | Lisp_Object handler; | 2528 | Lisp_Object handler; |
| 2529 | Lisp_Object encoded_file; | 2529 | Lisp_Object encoded_file; |
| 2530 | 2530 | ||
| 2531 | CHECK_STRING (filename, 0); | 2531 | CHECK_STRING (filename); |
| 2532 | filename = Fexpand_file_name (filename, Qnil); | 2532 | filename = Fexpand_file_name (filename, Qnil); |
| 2533 | 2533 | ||
| 2534 | handler = Ffind_file_name_handler (filename, Qdelete_file); | 2534 | handler = Ffind_file_name_handler (filename, Qdelete_file); |
| @@ -2579,8 +2579,8 @@ This is what happens in interactive use with M-x. */) | |||
| 2579 | 2579 | ||
| 2580 | encoded_file = encoded_newname = Qnil; | 2580 | encoded_file = encoded_newname = Qnil; |
| 2581 | GCPRO4 (file, newname, encoded_file, encoded_newname); | 2581 | GCPRO4 (file, newname, encoded_file, encoded_newname); |
| 2582 | CHECK_STRING (file, 0); | 2582 | CHECK_STRING (file); |
| 2583 | CHECK_STRING (newname, 1); | 2583 | CHECK_STRING (newname); |
| 2584 | file = Fexpand_file_name (file, Qnil); | 2584 | file = Fexpand_file_name (file, Qnil); |
| 2585 | newname = Fexpand_file_name (newname, Qnil); | 2585 | newname = Fexpand_file_name (newname, Qnil); |
| 2586 | 2586 | ||
| @@ -2655,8 +2655,8 @@ This is what happens in interactive use with M-x. */) | |||
| 2655 | 2655 | ||
| 2656 | GCPRO4 (file, newname, encoded_file, encoded_newname); | 2656 | GCPRO4 (file, newname, encoded_file, encoded_newname); |
| 2657 | encoded_file = encoded_newname = Qnil; | 2657 | encoded_file = encoded_newname = Qnil; |
| 2658 | CHECK_STRING (file, 0); | 2658 | CHECK_STRING (file); |
| 2659 | CHECK_STRING (newname, 1); | 2659 | CHECK_STRING (newname); |
| 2660 | file = Fexpand_file_name (file, Qnil); | 2660 | file = Fexpand_file_name (file, Qnil); |
| 2661 | newname = Fexpand_file_name (newname, Qnil); | 2661 | newname = Fexpand_file_name (newname, Qnil); |
| 2662 | 2662 | ||
| @@ -2718,8 +2718,8 @@ This happens for interactive use with M-x. */) | |||
| 2718 | 2718 | ||
| 2719 | GCPRO4 (filename, linkname, encoded_filename, encoded_linkname); | 2719 | GCPRO4 (filename, linkname, encoded_filename, encoded_linkname); |
| 2720 | encoded_filename = encoded_linkname = Qnil; | 2720 | encoded_filename = encoded_linkname = Qnil; |
| 2721 | CHECK_STRING (filename, 0); | 2721 | CHECK_STRING (filename); |
| 2722 | CHECK_STRING (linkname, 1); | 2722 | CHECK_STRING (linkname); |
| 2723 | /* If the link target has a ~, we must expand it to get | 2723 | /* If the link target has a ~, we must expand it to get |
| 2724 | a truly valid file name. Otherwise, do not expand; | 2724 | a truly valid file name. Otherwise, do not expand; |
| 2725 | we want to permit links to relative file names. */ | 2725 | we want to permit links to relative file names. */ |
| @@ -2786,12 +2786,12 @@ If STRING is nil or a null string, the logical name NAME is deleted. */) | |||
| 2786 | Lisp_Object name; | 2786 | Lisp_Object name; |
| 2787 | Lisp_Object string; | 2787 | Lisp_Object string; |
| 2788 | { | 2788 | { |
| 2789 | CHECK_STRING (name, 0); | 2789 | CHECK_STRING (name); |
| 2790 | if (NILP (string)) | 2790 | if (NILP (string)) |
| 2791 | delete_logical_name (XSTRING (name)->data); | 2791 | delete_logical_name (XSTRING (name)->data); |
| 2792 | else | 2792 | else |
| 2793 | { | 2793 | { |
| 2794 | CHECK_STRING (string, 1); | 2794 | CHECK_STRING (string); |
| 2795 | 2795 | ||
| 2796 | if (XSTRING (string)->size == 0) | 2796 | if (XSTRING (string)->size == 0) |
| 2797 | delete_logical_name (XSTRING (name)->data); | 2797 | delete_logical_name (XSTRING (name)->data); |
| @@ -2812,8 +2812,8 @@ DEFUN ("sysnetunam", Fsysnetunam, Ssysnetunam, 2, 2, 0, | |||
| 2812 | { | 2812 | { |
| 2813 | int netresult; | 2813 | int netresult; |
| 2814 | 2814 | ||
| 2815 | CHECK_STRING (path, 0); | 2815 | CHECK_STRING (path); |
| 2816 | CHECK_STRING (login, 0); | 2816 | CHECK_STRING (login); |
| 2817 | 2817 | ||
| 2818 | netresult = netunam (XSTRING (path)->data, XSTRING (login)->data); | 2818 | netresult = netunam (XSTRING (path)->data, XSTRING (login)->data); |
| 2819 | 2819 | ||
| @@ -2833,7 +2833,7 @@ On Unix, this is a name starting with a `/' or a `~'. */) | |||
| 2833 | { | 2833 | { |
| 2834 | unsigned char *ptr; | 2834 | unsigned char *ptr; |
| 2835 | 2835 | ||
| 2836 | CHECK_STRING (filename, 0); | 2836 | CHECK_STRING (filename); |
| 2837 | ptr = XSTRING (filename)->data; | 2837 | ptr = XSTRING (filename)->data; |
| 2838 | if (IS_DIRECTORY_SEP (*ptr) || *ptr == '~' | 2838 | if (IS_DIRECTORY_SEP (*ptr) || *ptr == '~' |
| 2839 | #ifdef VMS | 2839 | #ifdef VMS |
| @@ -2920,7 +2920,7 @@ See also `file-readable-p' and `file-attributes'. */) | |||
| 2920 | Lisp_Object handler; | 2920 | Lisp_Object handler; |
| 2921 | struct stat statbuf; | 2921 | struct stat statbuf; |
| 2922 | 2922 | ||
| 2923 | CHECK_STRING (filename, 0); | 2923 | CHECK_STRING (filename); |
| 2924 | absname = Fexpand_file_name (filename, Qnil); | 2924 | absname = Fexpand_file_name (filename, Qnil); |
| 2925 | 2925 | ||
| 2926 | /* If the file name has special constructs in it, | 2926 | /* If the file name has special constructs in it, |
| @@ -2943,7 +2943,7 @@ For a directory, this means you can access files in that directory. */) | |||
| 2943 | Lisp_Object absname; | 2943 | Lisp_Object absname; |
| 2944 | Lisp_Object handler; | 2944 | Lisp_Object handler; |
| 2945 | 2945 | ||
| 2946 | CHECK_STRING (filename, 0); | 2946 | CHECK_STRING (filename); |
| 2947 | absname = Fexpand_file_name (filename, Qnil); | 2947 | absname = Fexpand_file_name (filename, Qnil); |
| 2948 | 2948 | ||
| 2949 | /* If the file name has special constructs in it, | 2949 | /* If the file name has special constructs in it, |
| @@ -2969,7 +2969,7 @@ See also `file-exists-p' and `file-attributes'. */) | |||
| 2969 | int flags; | 2969 | int flags; |
| 2970 | struct stat statbuf; | 2970 | struct stat statbuf; |
| 2971 | 2971 | ||
| 2972 | CHECK_STRING (filename, 0); | 2972 | CHECK_STRING (filename); |
| 2973 | absname = Fexpand_file_name (filename, Qnil); | 2973 | absname = Fexpand_file_name (filename, Qnil); |
| 2974 | 2974 | ||
| 2975 | /* If the file name has special constructs in it, | 2975 | /* If the file name has special constructs in it, |
| @@ -3017,7 +3017,7 @@ DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0, | |||
| 3017 | Lisp_Object handler; | 3017 | Lisp_Object handler; |
| 3018 | struct stat statbuf; | 3018 | struct stat statbuf; |
| 3019 | 3019 | ||
| 3020 | CHECK_STRING (filename, 0); | 3020 | CHECK_STRING (filename); |
| 3021 | absname = Fexpand_file_name (filename, Qnil); | 3021 | absname = Fexpand_file_name (filename, Qnil); |
| 3022 | 3022 | ||
| 3023 | /* If the file name has special constructs in it, | 3023 | /* If the file name has special constructs in it, |
| @@ -3065,10 +3065,10 @@ If there is no error, we return nil. */) | |||
| 3065 | Lisp_Object handler, encoded_filename, absname; | 3065 | Lisp_Object handler, encoded_filename, absname; |
| 3066 | int fd; | 3066 | int fd; |
| 3067 | 3067 | ||
| 3068 | CHECK_STRING (filename, 0); | 3068 | CHECK_STRING (filename); |
| 3069 | absname = Fexpand_file_name (filename, Qnil); | 3069 | absname = Fexpand_file_name (filename, Qnil); |
| 3070 | 3070 | ||
| 3071 | CHECK_STRING (string, 1); | 3071 | CHECK_STRING (string); |
| 3072 | 3072 | ||
| 3073 | /* If the file name has special constructs in it, | 3073 | /* If the file name has special constructs in it, |
| 3074 | call the corresponding file handler. */ | 3074 | call the corresponding file handler. */ |
| @@ -3100,7 +3100,7 @@ Otherwise returns nil. */) | |||
| 3100 | Lisp_Object val; | 3100 | Lisp_Object val; |
| 3101 | Lisp_Object handler; | 3101 | Lisp_Object handler; |
| 3102 | 3102 | ||
| 3103 | CHECK_STRING (filename, 0); | 3103 | CHECK_STRING (filename); |
| 3104 | filename = Fexpand_file_name (filename, Qnil); | 3104 | filename = Fexpand_file_name (filename, Qnil); |
| 3105 | 3105 | ||
| 3106 | /* If the file name has special constructs in it, | 3106 | /* If the file name has special constructs in it, |
| @@ -3287,7 +3287,7 @@ Only the 12 low bits of MODE are used. */) | |||
| 3287 | Lisp_Object handler; | 3287 | Lisp_Object handler; |
| 3288 | 3288 | ||
| 3289 | absname = Fexpand_file_name (filename, current_buffer->directory); | 3289 | absname = Fexpand_file_name (filename, current_buffer->directory); |
| 3290 | CHECK_NUMBER (mode, 1); | 3290 | CHECK_NUMBER (mode); |
| 3291 | 3291 | ||
| 3292 | /* If the file name has special constructs in it, | 3292 | /* If the file name has special constructs in it, |
| 3293 | call the corresponding file handler. */ | 3293 | call the corresponding file handler. */ |
| @@ -3310,7 +3310,7 @@ This setting is inherited by subprocesses. */) | |||
| 3310 | (mode) | 3310 | (mode) |
| 3311 | Lisp_Object mode; | 3311 | Lisp_Object mode; |
| 3312 | { | 3312 | { |
| 3313 | CHECK_NUMBER (mode, 0); | 3313 | CHECK_NUMBER (mode); |
| 3314 | 3314 | ||
| 3315 | umask ((~ XINT (mode)) & 0777); | 3315 | umask ((~ XINT (mode)) & 0777); |
| 3316 | 3316 | ||
| @@ -3361,8 +3361,8 @@ otherwise, if FILE2 does not exist, the answer is t. */) | |||
| 3361 | Lisp_Object handler; | 3361 | Lisp_Object handler; |
| 3362 | struct gcpro gcpro1, gcpro2; | 3362 | struct gcpro gcpro1, gcpro2; |
| 3363 | 3363 | ||
| 3364 | CHECK_STRING (file1, 0); | 3364 | CHECK_STRING (file1); |
| 3365 | CHECK_STRING (file2, 0); | 3365 | CHECK_STRING (file2); |
| 3366 | 3366 | ||
| 3367 | absname1 = Qnil; | 3367 | absname1 = Qnil; |
| 3368 | GCPRO2 (absname1, file2); | 3368 | GCPRO2 (absname1, file2); |
| @@ -3542,7 +3542,7 @@ actually used. */) | |||
| 3542 | 3542 | ||
| 3543 | GCPRO4 (filename, val, p, orig_filename); | 3543 | GCPRO4 (filename, val, p, orig_filename); |
| 3544 | 3544 | ||
| 3545 | CHECK_STRING (filename, 0); | 3545 | CHECK_STRING (filename); |
| 3546 | filename = Fexpand_file_name (filename, Qnil); | 3546 | filename = Fexpand_file_name (filename, Qnil); |
| 3547 | 3547 | ||
| 3548 | /* If the file name has special constructs in it, | 3548 | /* If the file name has special constructs in it, |
| @@ -3636,12 +3636,12 @@ actually used. */) | |||
| 3636 | } | 3636 | } |
| 3637 | 3637 | ||
| 3638 | if (!NILP (beg)) | 3638 | if (!NILP (beg)) |
| 3639 | CHECK_NUMBER (beg, 0); | 3639 | CHECK_NUMBER (beg); |
| 3640 | else | 3640 | else |
| 3641 | XSETFASTINT (beg, 0); | 3641 | XSETFASTINT (beg, 0); |
| 3642 | 3642 | ||
| 3643 | if (!NILP (end)) | 3643 | if (!NILP (end)) |
| 3644 | CHECK_NUMBER (end, 0); | 3644 | CHECK_NUMBER (end); |
| 3645 | else | 3645 | else |
| 3646 | { | 3646 | { |
| 3647 | if (! not_regular) | 3647 | if (! not_regular) |
| @@ -4458,7 +4458,7 @@ actually used. */) | |||
| 4458 | 4458 | ||
| 4459 | insval = call3 (Qformat_decode, | 4459 | insval = call3 (Qformat_decode, |
| 4460 | Qnil, make_number (inserted), visit); | 4460 | Qnil, make_number (inserted), visit); |
| 4461 | CHECK_NUMBER (insval, 0); | 4461 | CHECK_NUMBER (insval); |
| 4462 | inserted = XFASTINT (insval); | 4462 | inserted = XFASTINT (insval); |
| 4463 | 4463 | ||
| 4464 | if (!NILP (visit)) | 4464 | if (!NILP (visit)) |
| @@ -4484,7 +4484,7 @@ actually used. */) | |||
| 4484 | insval = call1 (Fcar (p), make_number (inserted)); | 4484 | insval = call1 (Fcar (p), make_number (inserted)); |
| 4485 | if (!NILP (insval)) | 4485 | if (!NILP (insval)) |
| 4486 | { | 4486 | { |
| 4487 | CHECK_NUMBER (insval, 0); | 4487 | CHECK_NUMBER (insval); |
| 4488 | inserted = XFASTINT (insval); | 4488 | inserted = XFASTINT (insval); |
| 4489 | } | 4489 | } |
| 4490 | QUIT; | 4490 | QUIT; |
| @@ -5290,7 +5290,7 @@ This means that the file has not been changed since it was visited or saved. */ | |||
| 5290 | Lisp_Object handler; | 5290 | Lisp_Object handler; |
| 5291 | Lisp_Object filename; | 5291 | Lisp_Object filename; |
| 5292 | 5292 | ||
| 5293 | CHECK_BUFFER (buf, 0); | 5293 | CHECK_BUFFER (buf); |
| 5294 | b = XBUFFER (buf); | 5294 | b = XBUFFER (buf); |
| 5295 | 5295 | ||
| 5296 | if (!STRINGP (b->filename)) return Qt; | 5296 | if (!STRINGP (b->filename)) return Qt; |
| @@ -5723,7 +5723,7 @@ DEFUN ("read-file-name-internal", Fread_file_name_internal, Sread_file_name_inte | |||
| 5723 | int changed; | 5723 | int changed; |
| 5724 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 5724 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 5725 | 5725 | ||
| 5726 | CHECK_STRING (string, 0); | 5726 | CHECK_STRING (string); |
| 5727 | 5727 | ||
| 5728 | realdir = dir; | 5728 | realdir = dir; |
| 5729 | name = string; | 5729 | name = string; |
| @@ -5853,7 +5853,7 @@ provides a file dialog box. */) | |||
| 5853 | } | 5853 | } |
| 5854 | if (!NILP (default_filename)) | 5854 | if (!NILP (default_filename)) |
| 5855 | { | 5855 | { |
| 5856 | CHECK_STRING (default_filename, 3); | 5856 | CHECK_STRING (default_filename); |
| 5857 | default_filename = double_dollars (default_filename); | 5857 | default_filename = double_dollars (default_filename); |
| 5858 | } | 5858 | } |
| 5859 | 5859 | ||
diff --git a/src/filelock.c b/src/filelock.c index bdfcda9ade0..c1c4f88dbe3 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -683,7 +683,7 @@ or else nothing is done if current buffer isn't visiting a file.") | |||
| 683 | if (NILP (file)) | 683 | if (NILP (file)) |
| 684 | file = current_buffer->file_truename; | 684 | file = current_buffer->file_truename; |
| 685 | else | 685 | else |
| 686 | CHECK_STRING (file, 0); | 686 | CHECK_STRING (file); |
| 687 | if (SAVE_MODIFF < MODIFF | 687 | if (SAVE_MODIFF < MODIFF |
| 688 | && !NILP (file)) | 688 | && !NILP (file)) |
| 689 | lock_file (file); | 689 | lock_file (file); |
diff --git a/src/floatfns.c b/src/floatfns.c index f8a3e6f369d..383e2af04bc 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -218,7 +218,7 @@ double | |||
| 218 | extract_float (num) | 218 | extract_float (num) |
| 219 | Lisp_Object num; | 219 | Lisp_Object num; |
| 220 | { | 220 | { |
| 221 | CHECK_NUMBER_OR_FLOAT (num, 0); | 221 | CHECK_NUMBER_OR_FLOAT (num); |
| 222 | 222 | ||
| 223 | if (FLOATP (num)) | 223 | if (FLOATP (num)) |
| 224 | return XFLOAT_DATA (num); | 224 | return XFLOAT_DATA (num); |
| @@ -445,8 +445,8 @@ DEFUN ("expt", Fexpt, Sexpt, 2, 2, 0, | |||
| 445 | { | 445 | { |
| 446 | double f1, f2; | 446 | double f1, f2; |
| 447 | 447 | ||
| 448 | CHECK_NUMBER_OR_FLOAT (arg1, 0); | 448 | CHECK_NUMBER_OR_FLOAT (arg1); |
| 449 | CHECK_NUMBER_OR_FLOAT (arg2, 0); | 449 | CHECK_NUMBER_OR_FLOAT (arg2); |
| 450 | if (INTEGERP (arg1) /* common lisp spec */ | 450 | if (INTEGERP (arg1) /* common lisp spec */ |
| 451 | && INTEGERP (arg2)) /* don't promote, if both are ints */ | 451 | && INTEGERP (arg2)) /* don't promote, if both are ints */ |
| 452 | { /* this can be improved by pre-calculating */ | 452 | { /* this can be improved by pre-calculating */ |
| @@ -646,7 +646,7 @@ DEFUN ("abs", Fabs, Sabs, 1, 1, 0, | |||
| 646 | (arg) | 646 | (arg) |
| 647 | register Lisp_Object arg; | 647 | register Lisp_Object arg; |
| 648 | { | 648 | { |
| 649 | CHECK_NUMBER_OR_FLOAT (arg, 0); | 649 | CHECK_NUMBER_OR_FLOAT (arg); |
| 650 | 650 | ||
| 651 | if (FLOATP (arg)) | 651 | if (FLOATP (arg)) |
| 652 | IN_FLOAT (arg = make_float (fabs (XFLOAT_DATA (arg))), "abs", arg); | 652 | IN_FLOAT (arg = make_float (fabs (XFLOAT_DATA (arg))), "abs", arg); |
| @@ -661,7 +661,7 @@ DEFUN ("float", Ffloat, Sfloat, 1, 1, 0, | |||
| 661 | (arg) | 661 | (arg) |
| 662 | register Lisp_Object arg; | 662 | register Lisp_Object arg; |
| 663 | { | 663 | { |
| 664 | CHECK_NUMBER_OR_FLOAT (arg, 0); | 664 | CHECK_NUMBER_OR_FLOAT (arg); |
| 665 | 665 | ||
| 666 | if (INTEGERP (arg)) | 666 | if (INTEGERP (arg)) |
| 667 | return make_float ((double) XINT (arg)); | 667 | return make_float ((double) XINT (arg)); |
| @@ -727,13 +727,13 @@ rounding_driver (arg, divisor, double_round, int_round2, name) | |||
| 727 | EMACS_INT (*int_round2) (); | 727 | EMACS_INT (*int_round2) (); |
| 728 | char *name; | 728 | char *name; |
| 729 | { | 729 | { |
| 730 | CHECK_NUMBER_OR_FLOAT (arg, 0); | 730 | CHECK_NUMBER_OR_FLOAT (arg); |
| 731 | 731 | ||
| 732 | if (! NILP (divisor)) | 732 | if (! NILP (divisor)) |
| 733 | { | 733 | { |
| 734 | EMACS_INT i1, i2; | 734 | EMACS_INT i1, i2; |
| 735 | 735 | ||
| 736 | CHECK_NUMBER_OR_FLOAT (divisor, 1); | 736 | CHECK_NUMBER_OR_FLOAT (divisor); |
| 737 | 737 | ||
| 738 | if (FLOATP (arg) || FLOATP (divisor)) | 738 | if (FLOATP (arg) || FLOATP (divisor)) |
| 739 | { | 739 | { |
| @@ -207,7 +207,7 @@ If STRING is a multibyte string, this is greater than the length of STRING. */) | |||
| 207 | (string) | 207 | (string) |
| 208 | Lisp_Object string; | 208 | Lisp_Object string; |
| 209 | { | 209 | { |
| 210 | CHECK_STRING (string, 1); | 210 | CHECK_STRING (string); |
| 211 | return make_number (STRING_BYTES (XSTRING (string))); | 211 | return make_number (STRING_BYTES (XSTRING (string))); |
| 212 | } | 212 | } |
| 213 | 213 | ||
| @@ -222,8 +222,8 @@ Symbols are also allowed; their print names are used instead. */) | |||
| 222 | XSETSTRING (s1, XSYMBOL (s1)->name); | 222 | XSETSTRING (s1, XSYMBOL (s1)->name); |
| 223 | if (SYMBOLP (s2)) | 223 | if (SYMBOLP (s2)) |
| 224 | XSETSTRING (s2, XSYMBOL (s2)->name); | 224 | XSETSTRING (s2, XSYMBOL (s2)->name); |
| 225 | CHECK_STRING (s1, 0); | 225 | CHECK_STRING (s1); |
| 226 | CHECK_STRING (s2, 1); | 226 | CHECK_STRING (s2); |
| 227 | 227 | ||
| 228 | if (XSTRING (s1)->size != XSTRING (s2)->size | 228 | if (XSTRING (s1)->size != XSTRING (s2)->size |
| 229 | || STRING_BYTES (XSTRING (s1)) != STRING_BYTES (XSTRING (s2)) | 229 | || STRING_BYTES (XSTRING (s1)) != STRING_BYTES (XSTRING (s2)) |
| @@ -253,18 +253,18 @@ If string STR1 is greater, the value is a positive number N; | |||
| 253 | register int end1_char, end2_char; | 253 | register int end1_char, end2_char; |
| 254 | register int i1, i1_byte, i2, i2_byte; | 254 | register int i1, i1_byte, i2, i2_byte; |
| 255 | 255 | ||
| 256 | CHECK_STRING (str1, 0); | 256 | CHECK_STRING (str1); |
| 257 | CHECK_STRING (str2, 1); | 257 | CHECK_STRING (str2); |
| 258 | if (NILP (start1)) | 258 | if (NILP (start1)) |
| 259 | start1 = make_number (0); | 259 | start1 = make_number (0); |
| 260 | if (NILP (start2)) | 260 | if (NILP (start2)) |
| 261 | start2 = make_number (0); | 261 | start2 = make_number (0); |
| 262 | CHECK_NATNUM (start1, 2); | 262 | CHECK_NATNUM (start1); |
| 263 | CHECK_NATNUM (start2, 3); | 263 | CHECK_NATNUM (start2); |
| 264 | if (! NILP (end1)) | 264 | if (! NILP (end1)) |
| 265 | CHECK_NATNUM (end1, 4); | 265 | CHECK_NATNUM (end1); |
| 266 | if (! NILP (end2)) | 266 | if (! NILP (end2)) |
| 267 | CHECK_NATNUM (end2, 4); | 267 | CHECK_NATNUM (end2); |
| 268 | 268 | ||
| 269 | i1 = XINT (start1); | 269 | i1 = XINT (start1); |
| 270 | i2 = XINT (start2); | 270 | i2 = XINT (start2); |
| @@ -349,8 +349,8 @@ Symbols are also allowed; their print names are used instead. */) | |||
| 349 | XSETSTRING (s1, XSYMBOL (s1)->name); | 349 | XSETSTRING (s1, XSYMBOL (s1)->name); |
| 350 | if (SYMBOLP (s2)) | 350 | if (SYMBOLP (s2)) |
| 351 | XSETSTRING (s2, XSYMBOL (s2)->name); | 351 | XSETSTRING (s2, XSYMBOL (s2)->name); |
| 352 | CHECK_STRING (s1, 0); | 352 | CHECK_STRING (s1); |
| 353 | CHECK_STRING (s2, 1); | 353 | CHECK_STRING (s2); |
| 354 | 354 | ||
| 355 | i1 = i1_byte = i2 = i2_byte = 0; | 355 | i1 = i1_byte = i2 = i2_byte = 0; |
| 356 | 356 | ||
| @@ -791,7 +791,7 @@ concat (nargs, args, target_type, last_special) | |||
| 791 | XVECTOR (val)->contents[toindex++] = elt; | 791 | XVECTOR (val)->contents[toindex++] = elt; |
| 792 | else | 792 | else |
| 793 | { | 793 | { |
| 794 | CHECK_NUMBER (elt, 0); | 794 | CHECK_NUMBER (elt); |
| 795 | if (SINGLE_BYTE_CHAR_P (XINT (elt))) | 795 | if (SINGLE_BYTE_CHAR_P (XINT (elt))) |
| 796 | { | 796 | { |
| 797 | if (some_multibyte) | 797 | if (some_multibyte) |
| @@ -1061,7 +1061,7 @@ each unibyte character to a multibyte character. */) | |||
| 1061 | (string) | 1061 | (string) |
| 1062 | Lisp_Object string; | 1062 | Lisp_Object string; |
| 1063 | { | 1063 | { |
| 1064 | CHECK_STRING (string, 0); | 1064 | CHECK_STRING (string); |
| 1065 | 1065 | ||
| 1066 | return string_make_multibyte (string); | 1066 | return string_make_multibyte (string); |
| 1067 | } | 1067 | } |
| @@ -1074,7 +1074,7 @@ by using just the low 8 bits. */) | |||
| 1074 | (string) | 1074 | (string) |
| 1075 | Lisp_Object string; | 1075 | Lisp_Object string; |
| 1076 | { | 1076 | { |
| 1077 | CHECK_STRING (string, 0); | 1077 | CHECK_STRING (string); |
| 1078 | 1078 | ||
| 1079 | return string_make_unibyte (string); | 1079 | return string_make_unibyte (string); |
| 1080 | } | 1080 | } |
| @@ -1090,7 +1090,7 @@ corresponding single byte. */) | |||
| 1090 | (string) | 1090 | (string) |
| 1091 | Lisp_Object string; | 1091 | Lisp_Object string; |
| 1092 | { | 1092 | { |
| 1093 | CHECK_STRING (string, 0); | 1093 | CHECK_STRING (string); |
| 1094 | 1094 | ||
| 1095 | if (STRING_MULTIBYTE (string)) | 1095 | if (STRING_MULTIBYTE (string)) |
| 1096 | { | 1096 | { |
| @@ -1116,7 +1116,7 @@ multibyte character of charset `eight-bit-control' or `eight-bit-graphic'. */) | |||
| 1116 | (string) | 1116 | (string) |
| 1117 | Lisp_Object string; | 1117 | Lisp_Object string; |
| 1118 | { | 1118 | { |
| 1119 | CHECK_STRING (string, 0); | 1119 | CHECK_STRING (string); |
| 1120 | 1120 | ||
| 1121 | if (! STRING_MULTIBYTE (string)) | 1121 | if (! STRING_MULTIBYTE (string)) |
| 1122 | { | 1122 | { |
| @@ -1150,7 +1150,7 @@ Elements of ALIST that are not conses are also shared. */) | |||
| 1150 | { | 1150 | { |
| 1151 | register Lisp_Object tem; | 1151 | register Lisp_Object tem; |
| 1152 | 1152 | ||
| 1153 | CHECK_LIST (alist, 0); | 1153 | CHECK_LIST (alist); |
| 1154 | if (NILP (alist)) | 1154 | if (NILP (alist)) |
| 1155 | return alist; | 1155 | return alist; |
| 1156 | alist = concat (1, &alist, Lisp_Cons, 0); | 1156 | alist = concat (1, &alist, Lisp_Cons, 0); |
| @@ -1185,7 +1185,7 @@ This function allows vectors as well as strings. */) | |||
| 1185 | if (! (STRINGP (string) || VECTORP (string))) | 1185 | if (! (STRINGP (string) || VECTORP (string))) |
| 1186 | wrong_type_argument (Qarrayp, string); | 1186 | wrong_type_argument (Qarrayp, string); |
| 1187 | 1187 | ||
| 1188 | CHECK_NUMBER (from, 1); | 1188 | CHECK_NUMBER (from); |
| 1189 | 1189 | ||
| 1190 | if (STRINGP (string)) | 1190 | if (STRINGP (string)) |
| 1191 | { | 1191 | { |
| @@ -1202,7 +1202,7 @@ This function allows vectors as well as strings. */) | |||
| 1202 | } | 1202 | } |
| 1203 | else | 1203 | else |
| 1204 | { | 1204 | { |
| 1205 | CHECK_NUMBER (to, 2); | 1205 | CHECK_NUMBER (to); |
| 1206 | 1206 | ||
| 1207 | to_char = XINT (to); | 1207 | to_char = XINT (to); |
| 1208 | if (to_char < 0) | 1208 | if (to_char < 0) |
| @@ -1285,7 +1285,7 @@ DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, | |||
| 1285 | register Lisp_Object list; | 1285 | register Lisp_Object list; |
| 1286 | { | 1286 | { |
| 1287 | register int i, num; | 1287 | register int i, num; |
| 1288 | CHECK_NUMBER (n, 0); | 1288 | CHECK_NUMBER (n); |
| 1289 | num = XINT (n); | 1289 | num = XINT (n); |
| 1290 | for (i = 0; i < num && !NILP (list); i++) | 1290 | for (i = 0; i < num && !NILP (list); i++) |
| 1291 | { | 1291 | { |
| @@ -1311,7 +1311,7 @@ DEFUN ("elt", Felt, Selt, 2, 2, 0, | |||
| 1311 | (sequence, n) | 1311 | (sequence, n) |
| 1312 | register Lisp_Object sequence, n; | 1312 | register Lisp_Object sequence, n; |
| 1313 | { | 1313 | { |
| 1314 | CHECK_NUMBER (n, 0); | 1314 | CHECK_NUMBER (n); |
| 1315 | while (1) | 1315 | while (1) |
| 1316 | { | 1316 | { |
| 1317 | if (CONSP (sequence) || NILP (sequence)) | 1317 | if (CONSP (sequence) || NILP (sequence)) |
| @@ -1891,7 +1891,7 @@ This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */) | |||
| 1891 | (symbol, propname) | 1891 | (symbol, propname) |
| 1892 | Lisp_Object symbol, propname; | 1892 | Lisp_Object symbol, propname; |
| 1893 | { | 1893 | { |
| 1894 | CHECK_SYMBOL (symbol, 0); | 1894 | CHECK_SYMBOL (symbol); |
| 1895 | return Fplist_get (XSYMBOL (symbol)->plist, propname); | 1895 | return Fplist_get (XSYMBOL (symbol)->plist, propname); |
| 1896 | } | 1896 | } |
| 1897 | 1897 | ||
| @@ -1937,7 +1937,7 @@ It can be retrieved with `(get SYMBOL PROPNAME)'. */) | |||
| 1937 | (symbol, propname, value) | 1937 | (symbol, propname, value) |
| 1938 | Lisp_Object symbol, propname, value; | 1938 | Lisp_Object symbol, propname, value; |
| 1939 | { | 1939 | { |
| 1940 | CHECK_SYMBOL (symbol, 0); | 1940 | CHECK_SYMBOL (symbol); |
| 1941 | XSYMBOL (symbol)->plist | 1941 | XSYMBOL (symbol)->plist |
| 1942 | = Fplist_put (XSYMBOL (symbol)->plist, propname, value); | 1942 | = Fplist_put (XSYMBOL (symbol)->plist, propname, value); |
| 1943 | return value; | 1943 | return value; |
| @@ -2098,7 +2098,7 @@ ARRAY is a vector, string, char-table, or bool-vector. */) | |||
| 2098 | else if (STRINGP (array)) | 2098 | else if (STRINGP (array)) |
| 2099 | { | 2099 | { |
| 2100 | register unsigned char *p = XSTRING (array)->data; | 2100 | register unsigned char *p = XSTRING (array)->data; |
| 2101 | CHECK_NUMBER (item, 1); | 2101 | CHECK_NUMBER (item); |
| 2102 | charval = XINT (item); | 2102 | charval = XINT (item); |
| 2103 | size = XSTRING (array)->size; | 2103 | size = XSTRING (array)->size; |
| 2104 | if (STRING_MULTIBYTE (array)) | 2104 | if (STRING_MULTIBYTE (array)) |
| @@ -2148,7 +2148,7 @@ DEFUN ("char-table-subtype", Fchar_table_subtype, Schar_table_subtype, | |||
| 2148 | (char_table) | 2148 | (char_table) |
| 2149 | Lisp_Object char_table; | 2149 | Lisp_Object char_table; |
| 2150 | { | 2150 | { |
| 2151 | CHECK_CHAR_TABLE (char_table, 0); | 2151 | CHECK_CHAR_TABLE (char_table); |
| 2152 | 2152 | ||
| 2153 | return XCHAR_TABLE (char_table)->purpose; | 2153 | return XCHAR_TABLE (char_table)->purpose; |
| 2154 | } | 2154 | } |
| @@ -2163,7 +2163,7 @@ then the actual applicable value is inherited from the parent char-table | |||
| 2163 | (char_table) | 2163 | (char_table) |
| 2164 | Lisp_Object char_table; | 2164 | Lisp_Object char_table; |
| 2165 | { | 2165 | { |
| 2166 | CHECK_CHAR_TABLE (char_table, 0); | 2166 | CHECK_CHAR_TABLE (char_table); |
| 2167 | 2167 | ||
| 2168 | return XCHAR_TABLE (char_table)->parent; | 2168 | return XCHAR_TABLE (char_table)->parent; |
| 2169 | } | 2169 | } |
| @@ -2177,11 +2177,11 @@ PARENT must be either nil or another char-table. */) | |||
| 2177 | { | 2177 | { |
| 2178 | Lisp_Object temp; | 2178 | Lisp_Object temp; |
| 2179 | 2179 | ||
| 2180 | CHECK_CHAR_TABLE (char_table, 0); | 2180 | CHECK_CHAR_TABLE (char_table); |
| 2181 | 2181 | ||
| 2182 | if (!NILP (parent)) | 2182 | if (!NILP (parent)) |
| 2183 | { | 2183 | { |
| 2184 | CHECK_CHAR_TABLE (parent, 0); | 2184 | CHECK_CHAR_TABLE (parent); |
| 2185 | 2185 | ||
| 2186 | for (temp = parent; !NILP (temp); temp = XCHAR_TABLE (temp)->parent) | 2186 | for (temp = parent; !NILP (temp); temp = XCHAR_TABLE (temp)->parent) |
| 2187 | if (EQ (temp, char_table)) | 2187 | if (EQ (temp, char_table)) |
| @@ -2199,8 +2199,8 @@ DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, | |||
| 2199 | (char_table, n) | 2199 | (char_table, n) |
| 2200 | Lisp_Object char_table, n; | 2200 | Lisp_Object char_table, n; |
| 2201 | { | 2201 | { |
| 2202 | CHECK_CHAR_TABLE (char_table, 1); | 2202 | CHECK_CHAR_TABLE (char_table); |
| 2203 | CHECK_NUMBER (n, 2); | 2203 | CHECK_NUMBER (n); |
| 2204 | if (XINT (n) < 0 | 2204 | if (XINT (n) < 0 |
| 2205 | || XINT (n) >= CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (char_table))) | 2205 | || XINT (n) >= CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (char_table))) |
| 2206 | args_out_of_range (char_table, n); | 2206 | args_out_of_range (char_table, n); |
| @@ -2215,8 +2215,8 @@ DEFUN ("set-char-table-extra-slot", Fset_char_table_extra_slot, | |||
| 2215 | (char_table, n, value) | 2215 | (char_table, n, value) |
| 2216 | Lisp_Object char_table, n, value; | 2216 | Lisp_Object char_table, n, value; |
| 2217 | { | 2217 | { |
| 2218 | CHECK_CHAR_TABLE (char_table, 1); | 2218 | CHECK_CHAR_TABLE (char_table); |
| 2219 | CHECK_NUMBER (n, 2); | 2219 | CHECK_NUMBER (n); |
| 2220 | if (XINT (n) < 0 | 2220 | if (XINT (n) < 0 |
| 2221 | || XINT (n) >= CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (char_table))) | 2221 | || XINT (n) >= CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (char_table))) |
| 2222 | args_out_of_range (char_table, n); | 2222 | args_out_of_range (char_table, n); |
| @@ -2233,7 +2233,7 @@ a character set name, or a character code. */) | |||
| 2233 | (char_table, range) | 2233 | (char_table, range) |
| 2234 | Lisp_Object char_table, range; | 2234 | Lisp_Object char_table, range; |
| 2235 | { | 2235 | { |
| 2236 | CHECK_CHAR_TABLE (char_table, 0); | 2236 | CHECK_CHAR_TABLE (char_table); |
| 2237 | 2237 | ||
| 2238 | if (EQ (range, Qnil)) | 2238 | if (EQ (range, Qnil)) |
| 2239 | return XCHAR_TABLE (char_table)->defalt; | 2239 | return XCHAR_TABLE (char_table)->defalt; |
| @@ -2244,7 +2244,7 @@ a character set name, or a character code. */) | |||
| 2244 | Lisp_Object charset_info; | 2244 | Lisp_Object charset_info; |
| 2245 | 2245 | ||
| 2246 | charset_info = Fget (range, Qcharset); | 2246 | charset_info = Fget (range, Qcharset); |
| 2247 | CHECK_VECTOR (charset_info, 0); | 2247 | CHECK_VECTOR (charset_info); |
| 2248 | 2248 | ||
| 2249 | return Faref (char_table, | 2249 | return Faref (char_table, |
| 2250 | make_number (XINT (XVECTOR (charset_info)->contents[0]) | 2250 | make_number (XINT (XVECTOR (charset_info)->contents[0]) |
| @@ -2281,7 +2281,7 @@ a coding system, or a character code. */) | |||
| 2281 | { | 2281 | { |
| 2282 | int i; | 2282 | int i; |
| 2283 | 2283 | ||
| 2284 | CHECK_CHAR_TABLE (char_table, 0); | 2284 | CHECK_CHAR_TABLE (char_table); |
| 2285 | 2285 | ||
| 2286 | if (EQ (range, Qt)) | 2286 | if (EQ (range, Qt)) |
| 2287 | for (i = 0; i < CHAR_TABLE_ORDINARY_SLOTS; i++) | 2287 | for (i = 0; i < CHAR_TABLE_ORDINARY_SLOTS; i++) |
| @@ -2293,7 +2293,7 @@ a coding system, or a character code. */) | |||
| 2293 | Lisp_Object charset_info; | 2293 | Lisp_Object charset_info; |
| 2294 | 2294 | ||
| 2295 | charset_info = Fget (range, Qcharset); | 2295 | charset_info = Fget (range, Qcharset); |
| 2296 | CHECK_VECTOR (charset_info, 0); | 2296 | CHECK_VECTOR (charset_info); |
| 2297 | 2297 | ||
| 2298 | return Faset (char_table, | 2298 | return Faset (char_table, |
| 2299 | make_number (XINT (XVECTOR (charset_info)->contents[0]) | 2299 | make_number (XINT (XVECTOR (charset_info)->contents[0]) |
| @@ -2335,8 +2335,8 @@ See also the documentation of make-char. */) | |||
| 2335 | int c, charset, code1, code2; | 2335 | int c, charset, code1, code2; |
| 2336 | Lisp_Object temp; | 2336 | Lisp_Object temp; |
| 2337 | 2337 | ||
| 2338 | CHECK_CHAR_TABLE (char_table, 0); | 2338 | CHECK_CHAR_TABLE (char_table); |
| 2339 | CHECK_NUMBER (ch, 1); | 2339 | CHECK_NUMBER (ch); |
| 2340 | 2340 | ||
| 2341 | c = XINT (ch); | 2341 | c = XINT (ch); |
| 2342 | SPLIT_CHAR (c, charset, code1, code2); | 2342 | SPLIT_CHAR (c, charset, code1, code2); |
| @@ -2424,7 +2424,7 @@ DEFUN ("optimize-char-table", Foptimize_char_table, Soptimize_char_table, | |||
| 2424 | int dim; | 2424 | int dim; |
| 2425 | int i, j; | 2425 | int i, j; |
| 2426 | 2426 | ||
| 2427 | CHECK_CHAR_TABLE (table, 0); | 2427 | CHECK_CHAR_TABLE (table); |
| 2428 | 2428 | ||
| 2429 | for (i = CHAR_TABLE_SINGLE_BYTE_SLOTS; i < CHAR_TABLE_ORDINARY_SLOTS; i++) | 2429 | for (i = CHAR_TABLE_SINGLE_BYTE_SLOTS; i < CHAR_TABLE_ORDINARY_SLOTS; i++) |
| 2430 | { | 2430 | { |
| @@ -2533,7 +2533,7 @@ The key is always a possible IDX argument to `aref'. */) | |||
| 2533 | /* The depth of char table is at most 3. */ | 2533 | /* The depth of char table is at most 3. */ |
| 2534 | Lisp_Object indices[3]; | 2534 | Lisp_Object indices[3]; |
| 2535 | 2535 | ||
| 2536 | CHECK_CHAR_TABLE (char_table, 1); | 2536 | CHECK_CHAR_TABLE (char_table); |
| 2537 | 2537 | ||
| 2538 | map_char_table (NULL, function, char_table, char_table, 0, indices); | 2538 | map_char_table (NULL, function, char_table, char_table, 0, indices); |
| 2539 | return Qnil; | 2539 | return Qnil; |
| @@ -2817,7 +2817,7 @@ is nil and `use-dialog-box' is non-nil. */) | |||
| 2817 | 2817 | ||
| 2818 | map = Fsymbol_value (intern ("query-replace-map")); | 2818 | map = Fsymbol_value (intern ("query-replace-map")); |
| 2819 | 2819 | ||
| 2820 | CHECK_STRING (prompt, 0); | 2820 | CHECK_STRING (prompt); |
| 2821 | xprompt = prompt; | 2821 | xprompt = prompt; |
| 2822 | GCPRO2 (prompt, xprompt); | 2822 | GCPRO2 (prompt, xprompt); |
| 2823 | 2823 | ||
| @@ -2947,7 +2947,7 @@ is nil, and `use-dialog-box' is non-nil. */) | |||
| 2947 | Lisp_Object args[2]; | 2947 | Lisp_Object args[2]; |
| 2948 | struct gcpro gcpro1; | 2948 | struct gcpro gcpro1; |
| 2949 | 2949 | ||
| 2950 | CHECK_STRING (prompt, 0); | 2950 | CHECK_STRING (prompt); |
| 2951 | 2951 | ||
| 2952 | #ifdef HAVE_MENUS | 2952 | #ifdef HAVE_MENUS |
| 2953 | if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) | 2953 | if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) |
| @@ -3043,7 +3043,7 @@ SUBFEATURE can be used to check a specific subfeature of FEATURE. */) | |||
| 3043 | Lisp_Object feature, subfeature; | 3043 | Lisp_Object feature, subfeature; |
| 3044 | { | 3044 | { |
| 3045 | register Lisp_Object tem; | 3045 | register Lisp_Object tem; |
| 3046 | CHECK_SYMBOL (feature, 0); | 3046 | CHECK_SYMBOL (feature); |
| 3047 | tem = Fmemq (feature, Vfeatures); | 3047 | tem = Fmemq (feature, Vfeatures); |
| 3048 | if (!NILP (tem) && !NILP (subfeature)) | 3048 | if (!NILP (tem) && !NILP (subfeature)) |
| 3049 | tem = Fmemq (subfeature, Fget (feature, Qsubfeatures)); | 3049 | tem = Fmemq (subfeature, Fget (feature, Qsubfeatures)); |
| @@ -3058,7 +3058,7 @@ particular subfeatures supported in this version of FEATURE. */) | |||
| 3058 | Lisp_Object feature, subfeatures; | 3058 | Lisp_Object feature, subfeatures; |
| 3059 | { | 3059 | { |
| 3060 | register Lisp_Object tem; | 3060 | register Lisp_Object tem; |
| 3061 | CHECK_SYMBOL (feature, 0); | 3061 | CHECK_SYMBOL (feature); |
| 3062 | if (!NILP (Vautoload_queue)) | 3062 | if (!NILP (Vautoload_queue)) |
| 3063 | Vautoload_queue = Fcons (Fcons (Vfeatures, Qnil), Vautoload_queue); | 3063 | Vautoload_queue = Fcons (Fcons (Vfeatures, Qnil), Vautoload_queue); |
| 3064 | tem = Fmemq (feature, Vfeatures); | 3064 | tem = Fmemq (feature, Vfeatures); |
| @@ -3106,7 +3106,7 @@ The normal messages at start and end of loading FILENAME are suppressed. */) | |||
| 3106 | register Lisp_Object tem; | 3106 | register Lisp_Object tem; |
| 3107 | struct gcpro gcpro1, gcpro2; | 3107 | struct gcpro gcpro1, gcpro2; |
| 3108 | 3108 | ||
| 3109 | CHECK_SYMBOL (feature, 0); | 3109 | CHECK_SYMBOL (feature); |
| 3110 | 3110 | ||
| 3111 | tem = Fmemq (feature, Vfeatures); | 3111 | tem = Fmemq (feature, Vfeatures); |
| 3112 | 3112 | ||
| @@ -3194,7 +3194,7 @@ The value can later be retrieved with `widget-get'. */) | |||
| 3194 | (widget, property, value) | 3194 | (widget, property, value) |
| 3195 | Lisp_Object widget, property, value; | 3195 | Lisp_Object widget, property, value; |
| 3196 | { | 3196 | { |
| 3197 | CHECK_CONS (widget, 1); | 3197 | CHECK_CONS (widget); |
| 3198 | XSETCDR (widget, Fplist_put (XCDR (widget), property, value)); | 3198 | XSETCDR (widget, Fplist_put (XCDR (widget), property, value)); |
| 3199 | return value; | 3199 | return value; |
| 3200 | } | 3200 | } |
| @@ -3212,7 +3212,7 @@ later with `widget-put'. */) | |||
| 3212 | { | 3212 | { |
| 3213 | if (NILP (widget)) | 3213 | if (NILP (widget)) |
| 3214 | return Qnil; | 3214 | return Qnil; |
| 3215 | CHECK_CONS (widget, 1); | 3215 | CHECK_CONS (widget); |
| 3216 | tmp = Fplist_member (XCDR (widget), property); | 3216 | tmp = Fplist_member (XCDR (widget), property); |
| 3217 | if (CONSP (tmp)) | 3217 | if (CONSP (tmp)) |
| 3218 | { | 3218 | { |
| @@ -3410,7 +3410,7 @@ into shorter lines. */) | |||
| 3410 | char *encoded; | 3410 | char *encoded; |
| 3411 | Lisp_Object encoded_string; | 3411 | Lisp_Object encoded_string; |
| 3412 | 3412 | ||
| 3413 | CHECK_STRING (string, 1); | 3413 | CHECK_STRING (string); |
| 3414 | 3414 | ||
| 3415 | /* We need to allocate enough room for encoding the text. | 3415 | /* We need to allocate enough room for encoding the text. |
| 3416 | We need 33 1/3% more space, plus a newline every 76 | 3416 | We need 33 1/3% more space, plus a newline every 76 |
| @@ -3616,7 +3616,7 @@ DEFUN ("base64-decode-string", Fbase64_decode_string, Sbase64_decode_string, | |||
| 3616 | int length, decoded_length; | 3616 | int length, decoded_length; |
| 3617 | Lisp_Object decoded_string; | 3617 | Lisp_Object decoded_string; |
| 3618 | 3618 | ||
| 3619 | CHECK_STRING (string, 1); | 3619 | CHECK_STRING (string); |
| 3620 | 3620 | ||
| 3621 | length = STRING_BYTES (XSTRING (string)); | 3621 | length = STRING_BYTES (XSTRING (string)); |
| 3622 | /* We need to allocate enough room for decoding the text. */ | 3622 | /* We need to allocate enough room for decoding the text. */ |
| @@ -3825,7 +3825,7 @@ static struct Lisp_Hash_Table * | |||
| 3825 | check_hash_table (obj) | 3825 | check_hash_table (obj) |
| 3826 | Lisp_Object obj; | 3826 | Lisp_Object obj; |
| 3827 | { | 3827 | { |
| 3828 | CHECK_HASH_TABLE (obj, 0); | 3828 | CHECK_HASH_TABLE (obj); |
| 3829 | return XHASH_TABLE (obj); | 3829 | return XHASH_TABLE (obj); |
| 3830 | } | 3830 | } |
| 3831 | 3831 | ||
| @@ -5109,7 +5109,7 @@ guesswork fails. Normally, an error is signaled in such case. */) | |||
| 5109 | 5109 | ||
| 5110 | if (!NILP (start)) | 5110 | if (!NILP (start)) |
| 5111 | { | 5111 | { |
| 5112 | CHECK_NUMBER (start, 1); | 5112 | CHECK_NUMBER (start); |
| 5113 | 5113 | ||
| 5114 | start_char = XINT (start); | 5114 | start_char = XINT (start); |
| 5115 | 5115 | ||
| @@ -5126,7 +5126,7 @@ guesswork fails. Normally, an error is signaled in such case. */) | |||
| 5126 | } | 5126 | } |
| 5127 | else | 5127 | else |
| 5128 | { | 5128 | { |
| 5129 | CHECK_NUMBER (end, 2); | 5129 | CHECK_NUMBER (end); |
| 5130 | 5130 | ||
| 5131 | end_char = XINT (end); | 5131 | end_char = XINT (end); |
| 5132 | 5132 | ||
| @@ -5142,7 +5142,7 @@ guesswork fails. Normally, an error is signaled in such case. */) | |||
| 5142 | } | 5142 | } |
| 5143 | else | 5143 | else |
| 5144 | { | 5144 | { |
| 5145 | CHECK_BUFFER (object, 0); | 5145 | CHECK_BUFFER (object); |
| 5146 | 5146 | ||
| 5147 | bp = XBUFFER (object); | 5147 | bp = XBUFFER (object); |
| 5148 | 5148 | ||
| @@ -5150,7 +5150,7 @@ guesswork fails. Normally, an error is signaled in such case. */) | |||
| 5150 | b = BUF_BEGV (bp); | 5150 | b = BUF_BEGV (bp); |
| 5151 | else | 5151 | else |
| 5152 | { | 5152 | { |
| 5153 | CHECK_NUMBER_COERCE_MARKER (start, 0); | 5153 | CHECK_NUMBER_COERCE_MARKER (start); |
| 5154 | b = XINT (start); | 5154 | b = XINT (start); |
| 5155 | } | 5155 | } |
| 5156 | 5156 | ||
| @@ -5158,7 +5158,7 @@ guesswork fails. Normally, an error is signaled in such case. */) | |||
| 5158 | e = BUF_ZV (bp); | 5158 | e = BUF_ZV (bp); |
| 5159 | else | 5159 | else |
| 5160 | { | 5160 | { |
| 5161 | CHECK_NUMBER_COERCE_MARKER (end, 1); | 5161 | CHECK_NUMBER_COERCE_MARKER (end); |
| 5162 | e = XINT (end); | 5162 | e = XINT (end); |
| 5163 | } | 5163 | } |
| 5164 | 5164 | ||
diff --git a/src/fontset.c b/src/fontset.c index 7e7364b0205..647657e389c 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -816,7 +816,7 @@ If REGEXPP is non-nil, PATTERN is a regular expression.") | |||
| 816 | 816 | ||
| 817 | (*check_window_system_func) (); | 817 | (*check_window_system_func) (); |
| 818 | 818 | ||
| 819 | CHECK_STRING (pattern, 0); | 819 | CHECK_STRING (pattern); |
| 820 | 820 | ||
| 821 | if (XSTRING (pattern)->size == 0) | 821 | if (XSTRING (pattern)->size == 0) |
| 822 | return Qnil; | 822 | return Qnil; |
| @@ -888,8 +888,8 @@ FONTLIST is an alist of charsets vs corresponding font name patterns.") | |||
| 888 | 888 | ||
| 889 | (*check_window_system_func) (); | 889 | (*check_window_system_func) (); |
| 890 | 890 | ||
| 891 | CHECK_STRING (name, 0); | 891 | CHECK_STRING (name); |
| 892 | CHECK_LIST (fontlist, 1); | 892 | CHECK_LIST (fontlist); |
| 893 | 893 | ||
| 894 | name = Fdowncase (name); | 894 | name = Fdowncase (name); |
| 895 | tem = Fquery_fontset (name, Qnil); | 895 | tem = Fquery_fontset (name, Qnil); |
| @@ -969,7 +969,7 @@ check_fontset_name (name) | |||
| 969 | if (EQ (name, Qt)) | 969 | if (EQ (name, Qt)) |
| 970 | return Vdefault_fontset; | 970 | return Vdefault_fontset; |
| 971 | 971 | ||
| 972 | CHECK_STRING (name, 0); | 972 | CHECK_STRING (name); |
| 973 | id = fs_query_fontset (name, 0); | 973 | id = fs_query_fontset (name, 0); |
| 974 | if (id < 0) | 974 | if (id < 0) |
| 975 | error ("Fontset `%s' does not exist", XSTRING (name)->data); | 975 | error ("Fontset `%s' does not exist", XSTRING (name)->data); |
| @@ -1002,8 +1002,8 @@ name of a font, REGSITRY is a registry name of a font.") | |||
| 1002 | { | 1002 | { |
| 1003 | /* CH should be (FROM . TO) where FROM and TO are non-generic | 1003 | /* CH should be (FROM . TO) where FROM and TO are non-generic |
| 1004 | characters. */ | 1004 | characters. */ |
| 1005 | CHECK_NUMBER_CAR (character, 1); | 1005 | CHECK_NUMBER_CAR (character); |
| 1006 | CHECK_NUMBER_CDR (character, 1); | 1006 | CHECK_NUMBER_CDR (character); |
| 1007 | from = XINT (XCAR (character)); | 1007 | from = XINT (XCAR (character)); |
| 1008 | to = XINT (XCDR (character)); | 1008 | to = XINT (XCDR (character)); |
| 1009 | if (!char_valid_p (from, 0) || !char_valid_p (to, 0)) | 1009 | if (!char_valid_p (from, 0) || !char_valid_p (to, 0)) |
| @@ -1022,7 +1022,7 @@ name of a font, REGSITRY is a registry name of a font.") | |||
| 1022 | } | 1022 | } |
| 1023 | else | 1023 | else |
| 1024 | { | 1024 | { |
| 1025 | CHECK_NUMBER (character, 1); | 1025 | CHECK_NUMBER (character); |
| 1026 | from = XINT (character); | 1026 | from = XINT (character); |
| 1027 | to = from; | 1027 | to = from; |
| 1028 | } | 1028 | } |
| @@ -1045,17 +1045,17 @@ name of a font, REGSITRY is a registry name of a font.") | |||
| 1045 | } | 1045 | } |
| 1046 | else | 1046 | else |
| 1047 | { | 1047 | { |
| 1048 | CHECK_CONS (fontname, 2); | 1048 | CHECK_CONS (fontname); |
| 1049 | family = XCAR (fontname); | 1049 | family = XCAR (fontname); |
| 1050 | registry = XCDR (fontname); | 1050 | registry = XCDR (fontname); |
| 1051 | if (!NILP (family)) | 1051 | if (!NILP (family)) |
| 1052 | { | 1052 | { |
| 1053 | CHECK_STRING (family, 2); | 1053 | CHECK_STRING (family); |
| 1054 | family = Fdowncase (family); | 1054 | family = Fdowncase (family); |
| 1055 | } | 1055 | } |
| 1056 | if (!NILP (registry)) | 1056 | if (!NILP (registry)) |
| 1057 | { | 1057 | { |
| 1058 | CHECK_STRING (registry, 2); | 1058 | CHECK_STRING (registry); |
| 1059 | registry = Fdowncase (registry); | 1059 | registry = Fdowncase (registry); |
| 1060 | } | 1060 | } |
| 1061 | elt = Fcons (make_number (from), Fcons (family, registry)); | 1061 | elt = Fcons (make_number (from), Fcons (family, registry)); |
| @@ -1064,7 +1064,7 @@ name of a font, REGSITRY is a registry name of a font.") | |||
| 1064 | /* The arg FRAME is kept for backward compatibility. We only check | 1064 | /* The arg FRAME is kept for backward compatibility. We only check |
| 1065 | the validity. */ | 1065 | the validity. */ |
| 1066 | if (!NILP (frame)) | 1066 | if (!NILP (frame)) |
| 1067 | CHECK_LIVE_FRAME (frame, 3); | 1067 | CHECK_LIVE_FRAME (frame); |
| 1068 | 1068 | ||
| 1069 | for (; from <= to; from++) | 1069 | for (; from <= to; from++) |
| 1070 | FONTSET_SET (fontset, from, elt); | 1070 | FONTSET_SET (fontset, from, elt); |
| @@ -1113,11 +1113,11 @@ If the named font is not yet loaded, return nil.") | |||
| 1113 | 1113 | ||
| 1114 | (*check_window_system_func) (); | 1114 | (*check_window_system_func) (); |
| 1115 | 1115 | ||
| 1116 | CHECK_STRING (name, 0); | 1116 | CHECK_STRING (name); |
| 1117 | name = Fdowncase (name); | 1117 | name = Fdowncase (name); |
| 1118 | if (NILP (frame)) | 1118 | if (NILP (frame)) |
| 1119 | frame = selected_frame; | 1119 | frame = selected_frame; |
| 1120 | CHECK_LIVE_FRAME (frame, 1); | 1120 | CHECK_LIVE_FRAME (frame); |
| 1121 | f = XFRAME (frame); | 1121 | f = XFRAME (frame); |
| 1122 | 1122 | ||
| 1123 | if (!query_font_func) | 1123 | if (!query_font_func) |
| @@ -1170,7 +1170,7 @@ DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 1, 0, | |||
| 1170 | struct frame *f; | 1170 | struct frame *f; |
| 1171 | struct face *face; | 1171 | struct face *face; |
| 1172 | 1172 | ||
| 1173 | CHECK_NUMBER_COERCE_MARKER (position, 0); | 1173 | CHECK_NUMBER_COERCE_MARKER (position); |
| 1174 | pos = XINT (position); | 1174 | pos = XINT (position); |
| 1175 | if (pos < BEGV || pos >= ZV) | 1175 | if (pos < BEGV || pos >= ZV) |
| 1176 | args_out_of_range_3 (position, make_number (BEGV), make_number (ZV)); | 1176 | args_out_of_range_3 (position, make_number (BEGV), make_number (ZV)); |
| @@ -1274,7 +1274,7 @@ If FRAME is omitted, it defaults to the currently selected frame.") | |||
| 1274 | 1274 | ||
| 1275 | if (NILP (frame)) | 1275 | if (NILP (frame)) |
| 1276 | frame = selected_frame; | 1276 | frame = selected_frame; |
| 1277 | CHECK_LIVE_FRAME (frame, 1); | 1277 | CHECK_LIVE_FRAME (frame); |
| 1278 | f = XFRAME (frame); | 1278 | f = XFRAME (frame); |
| 1279 | 1279 | ||
| 1280 | /* Recode realized fontsets whose base is FONTSET in the table | 1280 | /* Recode realized fontsets whose base is FONTSET in the table |
| @@ -1360,7 +1360,7 @@ If NAME is t, find a font name pattern in the default fontset.") | |||
| 1360 | 1360 | ||
| 1361 | fontset = check_fontset_name (name); | 1361 | fontset = check_fontset_name (name); |
| 1362 | 1362 | ||
| 1363 | CHECK_NUMBER (ch, 1); | 1363 | CHECK_NUMBER (ch); |
| 1364 | c = XINT (ch); | 1364 | c = XINT (ch); |
| 1365 | if (!char_valid_p (c, 1)) | 1365 | if (!char_valid_p (c, 1)) |
| 1366 | invalid_character (c); | 1366 | invalid_character (c); |
diff --git a/src/frame.c b/src/frame.c index 3cd2e082ece..a32cc56e2b9 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -337,7 +337,7 @@ make_frame_without_minibuffer (mini_window, kb, display) | |||
| 337 | struct gcpro gcpro1; | 337 | struct gcpro gcpro1; |
| 338 | 338 | ||
| 339 | if (!NILP (mini_window)) | 339 | if (!NILP (mini_window)) |
| 340 | CHECK_LIVE_WINDOW (mini_window, 0); | 340 | CHECK_LIVE_WINDOW (mini_window); |
| 341 | 341 | ||
| 342 | #ifdef MULTI_KBOARD | 342 | #ifdef MULTI_KBOARD |
| 343 | if (!NILP (mini_window) | 343 | if (!NILP (mini_window) |
| @@ -579,7 +579,7 @@ do_switch_frame (frame, track, for_deletion) | |||
| 579 | /* This used to say CHECK_LIVE_FRAME, but apparently it's possible for | 579 | /* This used to say CHECK_LIVE_FRAME, but apparently it's possible for |
| 580 | a switch-frame event to arrive after a frame is no longer live, | 580 | a switch-frame event to arrive after a frame is no longer live, |
| 581 | especially when deleting the initial frame during startup. */ | 581 | especially when deleting the initial frame during startup. */ |
| 582 | CHECK_FRAME (frame, 0); | 582 | CHECK_FRAME (frame); |
| 583 | if (! FRAME_LIVE_P (XFRAME (frame))) | 583 | if (! FRAME_LIVE_P (XFRAME (frame))) |
| 584 | return Qnil; | 584 | return Qnil; |
| 585 | 585 | ||
| @@ -703,7 +703,7 @@ DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0, | |||
| 703 | (window) | 703 | (window) |
| 704 | Lisp_Object window; | 704 | Lisp_Object window; |
| 705 | { | 705 | { |
| 706 | CHECK_LIVE_WINDOW (window, 0); | 706 | CHECK_LIVE_WINDOW (window); |
| 707 | return XWINDOW (window)->frame; | 707 | return XWINDOW (window)->frame; |
| 708 | } | 708 | } |
| 709 | 709 | ||
| @@ -719,7 +719,7 @@ If omitted, FRAME defaults to the currently selected frame. */) | |||
| 719 | w = SELECTED_FRAME ()->root_window; | 719 | w = SELECTED_FRAME ()->root_window; |
| 720 | else | 720 | else |
| 721 | { | 721 | { |
| 722 | CHECK_LIVE_FRAME (frame, 0); | 722 | CHECK_LIVE_FRAME (frame); |
| 723 | w = XFRAME (frame)->root_window; | 723 | w = XFRAME (frame)->root_window; |
| 724 | } | 724 | } |
| 725 | while (NILP (XWINDOW (w)->buffer)) | 725 | while (NILP (XWINDOW (w)->buffer)) |
| @@ -754,7 +754,7 @@ If omitted, FRAME defaults to the currently selected frame. */) | |||
| 754 | window = SELECTED_FRAME ()->root_window; | 754 | window = SELECTED_FRAME ()->root_window; |
| 755 | else | 755 | else |
| 756 | { | 756 | { |
| 757 | CHECK_LIVE_FRAME (frame, 0); | 757 | CHECK_LIVE_FRAME (frame); |
| 758 | window = XFRAME (frame)->root_window; | 758 | window = XFRAME (frame)->root_window; |
| 759 | } | 759 | } |
| 760 | 760 | ||
| @@ -774,7 +774,7 @@ If omitted, FRAME defaults to the currently selected frame. */) | |||
| 774 | window = SELECTED_FRAME ()->selected_window; | 774 | window = SELECTED_FRAME ()->selected_window; |
| 775 | else | 775 | else |
| 776 | { | 776 | { |
| 777 | CHECK_LIVE_FRAME (frame, 0); | 777 | CHECK_LIVE_FRAME (frame); |
| 778 | window = XFRAME (frame)->selected_window; | 778 | window = XFRAME (frame)->selected_window; |
| 779 | } | 779 | } |
| 780 | 780 | ||
| @@ -792,8 +792,8 @@ If FRAME is the selected frame, this makes WINDOW the selected window. */) | |||
| 792 | if (NILP (frame)) | 792 | if (NILP (frame)) |
| 793 | frame = selected_frame; | 793 | frame = selected_frame; |
| 794 | 794 | ||
| 795 | CHECK_LIVE_FRAME (frame, 0); | 795 | CHECK_LIVE_FRAME (frame); |
| 796 | CHECK_LIVE_WINDOW (window, 1); | 796 | CHECK_LIVE_WINDOW (window); |
| 797 | 797 | ||
| 798 | if (! EQ (frame, WINDOW_FRAME (XWINDOW (window)))) | 798 | if (! EQ (frame, WINDOW_FRAME (XWINDOW (window)))) |
| 799 | error ("In `set-frame-selected-window', WINDOW is not on FRAME"); | 799 | error ("In `set-frame-selected-window', WINDOW is not on FRAME"); |
| @@ -840,7 +840,7 @@ next_frame (frame, minibuf) | |||
| 840 | 840 | ||
| 841 | /* If this frame is dead, it won't be in Vframe_list, and we'll loop | 841 | /* If this frame is dead, it won't be in Vframe_list, and we'll loop |
| 842 | forever. Forestall that. */ | 842 | forever. Forestall that. */ |
| 843 | CHECK_LIVE_FRAME (frame, 0); | 843 | CHECK_LIVE_FRAME (frame); |
| 844 | 844 | ||
| 845 | while (1) | 845 | while (1) |
| 846 | for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail)) | 846 | for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail)) |
| @@ -992,7 +992,7 @@ Otherwise, include all frames. */) | |||
| 992 | if (NILP (frame)) | 992 | if (NILP (frame)) |
| 993 | frame = selected_frame; | 993 | frame = selected_frame; |
| 994 | 994 | ||
| 995 | CHECK_LIVE_FRAME (frame, 0); | 995 | CHECK_LIVE_FRAME (frame); |
| 996 | return next_frame (frame, miniframe); | 996 | return next_frame (frame, miniframe); |
| 997 | } | 997 | } |
| 998 | 998 | ||
| @@ -1012,7 +1012,7 @@ Otherwise, include all frames. */) | |||
| 1012 | { | 1012 | { |
| 1013 | if (NILP (frame)) | 1013 | if (NILP (frame)) |
| 1014 | frame = selected_frame; | 1014 | frame = selected_frame; |
| 1015 | CHECK_LIVE_FRAME (frame, 0); | 1015 | CHECK_LIVE_FRAME (frame); |
| 1016 | return prev_frame (frame, miniframe); | 1016 | return prev_frame (frame, miniframe); |
| 1017 | } | 1017 | } |
| 1018 | 1018 | ||
| @@ -1084,7 +1084,7 @@ frame. The hook is called with one argument FRAME. */) | |||
| 1084 | } | 1084 | } |
| 1085 | else | 1085 | else |
| 1086 | { | 1086 | { |
| 1087 | CHECK_FRAME (frame, 0); | 1087 | CHECK_FRAME (frame); |
| 1088 | f = XFRAME (frame); | 1088 | f = XFRAME (frame); |
| 1089 | } | 1089 | } |
| 1090 | 1090 | ||
| @@ -1404,9 +1404,9 @@ before calling this function on it, like this. | |||
| 1404 | (frame, x, y) | 1404 | (frame, x, y) |
| 1405 | Lisp_Object frame, x, y; | 1405 | Lisp_Object frame, x, y; |
| 1406 | { | 1406 | { |
| 1407 | CHECK_LIVE_FRAME (frame, 0); | 1407 | CHECK_LIVE_FRAME (frame); |
| 1408 | CHECK_NUMBER (x, 2); | 1408 | CHECK_NUMBER (x); |
| 1409 | CHECK_NUMBER (y, 1); | 1409 | CHECK_NUMBER (y); |
| 1410 | 1410 | ||
| 1411 | /* I think this should be done with a hook. */ | 1411 | /* I think this should be done with a hook. */ |
| 1412 | #ifdef HAVE_WINDOW_SYSTEM | 1412 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -1436,9 +1436,9 @@ before calling this function on it, like this. | |||
| 1436 | (frame, x, y) | 1436 | (frame, x, y) |
| 1437 | Lisp_Object frame, x, y; | 1437 | Lisp_Object frame, x, y; |
| 1438 | { | 1438 | { |
| 1439 | CHECK_LIVE_FRAME (frame, 0); | 1439 | CHECK_LIVE_FRAME (frame); |
| 1440 | CHECK_NUMBER (x, 2); | 1440 | CHECK_NUMBER (x); |
| 1441 | CHECK_NUMBER (y, 1); | 1441 | CHECK_NUMBER (y); |
| 1442 | 1442 | ||
| 1443 | /* I think this should be done with a hook. */ | 1443 | /* I think this should be done with a hook. */ |
| 1444 | #ifdef HAVE_WINDOW_SYSTEM | 1444 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -1470,7 +1470,7 @@ If omitted, FRAME defaults to the currently selected frame. */) | |||
| 1470 | if (NILP (frame)) | 1470 | if (NILP (frame)) |
| 1471 | frame = selected_frame; | 1471 | frame = selected_frame; |
| 1472 | 1472 | ||
| 1473 | CHECK_LIVE_FRAME (frame, 0); | 1473 | CHECK_LIVE_FRAME (frame); |
| 1474 | 1474 | ||
| 1475 | /* I think this should be done with a hook. */ | 1475 | /* I think this should be done with a hook. */ |
| 1476 | #ifdef HAVE_WINDOW_SYSTEM | 1476 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -1524,7 +1524,7 @@ but if the second optional argument FORCE is non-nil, you may do so. */) | |||
| 1524 | if (NILP (frame)) | 1524 | if (NILP (frame)) |
| 1525 | frame = selected_frame; | 1525 | frame = selected_frame; |
| 1526 | 1526 | ||
| 1527 | CHECK_LIVE_FRAME (frame, 0); | 1527 | CHECK_LIVE_FRAME (frame); |
| 1528 | 1528 | ||
| 1529 | if (NILP (force) && !other_visible_frames (XFRAME (frame))) | 1529 | if (NILP (force) && !other_visible_frames (XFRAME (frame))) |
| 1530 | error ("Attempt to make invisible the sole visible or iconified frame"); | 1530 | error ("Attempt to make invisible the sole visible or iconified frame"); |
| @@ -1566,7 +1566,7 @@ If omitted, FRAME defaults to the currently selected frame. */) | |||
| 1566 | if (NILP (frame)) | 1566 | if (NILP (frame)) |
| 1567 | frame = selected_frame; | 1567 | frame = selected_frame; |
| 1568 | 1568 | ||
| 1569 | CHECK_LIVE_FRAME (frame, 0); | 1569 | CHECK_LIVE_FRAME (frame); |
| 1570 | 1570 | ||
| 1571 | #if 0 /* This isn't logically necessary, and it can do GC. */ | 1571 | #if 0 /* This isn't logically necessary, and it can do GC. */ |
| 1572 | /* Don't let the frame remain selected. */ | 1572 | /* Don't let the frame remain selected. */ |
| @@ -1604,7 +1604,7 @@ Return the symbol `icon' if frame is visible only as an icon. */) | |||
| 1604 | (frame) | 1604 | (frame) |
| 1605 | Lisp_Object frame; | 1605 | Lisp_Object frame; |
| 1606 | { | 1606 | { |
| 1607 | CHECK_LIVE_FRAME (frame, 0); | 1607 | CHECK_LIVE_FRAME (frame); |
| 1608 | 1608 | ||
| 1609 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); | 1609 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); |
| 1610 | 1610 | ||
| @@ -1650,7 +1650,7 @@ doesn't support multiple overlapping frames, this function does nothing. */) | |||
| 1650 | if (NILP (frame)) | 1650 | if (NILP (frame)) |
| 1651 | frame = selected_frame; | 1651 | frame = selected_frame; |
| 1652 | 1652 | ||
| 1653 | CHECK_LIVE_FRAME (frame, 0); | 1653 | CHECK_LIVE_FRAME (frame); |
| 1654 | 1654 | ||
| 1655 | /* Do like the documentation says. */ | 1655 | /* Do like the documentation says. */ |
| 1656 | Fmake_frame_visible (frame); | 1656 | Fmake_frame_visible (frame); |
| @@ -1673,7 +1673,7 @@ doesn't support multiple overlapping frames, this function does nothing. */) | |||
| 1673 | if (NILP (frame)) | 1673 | if (NILP (frame)) |
| 1674 | frame = selected_frame; | 1674 | frame = selected_frame; |
| 1675 | 1675 | ||
| 1676 | CHECK_LIVE_FRAME (frame, 0); | 1676 | CHECK_LIVE_FRAME (frame); |
| 1677 | 1677 | ||
| 1678 | if (frame_raise_lower_hook) | 1678 | if (frame_raise_lower_hook) |
| 1679 | (*frame_raise_lower_hook) (XFRAME (frame), 0); | 1679 | (*frame_raise_lower_hook) (XFRAME (frame), 0); |
| @@ -1713,10 +1713,10 @@ The redirection lasts until `redirect-frame-focus' is called to change it. */) | |||
| 1713 | /* Note that we don't check for a live frame here. It's reasonable | 1713 | /* Note that we don't check for a live frame here. It's reasonable |
| 1714 | to redirect the focus of a frame you're about to delete, if you | 1714 | to redirect the focus of a frame you're about to delete, if you |
| 1715 | know what other frame should receive those keystrokes. */ | 1715 | know what other frame should receive those keystrokes. */ |
| 1716 | CHECK_FRAME (frame, 0); | 1716 | CHECK_FRAME (frame); |
| 1717 | 1717 | ||
| 1718 | if (! NILP (focus_frame)) | 1718 | if (! NILP (focus_frame)) |
| 1719 | CHECK_LIVE_FRAME (focus_frame, 1); | 1719 | CHECK_LIVE_FRAME (focus_frame); |
| 1720 | 1720 | ||
| 1721 | XFRAME (frame)->focus_frame = focus_frame; | 1721 | XFRAME (frame)->focus_frame = focus_frame; |
| 1722 | 1722 | ||
| @@ -1734,7 +1734,7 @@ See `redirect-frame-focus'. */) | |||
| 1734 | (frame) | 1734 | (frame) |
| 1735 | Lisp_Object frame; | 1735 | Lisp_Object frame; |
| 1736 | { | 1736 | { |
| 1737 | CHECK_LIVE_FRAME (frame, 0); | 1737 | CHECK_LIVE_FRAME (frame); |
| 1738 | 1738 | ||
| 1739 | return FRAME_FOCUS_FRAME (XFRAME (frame)); | 1739 | return FRAME_FOCUS_FRAME (XFRAME (frame)); |
| 1740 | } | 1740 | } |
| @@ -1879,7 +1879,7 @@ set_term_frame_name (f, name) | |||
| 1879 | } | 1879 | } |
| 1880 | else | 1880 | else |
| 1881 | { | 1881 | { |
| 1882 | CHECK_STRING (name, 0); | 1882 | CHECK_STRING (name); |
| 1883 | 1883 | ||
| 1884 | /* Don't change the name if it's already NAME. */ | 1884 | /* Don't change the name if it's already NAME. */ |
| 1885 | if (! NILP (Fstring_equal (name, f->name))) | 1885 | if (! NILP (Fstring_equal (name, f->name))) |
| @@ -1976,7 +1976,7 @@ If FRAME is omitted, return information on the currently selected frame. */) | |||
| 1976 | if (NILP (frame)) | 1976 | if (NILP (frame)) |
| 1977 | frame = selected_frame; | 1977 | frame = selected_frame; |
| 1978 | 1978 | ||
| 1979 | CHECK_FRAME (frame, 0); | 1979 | CHECK_FRAME (frame); |
| 1980 | f = XFRAME (frame); | 1980 | f = XFRAME (frame); |
| 1981 | 1981 | ||
| 1982 | if (!FRAME_LIVE_P (f)) | 1982 | if (!FRAME_LIVE_P (f)) |
| @@ -2071,8 +2071,8 @@ If FRAME is nil, describe the currently selected frame. */) | |||
| 2071 | if (NILP (frame)) | 2071 | if (NILP (frame)) |
| 2072 | frame = selected_frame; | 2072 | frame = selected_frame; |
| 2073 | else | 2073 | else |
| 2074 | CHECK_FRAME (frame, 0); | 2074 | CHECK_FRAME (frame); |
| 2075 | CHECK_SYMBOL (parameter, 1); | 2075 | CHECK_SYMBOL (parameter); |
| 2076 | 2076 | ||
| 2077 | f = XFRAME (frame); | 2077 | f = XFRAME (frame); |
| 2078 | value = Qnil; | 2078 | value = Qnil; |
| @@ -2166,7 +2166,7 @@ enabled such bindings for that variable with `make-variable-frame-local'. */) | |||
| 2166 | 2166 | ||
| 2167 | if (EQ (frame, Qnil)) | 2167 | if (EQ (frame, Qnil)) |
| 2168 | frame = selected_frame; | 2168 | frame = selected_frame; |
| 2169 | CHECK_LIVE_FRAME (frame, 0); | 2169 | CHECK_LIVE_FRAME (frame); |
| 2170 | f = XFRAME (frame); | 2170 | f = XFRAME (frame); |
| 2171 | 2171 | ||
| 2172 | /* I think this should be done with a hook. */ | 2172 | /* I think this should be done with a hook. */ |
| @@ -2226,7 +2226,7 @@ For a terminal frame, the value is always 1. */) | |||
| 2226 | 2226 | ||
| 2227 | if (NILP (frame)) | 2227 | if (NILP (frame)) |
| 2228 | frame = selected_frame; | 2228 | frame = selected_frame; |
| 2229 | CHECK_FRAME (frame, 0); | 2229 | CHECK_FRAME (frame); |
| 2230 | f = XFRAME (frame); | 2230 | f = XFRAME (frame); |
| 2231 | 2231 | ||
| 2232 | #ifdef HAVE_WINDOW_SYSTEM | 2232 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -2252,7 +2252,7 @@ For a terminal screen, the value is always 1. */) | |||
| 2252 | 2252 | ||
| 2253 | if (NILP (frame)) | 2253 | if (NILP (frame)) |
| 2254 | frame = selected_frame; | 2254 | frame = selected_frame; |
| 2255 | CHECK_FRAME (frame, 0); | 2255 | CHECK_FRAME (frame); |
| 2256 | f = XFRAME (frame); | 2256 | f = XFRAME (frame); |
| 2257 | 2257 | ||
| 2258 | #ifdef HAVE_WINDOW_SYSTEM | 2258 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -2277,7 +2277,7 @@ If FRAME is omitted, the selected frame is used. */) | |||
| 2277 | 2277 | ||
| 2278 | if (NILP (frame)) | 2278 | if (NILP (frame)) |
| 2279 | frame = selected_frame; | 2279 | frame = selected_frame; |
| 2280 | CHECK_FRAME (frame, 0); | 2280 | CHECK_FRAME (frame); |
| 2281 | f = XFRAME (frame); | 2281 | f = XFRAME (frame); |
| 2282 | 2282 | ||
| 2283 | #ifdef HAVE_WINDOW_SYSTEM | 2283 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -2300,7 +2300,7 @@ If FRAME is omitted, the selected frame is used. */) | |||
| 2300 | 2300 | ||
| 2301 | if (NILP (frame)) | 2301 | if (NILP (frame)) |
| 2302 | frame = selected_frame; | 2302 | frame = selected_frame; |
| 2303 | CHECK_FRAME (frame, 0); | 2303 | CHECK_FRAME (frame); |
| 2304 | f = XFRAME (frame); | 2304 | f = XFRAME (frame); |
| 2305 | 2305 | ||
| 2306 | #ifdef HAVE_WINDOW_SYSTEM | 2306 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -2320,10 +2320,10 @@ but that the idea of the actual height of the frame should not be changed. */) | |||
| 2320 | { | 2320 | { |
| 2321 | register struct frame *f; | 2321 | register struct frame *f; |
| 2322 | 2322 | ||
| 2323 | CHECK_NUMBER (lines, 0); | 2323 | CHECK_NUMBER (lines); |
| 2324 | if (NILP (frame)) | 2324 | if (NILP (frame)) |
| 2325 | frame = selected_frame; | 2325 | frame = selected_frame; |
| 2326 | CHECK_LIVE_FRAME (frame, 0); | 2326 | CHECK_LIVE_FRAME (frame); |
| 2327 | f = XFRAME (frame); | 2327 | f = XFRAME (frame); |
| 2328 | 2328 | ||
| 2329 | /* I think this should be done with a hook. */ | 2329 | /* I think this should be done with a hook. */ |
| @@ -2348,10 +2348,10 @@ but that the idea of the actual width of the frame should not be changed. */) | |||
| 2348 | Lisp_Object frame, cols, pretend; | 2348 | Lisp_Object frame, cols, pretend; |
| 2349 | { | 2349 | { |
| 2350 | register struct frame *f; | 2350 | register struct frame *f; |
| 2351 | CHECK_NUMBER (cols, 0); | 2351 | CHECK_NUMBER (cols); |
| 2352 | if (NILP (frame)) | 2352 | if (NILP (frame)) |
| 2353 | frame = selected_frame; | 2353 | frame = selected_frame; |
| 2354 | CHECK_LIVE_FRAME (frame, 0); | 2354 | CHECK_LIVE_FRAME (frame); |
| 2355 | f = XFRAME (frame); | 2355 | f = XFRAME (frame); |
| 2356 | 2356 | ||
| 2357 | /* I think this should be done with a hook. */ | 2357 | /* I think this should be done with a hook. */ |
| @@ -2375,9 +2375,9 @@ DEFUN ("set-frame-size", Fset_frame_size, Sset_frame_size, 3, 3, 0, | |||
| 2375 | { | 2375 | { |
| 2376 | register struct frame *f; | 2376 | register struct frame *f; |
| 2377 | 2377 | ||
| 2378 | CHECK_LIVE_FRAME (frame, 0); | 2378 | CHECK_LIVE_FRAME (frame); |
| 2379 | CHECK_NUMBER (cols, 2); | 2379 | CHECK_NUMBER (cols); |
| 2380 | CHECK_NUMBER (rows, 1); | 2380 | CHECK_NUMBER (rows); |
| 2381 | f = XFRAME (frame); | 2381 | f = XFRAME (frame); |
| 2382 | 2382 | ||
| 2383 | /* I think this should be done with a hook. */ | 2383 | /* I think this should be done with a hook. */ |
| @@ -2407,9 +2407,9 @@ the rightmost or bottommost possible position (that stays within the screen). * | |||
| 2407 | { | 2407 | { |
| 2408 | register struct frame *f; | 2408 | register struct frame *f; |
| 2409 | 2409 | ||
| 2410 | CHECK_LIVE_FRAME (frame, 0); | 2410 | CHECK_LIVE_FRAME (frame); |
| 2411 | CHECK_NUMBER (xoffset, 1); | 2411 | CHECK_NUMBER (xoffset); |
| 2412 | CHECK_NUMBER (yoffset, 2); | 2412 | CHECK_NUMBER (yoffset); |
| 2413 | f = XFRAME (frame); | 2413 | f = XFRAME (frame); |
| 2414 | 2414 | ||
| 2415 | /* I think this should be done with a hook. */ | 2415 | /* I think this should be done with a hook. */ |
diff --git a/src/indent.c b/src/indent.c index 1d9e1a5faed..c0220c34b89 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -655,7 +655,7 @@ string_display_width (string, beg, end) | |||
| 655 | e = XSTRING (string)->size; | 655 | e = XSTRING (string)->size; |
| 656 | else | 656 | else |
| 657 | { | 657 | { |
| 658 | CHECK_NUMBER (end, 0); | 658 | CHECK_NUMBER (end); |
| 659 | e = XINT (end); | 659 | e = XINT (end); |
| 660 | } | 660 | } |
| 661 | 661 | ||
| @@ -663,7 +663,7 @@ string_display_width (string, beg, end) | |||
| 663 | b = 0; | 663 | b = 0; |
| 664 | else | 664 | else |
| 665 | { | 665 | { |
| 666 | CHECK_NUMBER (beg, 0); | 666 | CHECK_NUMBER (beg); |
| 667 | b = XINT (beg); | 667 | b = XINT (beg); |
| 668 | } | 668 | } |
| 669 | 669 | ||
| @@ -725,10 +725,10 @@ even if that goes past COLUMN; by default, MININUM is zero. */) | |||
| 725 | register int fromcol; | 725 | register int fromcol; |
| 726 | register int tab_width = XINT (current_buffer->tab_width); | 726 | register int tab_width = XINT (current_buffer->tab_width); |
| 727 | 727 | ||
| 728 | CHECK_NUMBER (column, 0); | 728 | CHECK_NUMBER (column); |
| 729 | if (NILP (minimum)) | 729 | if (NILP (minimum)) |
| 730 | XSETFASTINT (minimum, 0); | 730 | XSETFASTINT (minimum, 0); |
| 731 | CHECK_NUMBER (minimum, 1); | 731 | CHECK_NUMBER (minimum); |
| 732 | 732 | ||
| 733 | fromcol = current_column (); | 733 | fromcol = current_column (); |
| 734 | mincol = fromcol + XINT (minimum); | 734 | mincol = fromcol + XINT (minimum); |
| @@ -925,7 +925,7 @@ The return value is the current column. */) | |||
| 925 | int pos_byte, end_byte, next_boundary_byte; | 925 | int pos_byte, end_byte, next_boundary_byte; |
| 926 | 926 | ||
| 927 | if (tab_width <= 0 || tab_width > 1000) tab_width = 8; | 927 | if (tab_width <= 0 || tab_width > 1000) tab_width = 8; |
| 928 | CHECK_NATNUM (column, 0); | 928 | CHECK_NATNUM (column); |
| 929 | goal = XINT (column); | 929 | goal = XINT (column); |
| 930 | 930 | ||
| 931 | pos = PT; | 931 | pos = PT; |
| @@ -1747,20 +1747,20 @@ visible section of the buffer, and pass LINE and COL as TOPOS. */) | |||
| 1747 | struct position *pos; | 1747 | struct position *pos; |
| 1748 | int hscroll, tab_offset; | 1748 | int hscroll, tab_offset; |
| 1749 | 1749 | ||
| 1750 | CHECK_NUMBER_COERCE_MARKER (from, 0); | 1750 | CHECK_NUMBER_COERCE_MARKER (from); |
| 1751 | CHECK_CONS (frompos, 0); | 1751 | CHECK_CONS (frompos); |
| 1752 | CHECK_NUMBER_CAR (frompos, 0); | 1752 | CHECK_NUMBER_CAR (frompos); |
| 1753 | CHECK_NUMBER_CDR (frompos, 0); | 1753 | CHECK_NUMBER_CDR (frompos); |
| 1754 | CHECK_NUMBER_COERCE_MARKER (to, 0); | 1754 | CHECK_NUMBER_COERCE_MARKER (to); |
| 1755 | CHECK_CONS (topos, 0); | 1755 | CHECK_CONS (topos); |
| 1756 | CHECK_NUMBER_CAR (topos, 0); | 1756 | CHECK_NUMBER_CAR (topos); |
| 1757 | CHECK_NUMBER_CDR (topos, 0); | 1757 | CHECK_NUMBER_CDR (topos); |
| 1758 | CHECK_NUMBER (width, 0); | 1758 | CHECK_NUMBER (width); |
| 1759 | if (!NILP (offsets)) | 1759 | if (!NILP (offsets)) |
| 1760 | { | 1760 | { |
| 1761 | CHECK_CONS (offsets, 0); | 1761 | CHECK_CONS (offsets); |
| 1762 | CHECK_NUMBER_CAR (offsets, 0); | 1762 | CHECK_NUMBER_CAR (offsets); |
| 1763 | CHECK_NUMBER_CDR (offsets, 0); | 1763 | CHECK_NUMBER_CDR (offsets); |
| 1764 | hscroll = XINT (XCAR (offsets)); | 1764 | hscroll = XINT (XCAR (offsets)); |
| 1765 | tab_offset = XINT (XCDR (offsets)); | 1765 | tab_offset = XINT (XCDR (offsets)); |
| 1766 | } | 1766 | } |
| @@ -1770,7 +1770,7 @@ visible section of the buffer, and pass LINE and COL as TOPOS. */) | |||
| 1770 | if (NILP (window)) | 1770 | if (NILP (window)) |
| 1771 | window = Fselected_window (); | 1771 | window = Fselected_window (); |
| 1772 | else | 1772 | else |
| 1773 | CHECK_LIVE_WINDOW (window, 0); | 1773 | CHECK_LIVE_WINDOW (window); |
| 1774 | 1774 | ||
| 1775 | if (XINT (from) < BEGV || XINT (from) > ZV) | 1775 | if (XINT (from) < BEGV || XINT (from) > ZV) |
| 1776 | args_out_of_range_3 (from, make_number (BEGV), make_number (ZV)); | 1776 | args_out_of_range_3 (from, make_number (BEGV), make_number (ZV)); |
| @@ -1976,9 +1976,9 @@ whether or not it is currently displayed in some window. */) | |||
| 1976 | Lisp_Object old_buffer; | 1976 | Lisp_Object old_buffer; |
| 1977 | struct gcpro gcpro1; | 1977 | struct gcpro gcpro1; |
| 1978 | 1978 | ||
| 1979 | CHECK_NUMBER (lines, 0); | 1979 | CHECK_NUMBER (lines); |
| 1980 | if (! NILP (window)) | 1980 | if (! NILP (window)) |
| 1981 | CHECK_WINDOW (window, 0); | 1981 | CHECK_WINDOW (window); |
| 1982 | else | 1982 | else |
| 1983 | window = selected_window; | 1983 | window = selected_window; |
| 1984 | w = XWINDOW (window); | 1984 | w = XWINDOW (window); |
diff --git a/src/keyboard.c b/src/keyboard.c index bbdc148157f..623dd1516dd 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -5444,7 +5444,7 @@ parse_modifiers_uncached (symbol, modifier_end) | |||
| 5444 | int i; | 5444 | int i; |
| 5445 | int modifiers; | 5445 | int modifiers; |
| 5446 | 5446 | ||
| 5447 | CHECK_SYMBOL (symbol, 1); | 5447 | CHECK_SYMBOL (symbol); |
| 5448 | 5448 | ||
| 5449 | modifiers = 0; | 5449 | modifiers = 0; |
| 5450 | name = XSYMBOL (symbol)->name; | 5450 | name = XSYMBOL (symbol)->name; |
| @@ -9035,7 +9035,7 @@ will read just one key sequence. */) | |||
| 9035 | int count = specpdl_ptr - specpdl; | 9035 | int count = specpdl_ptr - specpdl; |
| 9036 | 9036 | ||
| 9037 | if (!NILP (prompt)) | 9037 | if (!NILP (prompt)) |
| 9038 | CHECK_STRING (prompt, 0); | 9038 | CHECK_STRING (prompt); |
| 9039 | QUIT; | 9039 | QUIT; |
| 9040 | 9040 | ||
| 9041 | specbind (Qinput_method_exit_on_first_char, | 9041 | specbind (Qinput_method_exit_on_first_char, |
| @@ -9094,7 +9094,7 @@ DEFUN ("read-key-sequence-vector", Fread_key_sequence_vector, | |||
| 9094 | int count = specpdl_ptr - specpdl; | 9094 | int count = specpdl_ptr - specpdl; |
| 9095 | 9095 | ||
| 9096 | if (!NILP (prompt)) | 9096 | if (!NILP (prompt)) |
| 9097 | CHECK_STRING (prompt, 0); | 9097 | CHECK_STRING (prompt); |
| 9098 | QUIT; | 9098 | QUIT; |
| 9099 | 9099 | ||
| 9100 | specbind (Qinput_method_exit_on_first_char, | 9100 | specbind (Qinput_method_exit_on_first_char, |
| @@ -9677,7 +9677,7 @@ On such systems, Emacs starts a subshell instead of suspending. */) | |||
| 9677 | struct gcpro gcpro1; | 9677 | struct gcpro gcpro1; |
| 9678 | 9678 | ||
| 9679 | if (!NILP (stuffstring)) | 9679 | if (!NILP (stuffstring)) |
| 9680 | CHECK_STRING (stuffstring, 0); | 9680 | CHECK_STRING (stuffstring); |
| 9681 | 9681 | ||
| 9682 | /* Run the functions in suspend-hook. */ | 9682 | /* Run the functions in suspend-hook. */ |
| 9683 | if (!NILP (Vrun_hooks)) | 9683 | if (!NILP (Vrun_hooks)) |
diff --git a/src/keymap.c b/src/keymap.c index 802c1413c75..018e1ea1eb9 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1958,7 +1958,7 @@ around function keys and event symbols.") | |||
| 1958 | /* Handle a generic character. */ | 1958 | /* Handle a generic character. */ |
| 1959 | Lisp_Object name; | 1959 | Lisp_Object name; |
| 1960 | name = CHARSET_TABLE_INFO (charset, CHARSET_LONG_NAME_IDX); | 1960 | name = CHARSET_TABLE_INFO (charset, CHARSET_LONG_NAME_IDX); |
| 1961 | CHECK_STRING (name, 0); | 1961 | CHECK_STRING (name); |
| 1962 | return concat2 (build_string ("Character set "), name); | 1962 | return concat2 (build_string ("Character set "), name); |
| 1963 | } | 1963 | } |
| 1964 | else | 1964 | else |
| @@ -2037,7 +2037,7 @@ Control characters turn into \"^char\", etc.") | |||
| 2037 | unsigned char str[6]; | 2037 | unsigned char str[6]; |
| 2038 | int c; | 2038 | int c; |
| 2039 | 2039 | ||
| 2040 | CHECK_NUMBER (character, 0); | 2040 | CHECK_NUMBER (character); |
| 2041 | 2041 | ||
| 2042 | c = XINT (character); | 2042 | c = XINT (character); |
| 2043 | if (!SINGLE_BYTE_CHAR_P (c)) | 2043 | if (!SINGLE_BYTE_CHAR_P (c)) |
| @@ -2941,7 +2941,7 @@ This is text showing the elements of vector matched against indices.") | |||
| 2941 | int count = specpdl_ptr - specpdl; | 2941 | int count = specpdl_ptr - specpdl; |
| 2942 | 2942 | ||
| 2943 | specbind (Qstandard_output, Fcurrent_buffer ()); | 2943 | specbind (Qstandard_output, Fcurrent_buffer ()); |
| 2944 | CHECK_VECTOR_OR_CHAR_TABLE (vector, 0); | 2944 | CHECK_VECTOR_OR_CHAR_TABLE (vector); |
| 2945 | describe_vector (vector, Qnil, describe_vector_princ, 0, | 2945 | describe_vector (vector, Qnil, describe_vector_princ, 0, |
| 2946 | Qnil, Qnil, (int *)0, 0); | 2946 | Qnil, Qnil, (int *)0, 0); |
| 2947 | 2947 | ||
| @@ -3306,7 +3306,7 @@ Return list of symbols found.") | |||
| 3306 | Lisp_Object regexp, predicate; | 3306 | Lisp_Object regexp, predicate; |
| 3307 | { | 3307 | { |
| 3308 | struct gcpro gcpro1, gcpro2; | 3308 | struct gcpro gcpro1, gcpro2; |
| 3309 | CHECK_STRING (regexp, 0); | 3309 | CHECK_STRING (regexp); |
| 3310 | apropos_predicate = predicate; | 3310 | apropos_predicate = predicate; |
| 3311 | GCPRO2 (apropos_predicate, apropos_accumulate); | 3311 | GCPRO2 (apropos_predicate, apropos_accumulate); |
| 3312 | apropos_accumulate = Qnil; | 3312 | apropos_accumulate = Qnil; |
diff --git a/src/lread.c b/src/lread.c index be0ecb64445..9d35ce074c9 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -644,7 +644,7 @@ Return t if file exists.") | |||
| 644 | fmode = "rt"; | 644 | fmode = "rt"; |
| 645 | #endif /* DOS_NT */ | 645 | #endif /* DOS_NT */ |
| 646 | 646 | ||
| 647 | CHECK_STRING (file, 0); | 647 | CHECK_STRING (file); |
| 648 | 648 | ||
| 649 | /* If file name is magic, call the handler. */ | 649 | /* If file name is magic, call the handler. */ |
| 650 | /* This shouldn't be necessary any more now that `openp' handles it right. | 650 | /* This shouldn't be necessary any more now that `openp' handles it right. |
| @@ -966,7 +966,7 @@ openp (path, str, suffixes, storeptr, exec_only) | |||
| 966 | 966 | ||
| 967 | for (tail = suffixes; CONSP (tail); tail = XCDR (tail)) | 967 | for (tail = suffixes; CONSP (tail); tail = XCDR (tail)) |
| 968 | { | 968 | { |
| 969 | CHECK_STRING (XCAR (tail), 0); | 969 | CHECK_STRING (XCAR (tail)); |
| 970 | max_suffix_len = max (max_suffix_len, | 970 | max_suffix_len = max (max_suffix_len, |
| 971 | STRING_BYTES (XSTRING (XCAR (tail)))); | 971 | STRING_BYTES (XSTRING (XCAR (tail)))); |
| 972 | } | 972 | } |
| @@ -1450,13 +1450,13 @@ START and END optionally delimit a substring of STRING from which to read;\n\ | |||
| 1450 | int startval, endval; | 1450 | int startval, endval; |
| 1451 | Lisp_Object tem; | 1451 | Lisp_Object tem; |
| 1452 | 1452 | ||
| 1453 | CHECK_STRING (string,0); | 1453 | CHECK_STRING (string); |
| 1454 | 1454 | ||
| 1455 | if (NILP (end)) | 1455 | if (NILP (end)) |
| 1456 | endval = XSTRING (string)->size; | 1456 | endval = XSTRING (string)->size; |
| 1457 | else | 1457 | else |
| 1458 | { | 1458 | { |
| 1459 | CHECK_NUMBER (end, 2); | 1459 | CHECK_NUMBER (end); |
| 1460 | endval = XINT (end); | 1460 | endval = XINT (end); |
| 1461 | if (endval < 0 || endval > XSTRING (string)->size) | 1461 | if (endval < 0 || endval > XSTRING (string)->size) |
| 1462 | args_out_of_range (string, end); | 1462 | args_out_of_range (string, end); |
| @@ -1466,7 +1466,7 @@ START and END optionally delimit a substring of STRING from which to read;\n\ | |||
| 1466 | startval = 0; | 1466 | startval = 0; |
| 1467 | else | 1467 | else |
| 1468 | { | 1468 | { |
| 1469 | CHECK_NUMBER (start, 1); | 1469 | CHECK_NUMBER (start); |
| 1470 | startval = XINT (start); | 1470 | startval = XINT (start); |
| 1471 | if (startval < 0 || startval > endval) | 1471 | if (startval < 0 || startval > endval) |
| 1472 | args_out_of_range (string, start); | 1472 | args_out_of_range (string, start); |
| @@ -2938,7 +2938,7 @@ it defaults to the value of `obarray'.") | |||
| 2938 | if (NILP (obarray)) obarray = Vobarray; | 2938 | if (NILP (obarray)) obarray = Vobarray; |
| 2939 | obarray = check_obarray (obarray); | 2939 | obarray = check_obarray (obarray); |
| 2940 | 2940 | ||
| 2941 | CHECK_STRING (string, 0); | 2941 | CHECK_STRING (string); |
| 2942 | 2942 | ||
| 2943 | tem = oblookup (obarray, XSTRING (string)->data, | 2943 | tem = oblookup (obarray, XSTRING (string)->data, |
| 2944 | XSTRING (string)->size, | 2944 | XSTRING (string)->size, |
| @@ -2988,7 +2988,7 @@ it defaults to the value of `obarray'.") | |||
| 2988 | 2988 | ||
| 2989 | if (!SYMBOLP (name)) | 2989 | if (!SYMBOLP (name)) |
| 2990 | { | 2990 | { |
| 2991 | CHECK_STRING (name, 0); | 2991 | CHECK_STRING (name); |
| 2992 | string = XSTRING (name); | 2992 | string = XSTRING (name); |
| 2993 | } | 2993 | } |
| 2994 | else | 2994 | else |
| @@ -3020,7 +3020,7 @@ OBARRAY defaults to the value of the variable `obarray'.") | |||
| 3020 | XSETSTRING (string, XSYMBOL (name)->name); | 3020 | XSETSTRING (string, XSYMBOL (name)->name); |
| 3021 | else | 3021 | else |
| 3022 | { | 3022 | { |
| 3023 | CHECK_STRING (name, 0); | 3023 | CHECK_STRING (name); |
| 3024 | string = name; | 3024 | string = name; |
| 3025 | } | 3025 | } |
| 3026 | 3026 | ||
| @@ -3141,7 +3141,7 @@ map_obarray (obarray, fn, arg) | |||
| 3141 | { | 3141 | { |
| 3142 | register int i; | 3142 | register int i; |
| 3143 | register Lisp_Object tail; | 3143 | register Lisp_Object tail; |
| 3144 | CHECK_VECTOR (obarray, 1); | 3144 | CHECK_VECTOR (obarray); |
| 3145 | for (i = XVECTOR (obarray)->size - 1; i >= 0; i--) | 3145 | for (i = XVECTOR (obarray)->size - 1; i >= 0; i--) |
| 3146 | { | 3146 | { |
| 3147 | tail = XVECTOR (obarray)->contents[i]; | 3147 | tail = XVECTOR (obarray)->contents[i]; |
diff --git a/src/macros.c b/src/macros.c index af066574c66..4bacf789780 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -147,7 +147,7 @@ An argument of zero means repeat until error.") | |||
| 147 | if (NILP (repeat)) | 147 | if (NILP (repeat)) |
| 148 | XSETFASTINT (repeat, 1); | 148 | XSETFASTINT (repeat, 1); |
| 149 | else | 149 | else |
| 150 | CHECK_NUMBER (repeat, 0); | 150 | CHECK_NUMBER (repeat); |
| 151 | 151 | ||
| 152 | if (!NILP (current_kboard->defining_kbd_macro)) | 152 | if (!NILP (current_kboard->defining_kbd_macro)) |
| 153 | { | 153 | { |
diff --git a/src/marker.c b/src/marker.c index 2ba164d2dc4..b634d644790 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -434,7 +434,7 @@ Returns nil if MARKER points into a dead buffer. */) | |||
| 434 | register Lisp_Object marker; | 434 | register Lisp_Object marker; |
| 435 | { | 435 | { |
| 436 | register Lisp_Object buf; | 436 | register Lisp_Object buf; |
| 437 | CHECK_MARKER (marker, 0); | 437 | CHECK_MARKER (marker); |
| 438 | if (XMARKER (marker)->buffer) | 438 | if (XMARKER (marker)->buffer) |
| 439 | { | 439 | { |
| 440 | XSETBUFFER (buf, XMARKER (marker)->buffer); | 440 | XSETBUFFER (buf, XMARKER (marker)->buffer); |
| @@ -450,7 +450,7 @@ DEFUN ("marker-position", Fmarker_position, Smarker_position, 1, 1, 0, | |||
| 450 | (marker) | 450 | (marker) |
| 451 | Lisp_Object marker; | 451 | Lisp_Object marker; |
| 452 | { | 452 | { |
| 453 | CHECK_MARKER (marker, 0); | 453 | CHECK_MARKER (marker); |
| 454 | if (XMARKER (marker)->buffer) | 454 | if (XMARKER (marker)->buffer) |
| 455 | return make_number (XMARKER (marker)->charpos); | 455 | return make_number (XMARKER (marker)->charpos); |
| 456 | 456 | ||
| @@ -470,7 +470,7 @@ Returns MARKER. */) | |||
| 470 | register struct buffer *b; | 470 | register struct buffer *b; |
| 471 | register struct Lisp_Marker *m; | 471 | register struct Lisp_Marker *m; |
| 472 | 472 | ||
| 473 | CHECK_MARKER (marker, 0); | 473 | CHECK_MARKER (marker); |
| 474 | /* If position is nil or a marker that points nowhere, | 474 | /* If position is nil or a marker that points nowhere, |
| 475 | make this marker point nowhere. */ | 475 | make this marker point nowhere. */ |
| 476 | if (NILP (position) | 476 | if (NILP (position) |
| @@ -484,7 +484,7 @@ Returns MARKER. */) | |||
| 484 | b = current_buffer; | 484 | b = current_buffer; |
| 485 | else | 485 | else |
| 486 | { | 486 | { |
| 487 | CHECK_BUFFER (buffer, 1); | 487 | CHECK_BUFFER (buffer); |
| 488 | b = XBUFFER (buffer); | 488 | b = XBUFFER (buffer); |
| 489 | /* If buffer is dead, set marker to point nowhere. */ | 489 | /* If buffer is dead, set marker to point nowhere. */ |
| 490 | if (EQ (b->name, Qnil)) | 490 | if (EQ (b->name, Qnil)) |
| @@ -506,7 +506,7 @@ Returns MARKER. */) | |||
| 506 | return marker; | 506 | return marker; |
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | CHECK_NUMBER_COERCE_MARKER (position, 1); | 509 | CHECK_NUMBER_COERCE_MARKER (position); |
| 510 | 510 | ||
| 511 | charno = XINT (position); | 511 | charno = XINT (position); |
| 512 | 512 | ||
| @@ -546,7 +546,7 @@ set_marker_restricted (marker, pos, buffer) | |||
| 546 | register struct buffer *b; | 546 | register struct buffer *b; |
| 547 | register struct Lisp_Marker *m; | 547 | register struct Lisp_Marker *m; |
| 548 | 548 | ||
| 549 | CHECK_MARKER (marker, 0); | 549 | CHECK_MARKER (marker); |
| 550 | /* If position is nil or a marker that points nowhere, | 550 | /* If position is nil or a marker that points nowhere, |
| 551 | make this marker point nowhere. */ | 551 | make this marker point nowhere. */ |
| 552 | if (NILP (pos) | 552 | if (NILP (pos) |
| @@ -560,7 +560,7 @@ set_marker_restricted (marker, pos, buffer) | |||
| 560 | b = current_buffer; | 560 | b = current_buffer; |
| 561 | else | 561 | else |
| 562 | { | 562 | { |
| 563 | CHECK_BUFFER (buffer, 1); | 563 | CHECK_BUFFER (buffer); |
| 564 | b = XBUFFER (buffer); | 564 | b = XBUFFER (buffer); |
| 565 | /* If buffer is dead, set marker to point nowhere. */ | 565 | /* If buffer is dead, set marker to point nowhere. */ |
| 566 | if (EQ (b->name, Qnil)) | 566 | if (EQ (b->name, Qnil)) |
| @@ -582,7 +582,7 @@ set_marker_restricted (marker, pos, buffer) | |||
| 582 | return marker; | 582 | return marker; |
| 583 | } | 583 | } |
| 584 | 584 | ||
| 585 | CHECK_NUMBER_COERCE_MARKER (pos, 1); | 585 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 586 | 586 | ||
| 587 | charno = XINT (pos); | 587 | charno = XINT (pos); |
| 588 | 588 | ||
| @@ -622,13 +622,13 @@ set_marker_both (marker, buffer, charpos, bytepos) | |||
| 622 | register struct buffer *b; | 622 | register struct buffer *b; |
| 623 | register struct Lisp_Marker *m; | 623 | register struct Lisp_Marker *m; |
| 624 | 624 | ||
| 625 | CHECK_MARKER (marker, 0); | 625 | CHECK_MARKER (marker); |
| 626 | 626 | ||
| 627 | if (NILP (buffer)) | 627 | if (NILP (buffer)) |
| 628 | b = current_buffer; | 628 | b = current_buffer; |
| 629 | else | 629 | else |
| 630 | { | 630 | { |
| 631 | CHECK_BUFFER (buffer, 1); | 631 | CHECK_BUFFER (buffer); |
| 632 | b = XBUFFER (buffer); | 632 | b = XBUFFER (buffer); |
| 633 | /* If buffer is dead, set marker to point nowhere. */ | 633 | /* If buffer is dead, set marker to point nowhere. */ |
| 634 | if (EQ (b->name, Qnil)) | 634 | if (EQ (b->name, Qnil)) |
| @@ -673,13 +673,13 @@ set_marker_restricted_both (marker, buffer, charpos, bytepos) | |||
| 673 | register struct buffer *b; | 673 | register struct buffer *b; |
| 674 | register struct Lisp_Marker *m; | 674 | register struct Lisp_Marker *m; |
| 675 | 675 | ||
| 676 | CHECK_MARKER (marker, 0); | 676 | CHECK_MARKER (marker); |
| 677 | 677 | ||
| 678 | if (NILP (buffer)) | 678 | if (NILP (buffer)) |
| 679 | b = current_buffer; | 679 | b = current_buffer; |
| 680 | else | 680 | else |
| 681 | { | 681 | { |
| 682 | CHECK_BUFFER (buffer, 1); | 682 | CHECK_BUFFER (buffer); |
| 683 | b = XBUFFER (buffer); | 683 | b = XBUFFER (buffer); |
| 684 | /* If buffer is dead, set marker to point nowhere. */ | 684 | /* If buffer is dead, set marker to point nowhere. */ |
| 685 | if (EQ (b->name, Qnil)) | 685 | if (EQ (b->name, Qnil)) |
| @@ -843,7 +843,7 @@ nil means the marker stays before text inserted there. */) | |||
| 843 | (marker) | 843 | (marker) |
| 844 | register Lisp_Object marker; | 844 | register Lisp_Object marker; |
| 845 | { | 845 | { |
| 846 | CHECK_MARKER (marker, 0); | 846 | CHECK_MARKER (marker); |
| 847 | return XMARKER (marker)->insertion_type ? Qt : Qnil; | 847 | return XMARKER (marker)->insertion_type ? Qt : Qnil; |
| 848 | } | 848 | } |
| 849 | 849 | ||
| @@ -855,7 +855,7 @@ If TYPE is nil, it means the marker stays behind when you insert text at it. */ | |||
| 855 | (marker, type) | 855 | (marker, type) |
| 856 | Lisp_Object marker, type; | 856 | Lisp_Object marker, type; |
| 857 | { | 857 | { |
| 858 | CHECK_MARKER (marker, 0); | 858 | CHECK_MARKER (marker); |
| 859 | 859 | ||
| 860 | XMARKER (marker)->insertion_type = ! NILP (type); | 860 | XMARKER (marker)->insertion_type = ! NILP (type); |
| 861 | return type; | 861 | return type; |
diff --git a/src/minibuf.c b/src/minibuf.c index f0b8436ba0e..da5748d943a 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -199,7 +199,7 @@ without invoking the usual minibuffer commands. */) | |||
| 199 | (window) | 199 | (window) |
| 200 | Lisp_Object window; | 200 | Lisp_Object window; |
| 201 | { | 201 | { |
| 202 | CHECK_WINDOW (window, 1); | 202 | CHECK_WINDOW (window); |
| 203 | if (! MINI_WINDOW_P (XWINDOW (window))) | 203 | if (! MINI_WINDOW_P (XWINDOW (window))) |
| 204 | error ("Window is not a minibuffer window"); | 204 | error ("Window is not a minibuffer window"); |
| 205 | 205 | ||
| @@ -848,7 +848,7 @@ If the variable `minibuffer-allow-text-properties' is non-nil, | |||
| 848 | 848 | ||
| 849 | position = Qnil; | 849 | position = Qnil; |
| 850 | 850 | ||
| 851 | CHECK_STRING (prompt, 0); | 851 | CHECK_STRING (prompt); |
| 852 | if (!NILP (initial_contents)) | 852 | if (!NILP (initial_contents)) |
| 853 | { | 853 | { |
| 854 | if (CONSP (initial_contents)) | 854 | if (CONSP (initial_contents)) |
| @@ -856,10 +856,10 @@ If the variable `minibuffer-allow-text-properties' is non-nil, | |||
| 856 | position = Fcdr (initial_contents); | 856 | position = Fcdr (initial_contents); |
| 857 | initial_contents = Fcar (initial_contents); | 857 | initial_contents = Fcar (initial_contents); |
| 858 | } | 858 | } |
| 859 | CHECK_STRING (initial_contents, 1); | 859 | CHECK_STRING (initial_contents); |
| 860 | if (!NILP (position)) | 860 | if (!NILP (position)) |
| 861 | { | 861 | { |
| 862 | CHECK_NUMBER (position, 0); | 862 | CHECK_NUMBER (position); |
| 863 | /* Convert to distance from end of input. */ | 863 | /* Convert to distance from end of input. */ |
| 864 | if (XINT (position) < 1) | 864 | if (XINT (position) < 1) |
| 865 | /* A number too small means the beginning of the string. */ | 865 | /* A number too small means the beginning of the string. */ |
| @@ -906,9 +906,9 @@ is a string to insert in the minibuffer before reading. */) | |||
| 906 | (prompt, initial_contents) | 906 | (prompt, initial_contents) |
| 907 | Lisp_Object prompt, initial_contents; | 907 | Lisp_Object prompt, initial_contents; |
| 908 | { | 908 | { |
| 909 | CHECK_STRING (prompt, 0); | 909 | CHECK_STRING (prompt); |
| 910 | if (!NILP (initial_contents)) | 910 | if (!NILP (initial_contents)) |
| 911 | CHECK_STRING (initial_contents, 1); | 911 | CHECK_STRING (initial_contents); |
| 912 | return read_minibuf (Vminibuffer_local_map, initial_contents, | 912 | return read_minibuf (Vminibuffer_local_map, initial_contents, |
| 913 | prompt, Qnil, 1, Qminibuffer_history, | 913 | prompt, Qnil, 1, Qminibuffer_history, |
| 914 | make_number (0), Qnil, 0, 0); | 914 | make_number (0), Qnil, 0, 0); |
| @@ -958,9 +958,9 @@ the current input method and the setting of enable-multibyte-characters. */) | |||
| 958 | (prompt, initial, inherit_input_method) | 958 | (prompt, initial, inherit_input_method) |
| 959 | Lisp_Object prompt, initial, inherit_input_method; | 959 | Lisp_Object prompt, initial, inherit_input_method; |
| 960 | { | 960 | { |
| 961 | CHECK_STRING (prompt, 0); | 961 | CHECK_STRING (prompt); |
| 962 | if (! NILP (initial)) | 962 | if (! NILP (initial)) |
| 963 | CHECK_STRING (initial, 1); | 963 | CHECK_STRING (initial); |
| 964 | 964 | ||
| 965 | return read_minibuf (Vminibuffer_local_ns_map, initial, prompt, Qnil, | 965 | return read_minibuf (Vminibuffer_local_ns_map, initial, prompt, Qnil, |
| 966 | 0, Qminibuffer_history, make_number (0), Qnil, 0, | 966 | 0, Qminibuffer_history, make_number (0), Qnil, 0, |
| @@ -1111,7 +1111,7 @@ is used to further constrain the set of candidates. */) | |||
| 1111 | Lisp_Object bucket, zero, end, tem; | 1111 | Lisp_Object bucket, zero, end, tem; |
| 1112 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 1112 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
| 1113 | 1113 | ||
| 1114 | CHECK_STRING (string, 0); | 1114 | CHECK_STRING (string); |
| 1115 | if (!list && !VECTORP (alist)) | 1115 | if (!list && !VECTORP (alist)) |
| 1116 | return call3 (alist, string, predicate, Qnil); | 1116 | return call3 (alist, string, predicate, Qnil); |
| 1117 | 1117 | ||
| @@ -1359,7 +1359,7 @@ are ignored unless STRING itself starts with a space. */) | |||
| 1359 | Lisp_Object bucket, tem; | 1359 | Lisp_Object bucket, tem; |
| 1360 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 1360 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
| 1361 | 1361 | ||
| 1362 | CHECK_STRING (string, 0); | 1362 | CHECK_STRING (string); |
| 1363 | if (!list && !VECTORP (alist)) | 1363 | if (!list && !VECTORP (alist)) |
| 1364 | { | 1364 | { |
| 1365 | return call3 (alist, string, predicate, Qt); | 1365 | return call3 (alist, string, predicate, Qt); |
| @@ -1532,10 +1532,10 @@ Completion ignores case if the ambient value of | |||
| 1532 | position = Fcdr (init); | 1532 | position = Fcdr (init); |
| 1533 | init = Fcar (init); | 1533 | init = Fcar (init); |
| 1534 | } | 1534 | } |
| 1535 | CHECK_STRING (init, 0); | 1535 | CHECK_STRING (init); |
| 1536 | if (!NILP (position)) | 1536 | if (!NILP (position)) |
| 1537 | { | 1537 | { |
| 1538 | CHECK_NUMBER (position, 0); | 1538 | CHECK_NUMBER (position); |
| 1539 | /* Convert to distance from end of input. */ | 1539 | /* Convert to distance from end of input. */ |
| 1540 | pos = XINT (position) - XSTRING (init)->size; | 1540 | pos = XINT (position) - XSTRING (init)->size; |
| 1541 | } | 1541 | } |
| @@ -1911,7 +1911,7 @@ Return nil if there is no valid completion, else t. */) | |||
| 1911 | { | 1911 | { |
| 1912 | int buffer_nchars, completion_nchars; | 1912 | int buffer_nchars, completion_nchars; |
| 1913 | 1913 | ||
| 1914 | CHECK_STRING (completion, 0); | 1914 | CHECK_STRING (completion); |
| 1915 | tem = Fminibuffer_contents (); | 1915 | tem = Fminibuffer_contents (); |
| 1916 | GCPRO2 (completion, tem); | 1916 | GCPRO2 (completion, tem); |
| 1917 | /* If reading a file name, | 1917 | /* If reading a file name, |
| @@ -2085,16 +2085,16 @@ It can find the completion buffer in `standard-output'. */) | |||
| 2085 | if (CONSP (elt)) | 2085 | if (CONSP (elt)) |
| 2086 | { | 2086 | { |
| 2087 | tem = XCAR (elt); | 2087 | tem = XCAR (elt); |
| 2088 | CHECK_STRING (tem, 0); | 2088 | CHECK_STRING (tem); |
| 2089 | length = XSTRING (tem)->size; | 2089 | length = XSTRING (tem)->size; |
| 2090 | 2090 | ||
| 2091 | tem = Fcar (XCDR (elt)); | 2091 | tem = Fcar (XCDR (elt)); |
| 2092 | CHECK_STRING (tem, 0); | 2092 | CHECK_STRING (tem); |
| 2093 | length += XSTRING (tem)->size; | 2093 | length += XSTRING (tem)->size; |
| 2094 | } | 2094 | } |
| 2095 | else | 2095 | else |
| 2096 | { | 2096 | { |
| 2097 | CHECK_STRING (elt, 0); | 2097 | CHECK_STRING (elt); |
| 2098 | length = XSTRING (elt)->size; | 2098 | length = XSTRING (elt)->size; |
| 2099 | } | 2099 | } |
| 2100 | 2100 | ||
diff --git a/src/mocklisp.c b/src/mocklisp.c index 1e4b6e2fa83..55ccce546c1 100644 --- a/src/mocklisp.c +++ b/src/mocklisp.c | |||
| @@ -125,7 +125,7 @@ DEFUN ("ml-arg", Fml_arg, Sml_arg, 1, 2, 0, | |||
| 125 | { | 125 | { |
| 126 | if (EQ (Vmocklisp_arguments, Qinteractive)) | 126 | if (EQ (Vmocklisp_arguments, Qinteractive)) |
| 127 | return Fread_string (prompt, Qnil, Qnil, Qnil, Qnil); | 127 | return Fread_string (prompt, Qnil, Qnil, Qnil, Qnil); |
| 128 | CHECK_NUMBER (n, 0); | 128 | CHECK_NUMBER (n); |
| 129 | XSETINT (n, XINT (n) - 1); /* Mocklisp likes to be origin-1 */ | 129 | XSETINT (n, XINT (n) - 1); /* Mocklisp likes to be origin-1 */ |
| 130 | return Fcar (Fnthcdr (n, Vmocklisp_arguments)); | 130 | return Fcar (Fnthcdr (n, Vmocklisp_arguments)); |
| 131 | } | 131 | } |
| @@ -189,9 +189,9 @@ If either FROM or LENGTH is negative, the length of STRING is added to it. */) | |||
| 189 | (string, from, to) | 189 | (string, from, to) |
| 190 | Lisp_Object string, from, to; | 190 | Lisp_Object string, from, to; |
| 191 | { | 191 | { |
| 192 | CHECK_STRING (string, 0); | 192 | CHECK_STRING (string); |
| 193 | CHECK_NUMBER (from, 1); | 193 | CHECK_NUMBER (from); |
| 194 | CHECK_NUMBER (to, 2); | 194 | CHECK_NUMBER (to); |
| 195 | 195 | ||
| 196 | if (XINT (from) < 0) | 196 | if (XINT (from) < 0) |
| 197 | XSETINT (from, XINT (from) + XSTRING (string)->size); | 197 | XSETINT (from, XINT (from) + XSTRING (string)->size); |
diff --git a/src/msdos.c b/src/msdos.c index ec7c7161c2b..12235af8301 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -198,7 +198,7 @@ them. This happens with wheeled mice on Windows 9X, for example.") | |||
| 198 | { | 198 | { |
| 199 | int n; | 199 | int n; |
| 200 | 200 | ||
| 201 | CHECK_NUMBER (nbuttons, 0); | 201 | CHECK_NUMBER (nbuttons); |
| 202 | n = XINT (nbuttons); | 202 | n = XINT (nbuttons); |
| 203 | if (n < 2 || n > 3) | 203 | if (n < 2 || n > 3) |
| 204 | Fsignal (Qargs_out_of_range, | 204 | Fsignal (Qargs_out_of_range, |
| @@ -2286,7 +2286,7 @@ DEFUN ("msdos-remember-default-colors", Fmsdos_remember_default_colors, | |||
| 2286 | { | 2286 | { |
| 2287 | struct frame *f; | 2287 | struct frame *f; |
| 2288 | 2288 | ||
| 2289 | CHECK_FRAME (frame, 0); | 2289 | CHECK_FRAME (frame); |
| 2290 | f= XFRAME (frame); | 2290 | f= XFRAME (frame); |
| 2291 | 2291 | ||
| 2292 | /* This function is called after applying default-frame-alist to the | 2292 | /* This function is called after applying default-frame-alist to the |
| @@ -2355,7 +2355,7 @@ IT_set_frame_parameters (f, alist) | |||
| 2355 | 2355 | ||
| 2356 | elt = Fcar (tail); | 2356 | elt = Fcar (tail); |
| 2357 | parms[i] = Fcar (elt); | 2357 | parms[i] = Fcar (elt); |
| 2358 | CHECK_SYMBOL (parms[i], 1); | 2358 | CHECK_SYMBOL (parms[i]); |
| 2359 | values[i] = Fcdr (elt); | 2359 | values[i] = Fcdr (elt); |
| 2360 | i++; | 2360 | i++; |
| 2361 | } | 2361 | } |
diff --git a/src/print.c b/src/print.c index 832e9af46bd..f1f1af787eb 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -532,7 +532,7 @@ PRINTCHARFUN defaults to the value of `standard-output' (which see). */) | |||
| 532 | 532 | ||
| 533 | if (NILP (printcharfun)) | 533 | if (NILP (printcharfun)) |
| 534 | printcharfun = Vstandard_output; | 534 | printcharfun = Vstandard_output; |
| 535 | CHECK_NUMBER (character, 0); | 535 | CHECK_NUMBER (character); |
| 536 | PRINTPREPARE; | 536 | PRINTPREPARE; |
| 537 | PRINTCHAR (XINT (character)); | 537 | PRINTCHAR (XINT (character)); |
| 538 | PRINTFINISH; | 538 | PRINTFINISH; |
| @@ -663,7 +663,7 @@ usage: (with-output-to-temp-buffer BUFFNAME BODY ...) */) | |||
| 663 | 663 | ||
| 664 | GCPRO1(args); | 664 | GCPRO1(args); |
| 665 | name = Feval (Fcar (args)); | 665 | name = Feval (Fcar (args)); |
| 666 | CHECK_STRING (name, 0); | 666 | CHECK_STRING (name); |
| 667 | temp_output_buffer_setup (XSTRING (name)->data); | 667 | temp_output_buffer_setup (XSTRING (name)->data); |
| 668 | buf = Vstandard_output; | 668 | buf = Vstandard_output; |
| 669 | UNGCPRO; | 669 | UNGCPRO; |
| @@ -875,7 +875,7 @@ to make it write to the debugging output. */) | |||
| 875 | (character) | 875 | (character) |
| 876 | Lisp_Object character; | 876 | Lisp_Object character; |
| 877 | { | 877 | { |
| 878 | CHECK_NUMBER (character, 0); | 878 | CHECK_NUMBER (character); |
| 879 | putc (XINT (character), stderr); | 879 | putc (XINT (character), stderr); |
| 880 | 880 | ||
| 881 | #ifdef WINDOWSNT | 881 | #ifdef WINDOWSNT |
diff --git a/src/process.c b/src/process.c index ed0db6072fb..3d0a84d4c7b 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -493,7 +493,7 @@ DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0, | |||
| 493 | { | 493 | { |
| 494 | if (PROCESSP (name)) | 494 | if (PROCESSP (name)) |
| 495 | return name; | 495 | return name; |
| 496 | CHECK_STRING (name, 0); | 496 | CHECK_STRING (name); |
| 497 | return Fcdr (Fassoc (name, Vprocess_alist)); | 497 | return Fcdr (Fassoc (name, Vprocess_alist)); |
| 498 | } | 498 | } |
| 499 | 499 | ||
| @@ -551,7 +551,7 @@ get_process (name) | |||
| 551 | } | 551 | } |
| 552 | else | 552 | else |
| 553 | { | 553 | { |
| 554 | CHECK_PROCESS (obj, 0); | 554 | CHECK_PROCESS (obj); |
| 555 | proc = obj; | 555 | proc = obj; |
| 556 | } | 556 | } |
| 557 | return proc; | 557 | return proc; |
| @@ -634,7 +634,7 @@ If PROCESS has not yet exited or died, return 0. */) | |||
| 634 | (process) | 634 | (process) |
| 635 | register Lisp_Object process; | 635 | register Lisp_Object process; |
| 636 | { | 636 | { |
| 637 | CHECK_PROCESS (process, 0); | 637 | CHECK_PROCESS (process); |
| 638 | if (!NILP (XPROCESS (process)->raw_status_low)) | 638 | if (!NILP (XPROCESS (process)->raw_status_low)) |
| 639 | update_status (XPROCESS (process)); | 639 | update_status (XPROCESS (process)); |
| 640 | if (CONSP (XPROCESS (process)->status)) | 640 | if (CONSP (XPROCESS (process)->status)) |
| @@ -649,7 +649,7 @@ For a network connection, this value is nil. */) | |||
| 649 | (process) | 649 | (process) |
| 650 | register Lisp_Object process; | 650 | register Lisp_Object process; |
| 651 | { | 651 | { |
| 652 | CHECK_PROCESS (process, 0); | 652 | CHECK_PROCESS (process); |
| 653 | return XPROCESS (process)->pid; | 653 | return XPROCESS (process)->pid; |
| 654 | } | 654 | } |
| 655 | 655 | ||
| @@ -660,7 +660,7 @@ possibly modified to make it unique among process names. */) | |||
| 660 | (process) | 660 | (process) |
| 661 | register Lisp_Object process; | 661 | register Lisp_Object process; |
| 662 | { | 662 | { |
| 663 | CHECK_PROCESS (process, 0); | 663 | CHECK_PROCESS (process); |
| 664 | return XPROCESS (process)->name; | 664 | return XPROCESS (process)->name; |
| 665 | } | 665 | } |
| 666 | 666 | ||
| @@ -672,7 +672,7 @@ For a non-child channel, this is nil. */) | |||
| 672 | (process) | 672 | (process) |
| 673 | register Lisp_Object process; | 673 | register Lisp_Object process; |
| 674 | { | 674 | { |
| 675 | CHECK_PROCESS (process, 0); | 675 | CHECK_PROCESS (process); |
| 676 | return XPROCESS (process)->command; | 676 | return XPROCESS (process)->command; |
| 677 | } | 677 | } |
| 678 | 678 | ||
| @@ -683,7 +683,7 @@ not the name of the pty that Emacs uses to talk with that terminal. */) | |||
| 683 | (process) | 683 | (process) |
| 684 | register Lisp_Object process; | 684 | register Lisp_Object process; |
| 685 | { | 685 | { |
| 686 | CHECK_PROCESS (process, 0); | 686 | CHECK_PROCESS (process); |
| 687 | return XPROCESS (process)->tty_name; | 687 | return XPROCESS (process)->tty_name; |
| 688 | } | 688 | } |
| 689 | 689 | ||
| @@ -693,9 +693,9 @@ DEFUN ("set-process-buffer", Fset_process_buffer, Sset_process_buffer, | |||
| 693 | (process, buffer) | 693 | (process, buffer) |
| 694 | register Lisp_Object process, buffer; | 694 | register Lisp_Object process, buffer; |
| 695 | { | 695 | { |
| 696 | CHECK_PROCESS (process, 0); | 696 | CHECK_PROCESS (process); |
| 697 | if (!NILP (buffer)) | 697 | if (!NILP (buffer)) |
| 698 | CHECK_BUFFER (buffer, 1); | 698 | CHECK_BUFFER (buffer); |
| 699 | XPROCESS (process)->buffer = buffer; | 699 | XPROCESS (process)->buffer = buffer; |
| 700 | return buffer; | 700 | return buffer; |
| 701 | } | 701 | } |
| @@ -707,7 +707,7 @@ Output from PROCESS is inserted in this buffer unless PROCESS has a filter. */) | |||
| 707 | (process) | 707 | (process) |
| 708 | register Lisp_Object process; | 708 | register Lisp_Object process; |
| 709 | { | 709 | { |
| 710 | CHECK_PROCESS (process, 0); | 710 | CHECK_PROCESS (process); |
| 711 | return XPROCESS (process)->buffer; | 711 | return XPROCESS (process)->buffer; |
| 712 | } | 712 | } |
| 713 | 713 | ||
| @@ -717,7 +717,7 @@ DEFUN ("process-mark", Fprocess_mark, Sprocess_mark, | |||
| 717 | (process) | 717 | (process) |
| 718 | register Lisp_Object process; | 718 | register Lisp_Object process; |
| 719 | { | 719 | { |
| 720 | CHECK_PROCESS (process, 0); | 720 | CHECK_PROCESS (process); |
| 721 | return XPROCESS (process)->mark; | 721 | return XPROCESS (process)->mark; |
| 722 | } | 722 | } |
| 723 | 723 | ||
| @@ -734,7 +734,7 @@ If the process has a filter, its buffer is not used for output. */) | |||
| 734 | { | 734 | { |
| 735 | struct Lisp_Process *p; | 735 | struct Lisp_Process *p; |
| 736 | 736 | ||
| 737 | CHECK_PROCESS (process, 0); | 737 | CHECK_PROCESS (process); |
| 738 | p = XPROCESS (process); | 738 | p = XPROCESS (process); |
| 739 | 739 | ||
| 740 | /* Don't signal an error if the process' input file descriptor | 740 | /* Don't signal an error if the process' input file descriptor |
| @@ -770,7 +770,7 @@ See `set-process-filter' for more info on filter functions. */) | |||
| 770 | (process) | 770 | (process) |
| 771 | register Lisp_Object process; | 771 | register Lisp_Object process; |
| 772 | { | 772 | { |
| 773 | CHECK_PROCESS (process, 0); | 773 | CHECK_PROCESS (process); |
| 774 | return XPROCESS (process)->filter; | 774 | return XPROCESS (process)->filter; |
| 775 | } | 775 | } |
| 776 | 776 | ||
| @@ -782,7 +782,7 @@ It gets two arguments: the process, and a string describing the change. */) | |||
| 782 | (process, sentinel) | 782 | (process, sentinel) |
| 783 | register Lisp_Object process, sentinel; | 783 | register Lisp_Object process, sentinel; |
| 784 | { | 784 | { |
| 785 | CHECK_PROCESS (process, 0); | 785 | CHECK_PROCESS (process); |
| 786 | XPROCESS (process)->sentinel = sentinel; | 786 | XPROCESS (process)->sentinel = sentinel; |
| 787 | return sentinel; | 787 | return sentinel; |
| 788 | } | 788 | } |
| @@ -794,7 +794,7 @@ See `set-process-sentinel' for more info on sentinels. */) | |||
| 794 | (process) | 794 | (process) |
| 795 | register Lisp_Object process; | 795 | register Lisp_Object process; |
| 796 | { | 796 | { |
| 797 | CHECK_PROCESS (process, 0); | 797 | CHECK_PROCESS (process); |
| 798 | return XPROCESS (process)->sentinel; | 798 | return XPROCESS (process)->sentinel; |
| 799 | } | 799 | } |
| 800 | 800 | ||
| @@ -804,9 +804,9 @@ DEFUN ("set-process-window-size", Fset_process_window_size, | |||
| 804 | (process, height, width) | 804 | (process, height, width) |
| 805 | register Lisp_Object process, height, width; | 805 | register Lisp_Object process, height, width; |
| 806 | { | 806 | { |
| 807 | CHECK_PROCESS (process, 0); | 807 | CHECK_PROCESS (process); |
| 808 | CHECK_NATNUM (height, 0); | 808 | CHECK_NATNUM (height); |
| 809 | CHECK_NATNUM (width, 0); | 809 | CHECK_NATNUM (width); |
| 810 | 810 | ||
| 811 | if (XINT (XPROCESS (process)->infd) < 0 | 811 | if (XINT (XPROCESS (process)->infd) < 0 |
| 812 | || set_window_size (XINT (XPROCESS (process)->infd), | 812 | || set_window_size (XINT (XPROCESS (process)->infd), |
| @@ -836,7 +836,7 @@ for the process which will run. */) | |||
| 836 | (process, flag) | 836 | (process, flag) |
| 837 | register Lisp_Object process, flag; | 837 | register Lisp_Object process, flag; |
| 838 | { | 838 | { |
| 839 | CHECK_PROCESS (process, 0); | 839 | CHECK_PROCESS (process); |
| 840 | XPROCESS (process)->inherit_coding_system_flag = flag; | 840 | XPROCESS (process)->inherit_coding_system_flag = flag; |
| 841 | return flag; | 841 | return flag; |
| 842 | } | 842 | } |
| @@ -851,7 +851,7 @@ the process output. */) | |||
| 851 | (process) | 851 | (process) |
| 852 | register Lisp_Object process; | 852 | register Lisp_Object process; |
| 853 | { | 853 | { |
| 854 | CHECK_PROCESS (process, 0); | 854 | CHECK_PROCESS (process); |
| 855 | return XPROCESS (process)->inherit_coding_system_flag; | 855 | return XPROCESS (process)->inherit_coding_system_flag; |
| 856 | } | 856 | } |
| 857 | 857 | ||
| @@ -865,7 +865,7 @@ Value is t if a query was formerly required. */) | |||
| 865 | { | 865 | { |
| 866 | Lisp_Object tem; | 866 | Lisp_Object tem; |
| 867 | 867 | ||
| 868 | CHECK_PROCESS (process, 0); | 868 | CHECK_PROCESS (process); |
| 869 | tem = XPROCESS (process)->kill_without_query; | 869 | tem = XPROCESS (process)->kill_without_query; |
| 870 | XPROCESS (process)->kill_without_query = Fnull (value); | 870 | XPROCESS (process)->kill_without_query = Fnull (value); |
| 871 | 871 | ||
| @@ -879,7 +879,7 @@ For a net connection, the value is a cons cell of the form (HOST SERVICE). */) | |||
| 879 | (process) | 879 | (process) |
| 880 | register Lisp_Object process; | 880 | register Lisp_Object process; |
| 881 | { | 881 | { |
| 882 | CHECK_PROCESS (process, 0); | 882 | CHECK_PROCESS (process); |
| 883 | return XPROCESS (process)->childp; | 883 | return XPROCESS (process)->childp; |
| 884 | } | 884 | } |
| 885 | 885 | ||
| @@ -1090,11 +1090,11 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) | |||
| 1090 | } | 1090 | } |
| 1091 | 1091 | ||
| 1092 | name = args[0]; | 1092 | name = args[0]; |
| 1093 | CHECK_STRING (name, 0); | 1093 | CHECK_STRING (name); |
| 1094 | 1094 | ||
| 1095 | program = args[2]; | 1095 | program = args[2]; |
| 1096 | 1096 | ||
| 1097 | CHECK_STRING (program, 2); | 1097 | CHECK_STRING (program); |
| 1098 | 1098 | ||
| 1099 | proc = make_process (name); | 1099 | proc = make_process (name); |
| 1100 | /* If an error occurs and we can't start the process, we want to | 1100 | /* If an error occurs and we can't start the process, we want to |
| @@ -1169,7 +1169,7 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) | |||
| 1169 | for (i = 3; i < nargs; i++) | 1169 | for (i = 3; i < nargs; i++) |
| 1170 | { | 1170 | { |
| 1171 | tem = args[i]; | 1171 | tem = args[i]; |
| 1172 | CHECK_STRING (tem, i); | 1172 | CHECK_STRING (tem); |
| 1173 | len += STRING_BYTES (XSTRING (tem)) + 1; /* count the blank */ | 1173 | len += STRING_BYTES (XSTRING (tem)) + 1; /* count the blank */ |
| 1174 | } | 1174 | } |
| 1175 | new_argv = (unsigned char *) alloca (len); | 1175 | new_argv = (unsigned char *) alloca (len); |
| @@ -1177,7 +1177,7 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) | |||
| 1177 | for (i = 3; i < nargs; i++) | 1177 | for (i = 3; i < nargs; i++) |
| 1178 | { | 1178 | { |
| 1179 | tem = args[i]; | 1179 | tem = args[i]; |
| 1180 | CHECK_STRING (tem, i); | 1180 | CHECK_STRING (tem); |
| 1181 | strcat (new_argv, " "); | 1181 | strcat (new_argv, " "); |
| 1182 | strcat (new_argv, XSTRING (tem)->data); | 1182 | strcat (new_argv, XSTRING (tem)->data); |
| 1183 | } | 1183 | } |
| @@ -1220,7 +1220,7 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) | |||
| 1220 | for (i = 3; i < nargs; i++) | 1220 | for (i = 3; i < nargs; i++) |
| 1221 | { | 1221 | { |
| 1222 | tem = args[i]; | 1222 | tem = args[i]; |
| 1223 | CHECK_STRING (tem, i); | 1223 | CHECK_STRING (tem); |
| 1224 | if (STRING_MULTIBYTE (tem)) | 1224 | if (STRING_MULTIBYTE (tem)) |
| 1225 | tem = (code_convert_string_norecord | 1225 | tem = (code_convert_string_norecord |
| 1226 | (tem, XPROCESS (proc)->encode_coding_system, 1)); | 1226 | (tem, XPROCESS (proc)->encode_coding_system, 1)); |
| @@ -1784,8 +1784,8 @@ specifying a port number to connect to. */) | |||
| 1784 | #endif | 1784 | #endif |
| 1785 | 1785 | ||
| 1786 | GCPRO4 (name, buffer, host, service); | 1786 | GCPRO4 (name, buffer, host, service); |
| 1787 | CHECK_STRING (name, 0); | 1787 | CHECK_STRING (name); |
| 1788 | CHECK_STRING (host, 0); | 1788 | CHECK_STRING (host); |
| 1789 | 1789 | ||
| 1790 | #ifdef HAVE_GETADDRINFO | 1790 | #ifdef HAVE_GETADDRINFO |
| 1791 | /* SERVICE can either be a string or int. | 1791 | /* SERVICE can either be a string or int. |
| @@ -1797,7 +1797,7 @@ specifying a port number to connect to. */) | |||
| 1797 | } | 1797 | } |
| 1798 | else | 1798 | else |
| 1799 | { | 1799 | { |
| 1800 | CHECK_STRING (service, 0); | 1800 | CHECK_STRING (service); |
| 1801 | portstring = XSTRING (service)->data; | 1801 | portstring = XSTRING (service)->data; |
| 1802 | } | 1802 | } |
| 1803 | #else /* HAVE_GETADDRINFO */ | 1803 | #else /* HAVE_GETADDRINFO */ |
| @@ -1805,7 +1805,7 @@ specifying a port number to connect to. */) | |||
| 1805 | port = htons ((unsigned short) XINT (service)); | 1805 | port = htons ((unsigned short) XINT (service)); |
| 1806 | else | 1806 | else |
| 1807 | { | 1807 | { |
| 1808 | CHECK_STRING (service, 0); | 1808 | CHECK_STRING (service); |
| 1809 | svc_info = getservbyname (XSTRING (service)->data, "tcp"); | 1809 | svc_info = getservbyname (XSTRING (service)->data, "tcp"); |
| 1810 | if (svc_info == 0) | 1810 | if (svc_info == 0) |
| 1811 | error ("Unknown service \"%s\"", XSTRING (service)->data); | 1811 | error ("Unknown service \"%s\"", XSTRING (service)->data); |
| @@ -2250,11 +2250,11 @@ Return non-nil iff we received any output before the timeout expired. */) | |||
| 2250 | int useconds; | 2250 | int useconds; |
| 2251 | 2251 | ||
| 2252 | if (! NILP (process)) | 2252 | if (! NILP (process)) |
| 2253 | CHECK_PROCESS (process, 0); | 2253 | CHECK_PROCESS (process); |
| 2254 | 2254 | ||
| 2255 | if (! NILP (timeout_msecs)) | 2255 | if (! NILP (timeout_msecs)) |
| 2256 | { | 2256 | { |
| 2257 | CHECK_NUMBER (timeout_msecs, 2); | 2257 | CHECK_NUMBER (timeout_msecs); |
| 2258 | useconds = XINT (timeout_msecs); | 2258 | useconds = XINT (timeout_msecs); |
| 2259 | if (!INTEGERP (timeout)) | 2259 | if (!INTEGERP (timeout)) |
| 2260 | XSETINT (timeout, 0); | 2260 | XSETINT (timeout, 0); |
| @@ -2280,7 +2280,7 @@ Return non-nil iff we received any output before the timeout expired. */) | |||
| 2280 | 2280 | ||
| 2281 | if (! NILP (timeout)) | 2281 | if (! NILP (timeout)) |
| 2282 | { | 2282 | { |
| 2283 | CHECK_NUMBER (timeout, 1); | 2283 | CHECK_NUMBER (timeout); |
| 2284 | seconds = XINT (timeout); | 2284 | seconds = XINT (timeout); |
| 2285 | if (seconds < 0 || (seconds == 0 && useconds == 0)) | 2285 | if (seconds < 0 || (seconds == 0 && useconds == 0)) |
| 2286 | seconds = -1; | 2286 | seconds = -1; |
| @@ -3561,7 +3561,7 @@ Output from processes can arrive in between bunches. */) | |||
| 3561 | Lisp_Object process, string; | 3561 | Lisp_Object process, string; |
| 3562 | { | 3562 | { |
| 3563 | Lisp_Object proc; | 3563 | Lisp_Object proc; |
| 3564 | CHECK_STRING (string, 1); | 3564 | CHECK_STRING (string); |
| 3565 | proc = get_process (process); | 3565 | proc = get_process (process); |
| 3566 | send_process (proc, XSTRING (string)->data, | 3566 | send_process (proc, XSTRING (string)->data, |
| 3567 | STRING_BYTES (XSTRING (string)), string); | 3567 | STRING_BYTES (XSTRING (string)), string); |
| @@ -3904,7 +3904,7 @@ SIGCODE may be an integer, or a symbol whose name is a signal name. */) | |||
| 3904 | (pid, sigcode) | 3904 | (pid, sigcode) |
| 3905 | Lisp_Object pid, sigcode; | 3905 | Lisp_Object pid, sigcode; |
| 3906 | { | 3906 | { |
| 3907 | CHECK_NUMBER (pid, 0); | 3907 | CHECK_NUMBER (pid); |
| 3908 | 3908 | ||
| 3909 | #define handle_signal(NAME, VALUE) \ | 3909 | #define handle_signal(NAME, VALUE) \ |
| 3910 | else if (!strcmp (name, NAME)) \ | 3910 | else if (!strcmp (name, NAME)) \ |
| @@ -3916,7 +3916,7 @@ SIGCODE may be an integer, or a symbol whose name is a signal name. */) | |||
| 3916 | { | 3916 | { |
| 3917 | unsigned char *name; | 3917 | unsigned char *name; |
| 3918 | 3918 | ||
| 3919 | CHECK_SYMBOL (sigcode, 1); | 3919 | CHECK_SYMBOL (sigcode); |
| 3920 | name = XSYMBOL (sigcode)->name->data; | 3920 | name = XSYMBOL (sigcode)->name->data; |
| 3921 | 3921 | ||
| 3922 | if (0) | 3922 | if (0) |
| @@ -4516,7 +4516,7 @@ encode subprocess input. */) | |||
| 4516 | { | 4516 | { |
| 4517 | register struct Lisp_Process *p; | 4517 | register struct Lisp_Process *p; |
| 4518 | 4518 | ||
| 4519 | CHECK_PROCESS (proc, 0); | 4519 | CHECK_PROCESS (proc); |
| 4520 | p = XPROCESS (proc); | 4520 | p = XPROCESS (proc); |
| 4521 | if (XINT (p->infd) < 0) | 4521 | if (XINT (p->infd) < 0) |
| 4522 | error ("Input file descriptor of %s closed", XSTRING (p->name)->data); | 4522 | error ("Input file descriptor of %s closed", XSTRING (p->name)->data); |
| @@ -4539,7 +4539,7 @@ DEFUN ("process-coding-system", | |||
| 4539 | (proc) | 4539 | (proc) |
| 4540 | register Lisp_Object proc; | 4540 | register Lisp_Object proc; |
| 4541 | { | 4541 | { |
| 4542 | CHECK_PROCESS (proc, 0); | 4542 | CHECK_PROCESS (proc); |
| 4543 | return Fcons (XPROCESS (proc)->decode_coding_system, | 4543 | return Fcons (XPROCESS (proc)->decode_coding_system, |
| 4544 | XPROCESS (proc)->encode_coding_system); | 4544 | XPROCESS (proc)->encode_coding_system); |
| 4545 | } | 4545 | } |
diff --git a/src/search.c b/src/search.c index 55d1537c4ff..a7e27c88ecd 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -276,7 +276,7 @@ looking_at_1 (string, posix) | |||
| 276 | if (running_asynch_code) | 276 | if (running_asynch_code) |
| 277 | save_search_regs (); | 277 | save_search_regs (); |
| 278 | 278 | ||
| 279 | CHECK_STRING (string, 0); | 279 | CHECK_STRING (string); |
| 280 | bufp = compile_pattern (string, &search_regs, | 280 | bufp = compile_pattern (string, &search_regs, |
| 281 | (!NILP (current_buffer->case_fold_search) | 281 | (!NILP (current_buffer->case_fold_search) |
| 282 | ? DOWNCASE_TABLE : Qnil), | 282 | ? DOWNCASE_TABLE : Qnil), |
| @@ -365,8 +365,8 @@ string_match_1 (regexp, string, start, posix) | |||
| 365 | if (running_asynch_code) | 365 | if (running_asynch_code) |
| 366 | save_search_regs (); | 366 | save_search_regs (); |
| 367 | 367 | ||
| 368 | CHECK_STRING (regexp, 0); | 368 | CHECK_STRING (regexp); |
| 369 | CHECK_STRING (string, 1); | 369 | CHECK_STRING (string); |
| 370 | 370 | ||
| 371 | if (NILP (start)) | 371 | if (NILP (start)) |
| 372 | pos = 0, pos_byte = 0; | 372 | pos = 0, pos_byte = 0; |
| @@ -374,7 +374,7 @@ string_match_1 (regexp, string, start, posix) | |||
| 374 | { | 374 | { |
| 375 | int len = XSTRING (string)->size; | 375 | int len = XSTRING (string)->size; |
| 376 | 376 | ||
| 377 | CHECK_NUMBER (start, 2); | 377 | CHECK_NUMBER (start); |
| 378 | pos = XINT (start); | 378 | pos = XINT (start); |
| 379 | if (pos < 0 && -pos <= len) | 379 | if (pos < 0 && -pos <= len) |
| 380 | pos = len + pos; | 380 | pos = len + pos; |
| @@ -872,11 +872,11 @@ search_command (string, bound, noerror, count, direction, RE, posix) | |||
| 872 | 872 | ||
| 873 | if (!NILP (count)) | 873 | if (!NILP (count)) |
| 874 | { | 874 | { |
| 875 | CHECK_NUMBER (count, 3); | 875 | CHECK_NUMBER (count); |
| 876 | n *= XINT (count); | 876 | n *= XINT (count); |
| 877 | } | 877 | } |
| 878 | 878 | ||
| 879 | CHECK_STRING (string, 0); | 879 | CHECK_STRING (string); |
| 880 | if (NILP (bound)) | 880 | if (NILP (bound)) |
| 881 | { | 881 | { |
| 882 | if (n > 0) | 882 | if (n > 0) |
| @@ -886,7 +886,7 @@ search_command (string, bound, noerror, count, direction, RE, posix) | |||
| 886 | } | 886 | } |
| 887 | else | 887 | else |
| 888 | { | 888 | { |
| 889 | CHECK_NUMBER_COERCE_MARKER (bound, 1); | 889 | CHECK_NUMBER_COERCE_MARKER (bound); |
| 890 | lim = XINT (bound); | 890 | lim = XINT (bound); |
| 891 | if (n > 0 ? lim < PT : lim > PT) | 891 | if (n > 0 ? lim < PT : lim > PT) |
| 892 | error ("Invalid search bound (wrong side of point)"); | 892 | error ("Invalid search bound (wrong side of point)"); |
| @@ -1943,7 +1943,7 @@ wordify (string) | |||
| 1943 | int prev_c = 0; | 1943 | int prev_c = 0; |
| 1944 | int adjust; | 1944 | int adjust; |
| 1945 | 1945 | ||
| 1946 | CHECK_STRING (string, 0); | 1946 | CHECK_STRING (string); |
| 1947 | p = XSTRING (string)->data; | 1947 | p = XSTRING (string)->data; |
| 1948 | len = XSTRING (string)->size; | 1948 | len = XSTRING (string)->size; |
| 1949 | 1949 | ||
| @@ -2203,10 +2203,10 @@ since only regular expressions have distinguished subexpressions. */) | |||
| 2203 | int sub; | 2203 | int sub; |
| 2204 | int opoint, newpoint; | 2204 | int opoint, newpoint; |
| 2205 | 2205 | ||
| 2206 | CHECK_STRING (newtext, 0); | 2206 | CHECK_STRING (newtext); |
| 2207 | 2207 | ||
| 2208 | if (! NILP (string)) | 2208 | if (! NILP (string)) |
| 2209 | CHECK_STRING (string, 4); | 2209 | CHECK_STRING (string); |
| 2210 | 2210 | ||
| 2211 | case_action = nochange; /* We tried an initialization */ | 2211 | case_action = nochange; /* We tried an initialization */ |
| 2212 | /* but some C compilers blew it */ | 2212 | /* but some C compilers blew it */ |
| @@ -2218,7 +2218,7 @@ since only regular expressions have distinguished subexpressions. */) | |||
| 2218 | sub = 0; | 2218 | sub = 0; |
| 2219 | else | 2219 | else |
| 2220 | { | 2220 | { |
| 2221 | CHECK_NUMBER (subexp, 3); | 2221 | CHECK_NUMBER (subexp); |
| 2222 | sub = XINT (subexp); | 2222 | sub = XINT (subexp); |
| 2223 | if (sub < 0 || sub >= search_regs.num_regs) | 2223 | if (sub < 0 || sub >= search_regs.num_regs) |
| 2224 | args_out_of_range (subexp, make_number (search_regs.num_regs)); | 2224 | args_out_of_range (subexp, make_number (search_regs.num_regs)); |
| @@ -2581,7 +2581,7 @@ match_limit (num, beginningp) | |||
| 2581 | { | 2581 | { |
| 2582 | register int n; | 2582 | register int n; |
| 2583 | 2583 | ||
| 2584 | CHECK_NUMBER (num, 0); | 2584 | CHECK_NUMBER (num); |
| 2585 | n = XINT (num); | 2585 | n = XINT (num); |
| 2586 | if (n < 0 || n >= search_regs.num_regs) | 2586 | if (n < 0 || n >= search_regs.num_regs) |
| 2587 | args_out_of_range (num, make_number (search_regs.num_regs)); | 2587 | args_out_of_range (num, make_number (search_regs.num_regs)); |
| @@ -2771,7 +2771,7 @@ LIST should have been created by calling `match-data' previously. */) | |||
| 2771 | XSETBUFFER (last_thing_searched, XMARKER (marker)->buffer); | 2771 | XSETBUFFER (last_thing_searched, XMARKER (marker)->buffer); |
| 2772 | } | 2772 | } |
| 2773 | 2773 | ||
| 2774 | CHECK_NUMBER_COERCE_MARKER (marker, 0); | 2774 | CHECK_NUMBER_COERCE_MARKER (marker); |
| 2775 | from = XINT (marker); | 2775 | from = XINT (marker); |
| 2776 | list = Fcdr (list); | 2776 | list = Fcdr (list); |
| 2777 | 2777 | ||
| @@ -2779,7 +2779,7 @@ LIST should have been created by calling `match-data' previously. */) | |||
| 2779 | if (MARKERP (marker) && XMARKER (marker)->buffer == 0) | 2779 | if (MARKERP (marker) && XMARKER (marker)->buffer == 0) |
| 2780 | XSETFASTINT (marker, 0); | 2780 | XSETFASTINT (marker, 0); |
| 2781 | 2781 | ||
| 2782 | CHECK_NUMBER_COERCE_MARKER (marker, 0); | 2782 | CHECK_NUMBER_COERCE_MARKER (marker); |
| 2783 | search_regs.start[i] = from; | 2783 | search_regs.start[i] = from; |
| 2784 | search_regs.end[i] = XINT (marker); | 2784 | search_regs.end[i] = XINT (marker); |
| 2785 | } | 2785 | } |
| @@ -2842,7 +2842,7 @@ DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0, | |||
| 2842 | register unsigned char *temp; | 2842 | register unsigned char *temp; |
| 2843 | int backslashes_added = 0; | 2843 | int backslashes_added = 0; |
| 2844 | 2844 | ||
| 2845 | CHECK_STRING (string, 0); | 2845 | CHECK_STRING (string); |
| 2846 | 2846 | ||
| 2847 | temp = (unsigned char *) alloca (STRING_BYTES (XSTRING (string)) * 2); | 2847 | temp = (unsigned char *) alloca (STRING_BYTES (XSTRING (string)) * 2); |
| 2848 | 2848 | ||
diff --git a/src/sunfns.c b/src/sunfns.c index befe033b9a3..7319fca0357 100644 --- a/src/sunfns.c +++ b/src/sunfns.c | |||
| @@ -159,7 +159,7 @@ Redisplay does not happen if input is available before it starts. */) | |||
| 159 | struct timeval Timeout; | 159 | struct timeval Timeout; |
| 160 | int waitmask = 1; | 160 | int waitmask = 1; |
| 161 | 161 | ||
| 162 | CHECK_NUMBER (n, 0); | 162 | CHECK_NUMBER (n); |
| 163 | Timeout.tv_sec = XINT(n) / 1000; | 163 | Timeout.tv_sec = XINT(n) / 1000; |
| 164 | Timeout.tv_usec = (XINT(n) - (Timeout.tv_sec * 1000)) * 1000; | 164 | Timeout.tv_usec = (XINT(n) - (Timeout.tv_sec * 1000)) * 1000; |
| 165 | 165 | ||
| @@ -187,7 +187,7 @@ DEFUN ("sleep-for-millisecs", | |||
| 187 | { | 187 | { |
| 188 | unsigned useconds; | 188 | unsigned useconds; |
| 189 | 189 | ||
| 190 | CHECK_NUMBER (n, 0); | 190 | CHECK_NUMBER (n); |
| 191 | useconds = XINT(n) * 1000; | 191 | useconds = XINT(n) * 1000; |
| 192 | usleep(useconds); | 192 | usleep(useconds); |
| 193 | return(Qt); | 193 | return(Qt); |
| @@ -230,15 +230,15 @@ expressed as a string. If ICON is nil then the original arrow cursor is used. | |||
| 230 | /* | 230 | /* |
| 231 | * extract the data from the vector | 231 | * extract the data from the vector |
| 232 | */ | 232 | */ |
| 233 | CHECK_VECTOR (Icon, 0); | 233 | CHECK_VECTOR (Icon); |
| 234 | if (XVECTOR(Icon)->size < 3) return(Qnil); | 234 | if (XVECTOR(Icon)->size < 3) return(Qnil); |
| 235 | X_Hot = XVECTOR(Icon)->contents[0]; | 235 | X_Hot = XVECTOR(Icon)->contents[0]; |
| 236 | Y_Hot = XVECTOR(Icon)->contents[1]; | 236 | Y_Hot = XVECTOR(Icon)->contents[1]; |
| 237 | Data = XVECTOR(Icon)->contents[2]; | 237 | Data = XVECTOR(Icon)->contents[2]; |
| 238 | 238 | ||
| 239 | CHECK_NUMBER (X_Hot, 0); | 239 | CHECK_NUMBER (X_Hot); |
| 240 | CHECK_NUMBER (Y_Hot, 0); | 240 | CHECK_NUMBER (Y_Hot); |
| 241 | CHECK_STRING (Data, 0); | 241 | CHECK_STRING (Data); |
| 242 | if (XSTRING(Data)->size != 32) return(Qnil); | 242 | if (XSTRING(Data)->size != 32) return(Qnil); |
| 243 | /* | 243 | /* |
| 244 | * Setup the new cursor | 244 | * Setup the new cursor |
| @@ -324,7 +324,7 @@ DEFUN ("sun-set-selection", Fsun_set_selection, Ssun_set_selection, 1, 1, | |||
| 324 | { | 324 | { |
| 325 | struct selection selection; | 325 | struct selection selection; |
| 326 | 326 | ||
| 327 | CHECK_STRING (str, 0); | 327 | CHECK_STRING (str); |
| 328 | Current_Selection = str; | 328 | Current_Selection = str; |
| 329 | 329 | ||
| 330 | CHECK_GFX (Qnil); | 330 | CHECK_GFX (Qnil); |
| @@ -363,7 +363,7 @@ sun_item_create (Pair) | |||
| 363 | 363 | ||
| 364 | if (!CONSP(Pair)) wrong_type_argument(Qlistp, Pair); | 364 | if (!CONSP(Pair)) wrong_type_argument(Qlistp, Pair); |
| 365 | String = Fcar(Pair); | 365 | String = Fcar(Pair); |
| 366 | CHECK_STRING(String, 0); | 366 | CHECK_STRING(String); |
| 367 | Value = Fcdr(Pair); | 367 | Value = Fcdr(Pair); |
| 368 | if (SYMBOLP (Value)) | 368 | if (SYMBOLP (Value)) |
| 369 | Value = SYMBOL_VALUE (Value); | 369 | Value = SYMBOL_VALUE (Value); |
| @@ -384,7 +384,7 @@ sun_menu_create (Vector) | |||
| 384 | { | 384 | { |
| 385 | Menu menu; | 385 | Menu menu; |
| 386 | int i; | 386 | int i; |
| 387 | CHECK_VECTOR(Vector,0); | 387 | CHECK_VECTOR(Vector); |
| 388 | menu=menu_create(0); | 388 | menu=menu_create(0); |
| 389 | for(i = 0; i < XVECTOR(Vector)->size; i++) { | 389 | for(i = 0; i < XVECTOR(Vector)->size; i++) { |
| 390 | menu_set (menu, MENU_APPEND_ITEM, | 390 | menu_set (menu, MENU_APPEND_ITEM, |
| @@ -445,11 +445,11 @@ as a menu label. */) | |||
| 445 | Event *event = &event0; | 445 | Event *event = &event0; |
| 446 | Lisp_Object Value, Pair; | 446 | Lisp_Object Value, Pair; |
| 447 | 447 | ||
| 448 | CHECK_NUMBER(X_Position, 0); | 448 | CHECK_NUMBER(X_Position); |
| 449 | CHECK_NUMBER(Y_Position, 1); | 449 | CHECK_NUMBER(Y_Position); |
| 450 | CHECK_LIVE_WINDOW(window, 2); | 450 | CHECK_LIVE_WINDOW(window); |
| 451 | CHECK_NUMBER(Button, 3); | 451 | CHECK_NUMBER(Button); |
| 452 | CHECK_VECTOR(MEnu, 4); | 452 | CHECK_VECTOR(MEnu); |
| 453 | 453 | ||
| 454 | CHECK_GFX (Qnil); | 454 | CHECK_GFX (Qnil); |
| 455 | 455 | ||
diff --git a/src/syntax.c b/src/syntax.c index ce4c4d6fff8..4c5bb546755 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -871,7 +871,7 @@ are listed in the documentation of `modify-syntax-entry'. */) | |||
| 871 | gl_state.current_syntax_table = current_buffer->syntax_table; | 871 | gl_state.current_syntax_table = current_buffer->syntax_table; |
| 872 | 872 | ||
| 873 | gl_state.use_global = 0; | 873 | gl_state.use_global = 0; |
| 874 | CHECK_NUMBER (character, 0); | 874 | CHECK_NUMBER (character); |
| 875 | char_int = XINT (character); | 875 | char_int = XINT (character); |
| 876 | return make_number (syntax_code_spec[(int) SYNTAX (char_int)]); | 876 | return make_number (syntax_code_spec[(int) SYNTAX (char_int)]); |
| 877 | } | 877 | } |
| @@ -884,7 +884,7 @@ DEFUN ("matching-paren", Fmatching_paren, Smatching_paren, 1, 1, 0, | |||
| 884 | int char_int, code; | 884 | int char_int, code; |
| 885 | gl_state.current_syntax_table = current_buffer->syntax_table; | 885 | gl_state.current_syntax_table = current_buffer->syntax_table; |
| 886 | gl_state.use_global = 0; | 886 | gl_state.use_global = 0; |
| 887 | CHECK_NUMBER (character, 0); | 887 | CHECK_NUMBER (character); |
| 888 | char_int = XINT (character); | 888 | char_int = XINT (character); |
| 889 | code = SYNTAX (char_int); | 889 | code = SYNTAX (char_int); |
| 890 | if (code == Sopen || code == Sclose) | 890 | if (code == Sopen || code == Sclose) |
| @@ -906,7 +906,7 @@ text property. */) | |||
| 906 | int val; | 906 | int val; |
| 907 | Lisp_Object match; | 907 | Lisp_Object match; |
| 908 | 908 | ||
| 909 | CHECK_STRING (string, 0); | 909 | CHECK_STRING (string); |
| 910 | 910 | ||
| 911 | p = XSTRING (string)->data; | 911 | p = XSTRING (string)->data; |
| 912 | code = (enum syntaxcode) syntax_spec_code[*p++]; | 912 | code = (enum syntaxcode) syntax_spec_code[*p++]; |
| @@ -1012,7 +1012,7 @@ usage: (modify-syntax-entry CHAR NEWENTRY &optional SYNTAX-TABLE) */) | |||
| 1012 | (c, newentry, syntax_table) | 1012 | (c, newentry, syntax_table) |
| 1013 | Lisp_Object c, newentry, syntax_table; | 1013 | Lisp_Object c, newentry, syntax_table; |
| 1014 | { | 1014 | { |
| 1015 | CHECK_NUMBER (c, 0); | 1015 | CHECK_NUMBER (c); |
| 1016 | 1016 | ||
| 1017 | if (NILP (syntax_table)) | 1017 | if (NILP (syntax_table)) |
| 1018 | syntax_table = current_buffer->syntax_table; | 1018 | syntax_table = current_buffer->syntax_table; |
| @@ -1315,7 +1315,7 @@ and the function returns nil. Field boundaries are not noticed if | |||
| 1315 | Lisp_Object count; | 1315 | Lisp_Object count; |
| 1316 | { | 1316 | { |
| 1317 | int orig_val, val; | 1317 | int orig_val, val; |
| 1318 | CHECK_NUMBER (count, 0); | 1318 | CHECK_NUMBER (count); |
| 1319 | 1319 | ||
| 1320 | val = orig_val = scan_words (PT, XINT (count)); | 1320 | val = orig_val = scan_words (PT, XINT (count)); |
| 1321 | if (! orig_val) | 1321 | if (! orig_val) |
| @@ -1399,7 +1399,7 @@ skip_chars (forwardp, syntaxp, string, lim) | |||
| 1399 | unsigned char *str; | 1399 | unsigned char *str; |
| 1400 | int len; | 1400 | int len; |
| 1401 | 1401 | ||
| 1402 | CHECK_STRING (string, 0); | 1402 | CHECK_STRING (string); |
| 1403 | char_ranges = (int *) alloca (XSTRING (string)->size * (sizeof (int)) * 2); | 1403 | char_ranges = (int *) alloca (XSTRING (string)->size * (sizeof (int)) * 2); |
| 1404 | string_multibyte = STRING_MULTIBYTE (string); | 1404 | string_multibyte = STRING_MULTIBYTE (string); |
| 1405 | str = XSTRING (string)->data; | 1405 | str = XSTRING (string)->data; |
| @@ -1427,7 +1427,7 @@ skip_chars (forwardp, syntaxp, string, lim) | |||
| 1427 | if (NILP (lim)) | 1427 | if (NILP (lim)) |
| 1428 | XSETINT (lim, forwardp ? ZV : BEGV); | 1428 | XSETINT (lim, forwardp ? ZV : BEGV); |
| 1429 | else | 1429 | else |
| 1430 | CHECK_NUMBER_COERCE_MARKER (lim, 0); | 1430 | CHECK_NUMBER_COERCE_MARKER (lim); |
| 1431 | 1431 | ||
| 1432 | /* In any case, don't allow scan outside bounds of buffer. */ | 1432 | /* In any case, don't allow scan outside bounds of buffer. */ |
| 1433 | if (XINT (lim) > ZV) | 1433 | if (XINT (lim) > ZV) |
| @@ -1822,7 +1822,7 @@ between them, return t; otherwise return nil. */) | |||
| 1822 | int out_charpos, out_bytepos; | 1822 | int out_charpos, out_bytepos; |
| 1823 | int dummy; | 1823 | int dummy; |
| 1824 | 1824 | ||
| 1825 | CHECK_NUMBER (count, 0); | 1825 | CHECK_NUMBER (count); |
| 1826 | count1 = XINT (count); | 1826 | count1 = XINT (count); |
| 1827 | stop = count1 > 0 ? ZV : BEGV; | 1827 | stop = count1 > 0 ? ZV : BEGV; |
| 1828 | 1828 | ||
| @@ -2406,9 +2406,9 @@ If the depth is right but the count is not used up, nil is returned. */) | |||
| 2406 | (from, count, depth) | 2406 | (from, count, depth) |
| 2407 | Lisp_Object from, count, depth; | 2407 | Lisp_Object from, count, depth; |
| 2408 | { | 2408 | { |
| 2409 | CHECK_NUMBER (from, 0); | 2409 | CHECK_NUMBER (from); |
| 2410 | CHECK_NUMBER (count, 1); | 2410 | CHECK_NUMBER (count); |
| 2411 | CHECK_NUMBER (depth, 2); | 2411 | CHECK_NUMBER (depth); |
| 2412 | 2412 | ||
| 2413 | return scan_lists (XINT (from), XINT (count), XINT (depth), 0); | 2413 | return scan_lists (XINT (from), XINT (count), XINT (depth), 0); |
| 2414 | } | 2414 | } |
| @@ -2427,8 +2427,8 @@ but before count is used up, nil is returned. */) | |||
| 2427 | (from, count) | 2427 | (from, count) |
| 2428 | Lisp_Object from, count; | 2428 | Lisp_Object from, count; |
| 2429 | { | 2429 | { |
| 2430 | CHECK_NUMBER (from, 0); | 2430 | CHECK_NUMBER (from); |
| 2431 | CHECK_NUMBER (count, 1); | 2431 | CHECK_NUMBER (count); |
| 2432 | 2432 | ||
| 2433 | return scan_lists (XINT (from), XINT (count), 0, 1); | 2433 | return scan_lists (XINT (from), XINT (count), 0, 1); |
| 2434 | } | 2434 | } |
| @@ -2866,7 +2866,7 @@ Sixth arg COMMENTSTOP non-nil means stop at the start of a comment. | |||
| 2866 | 2866 | ||
| 2867 | if (!NILP (targetdepth)) | 2867 | if (!NILP (targetdepth)) |
| 2868 | { | 2868 | { |
| 2869 | CHECK_NUMBER (targetdepth, 3); | 2869 | CHECK_NUMBER (targetdepth); |
| 2870 | target = XINT (targetdepth); | 2870 | target = XINT (targetdepth); |
| 2871 | } | 2871 | } |
| 2872 | else | 2872 | else |
diff --git a/src/textprop.c b/src/textprop.c index 1f162c58db1..76600728d15 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -123,9 +123,9 @@ validate_interval_range (object, begin, end, force) | |||
| 123 | register INTERVAL i; | 123 | register INTERVAL i; |
| 124 | int searchpos; | 124 | int searchpos; |
| 125 | 125 | ||
| 126 | CHECK_STRING_OR_BUFFER (object, 0); | 126 | CHECK_STRING_OR_BUFFER (object); |
| 127 | CHECK_NUMBER_COERCE_MARKER (*begin, 0); | 127 | CHECK_NUMBER_COERCE_MARKER (*begin); |
| 128 | CHECK_NUMBER_COERCE_MARKER (*end, 0); | 128 | CHECK_NUMBER_COERCE_MARKER (*end); |
| 129 | 129 | ||
| 130 | /* If we are asked for a point, but from a subr which operates | 130 | /* If we are asked for a point, but from a subr which operates |
| 131 | on a range, then return nothing. */ | 131 | on a range, then return nothing. */ |
| @@ -505,7 +505,7 @@ interval_of (position, object) | |||
| 505 | else if (EQ (object, Qt)) | 505 | else if (EQ (object, Qt)) |
| 506 | return NULL_INTERVAL; | 506 | return NULL_INTERVAL; |
| 507 | 507 | ||
| 508 | CHECK_STRING_OR_BUFFER (object, 0); | 508 | CHECK_STRING_OR_BUFFER (object); |
| 509 | 509 | ||
| 510 | if (BUFFERP (object)) | 510 | if (BUFFERP (object)) |
| 511 | { | 511 | { |
| @@ -589,7 +589,7 @@ get_char_property_and_overlay (position, prop, object, overlay) | |||
| 589 | { | 589 | { |
| 590 | struct window *w = 0; | 590 | struct window *w = 0; |
| 591 | 591 | ||
| 592 | CHECK_NUMBER_COERCE_MARKER (position, 0); | 592 | CHECK_NUMBER_COERCE_MARKER (position); |
| 593 | 593 | ||
| 594 | if (NILP (object)) | 594 | if (NILP (object)) |
| 595 | XSETBUFFER (object, current_buffer); | 595 | XSETBUFFER (object, current_buffer); |
| @@ -687,7 +687,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 687 | temp = Fnext_overlay_change (position); | 687 | temp = Fnext_overlay_change (position); |
| 688 | if (! NILP (limit)) | 688 | if (! NILP (limit)) |
| 689 | { | 689 | { |
| 690 | CHECK_NUMBER (limit, 2); | 690 | CHECK_NUMBER (limit); |
| 691 | if (XINT (limit) < XINT (temp)) | 691 | if (XINT (limit) < XINT (temp)) |
| 692 | temp = limit; | 692 | temp = limit; |
| 693 | } | 693 | } |
| @@ -712,7 +712,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 712 | temp = Fprevious_overlay_change (position); | 712 | temp = Fprevious_overlay_change (position); |
| 713 | if (! NILP (limit)) | 713 | if (! NILP (limit)) |
| 714 | { | 714 | { |
| 715 | CHECK_NUMBER (limit, 2); | 715 | CHECK_NUMBER (limit); |
| 716 | if (XINT (limit) > XINT (temp)) | 716 | if (XINT (limit) > XINT (temp)) |
| 717 | temp = limit; | 717 | temp = limit; |
| 718 | } | 718 | } |
| @@ -751,7 +751,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 751 | int count = specpdl_ptr - specpdl; | 751 | int count = specpdl_ptr - specpdl; |
| 752 | 752 | ||
| 753 | if (! NILP (object)) | 753 | if (! NILP (object)) |
| 754 | CHECK_BUFFER (object, 0); | 754 | CHECK_BUFFER (object); |
| 755 | 755 | ||
| 756 | if (BUFFERP (object) && current_buffer != XBUFFER (object)) | 756 | if (BUFFERP (object) && current_buffer != XBUFFER (object)) |
| 757 | { | 757 | { |
| @@ -764,7 +764,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 764 | if (NILP (limit)) | 764 | if (NILP (limit)) |
| 765 | XSETFASTINT (limit, BUF_ZV (current_buffer)); | 765 | XSETFASTINT (limit, BUF_ZV (current_buffer)); |
| 766 | else | 766 | else |
| 767 | CHECK_NUMBER_COERCE_MARKER (limit, 0); | 767 | CHECK_NUMBER_COERCE_MARKER (limit); |
| 768 | 768 | ||
| 769 | for (;;) | 769 | for (;;) |
| 770 | { | 770 | { |
| @@ -816,7 +816,7 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 816 | int count = specpdl_ptr - specpdl; | 816 | int count = specpdl_ptr - specpdl; |
| 817 | 817 | ||
| 818 | if (! NILP (object)) | 818 | if (! NILP (object)) |
| 819 | CHECK_BUFFER (object, 0); | 819 | CHECK_BUFFER (object); |
| 820 | 820 | ||
| 821 | if (BUFFERP (object) && current_buffer != XBUFFER (object)) | 821 | if (BUFFERP (object) && current_buffer != XBUFFER (object)) |
| 822 | { | 822 | { |
| @@ -827,7 +827,7 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 827 | if (NILP (limit)) | 827 | if (NILP (limit)) |
| 828 | XSETFASTINT (limit, BUF_BEGV (current_buffer)); | 828 | XSETFASTINT (limit, BUF_BEGV (current_buffer)); |
| 829 | else | 829 | else |
| 830 | CHECK_NUMBER_COERCE_MARKER (limit, 0); | 830 | CHECK_NUMBER_COERCE_MARKER (limit); |
| 831 | 831 | ||
| 832 | if (XFASTINT (position) <= XFASTINT (limit)) | 832 | if (XFASTINT (position) <= XFASTINT (limit)) |
| 833 | position = limit; | 833 | position = limit; |
| @@ -884,7 +884,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 884 | XSETBUFFER (object, current_buffer); | 884 | XSETBUFFER (object, current_buffer); |
| 885 | 885 | ||
| 886 | if (! NILP (limit) && ! EQ (limit, Qt)) | 886 | if (! NILP (limit) && ! EQ (limit, Qt)) |
| 887 | CHECK_NUMBER_COERCE_MARKER (limit, 0); | 887 | CHECK_NUMBER_COERCE_MARKER (limit); |
| 888 | 888 | ||
| 889 | i = validate_interval_range (object, &position, &position, soft); | 889 | i = validate_interval_range (object, &position, &position, soft); |
| 890 | 890 | ||
| @@ -978,7 +978,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 978 | XSETBUFFER (object, current_buffer); | 978 | XSETBUFFER (object, current_buffer); |
| 979 | 979 | ||
| 980 | if (!NILP (limit)) | 980 | if (!NILP (limit)) |
| 981 | CHECK_NUMBER_COERCE_MARKER (limit, 0); | 981 | CHECK_NUMBER_COERCE_MARKER (limit); |
| 982 | 982 | ||
| 983 | i = validate_interval_range (object, &position, &position, soft); | 983 | i = validate_interval_range (object, &position, &position, soft); |
| 984 | if (NULL_INTERVAL_P (i)) | 984 | if (NULL_INTERVAL_P (i)) |
| @@ -1019,7 +1019,7 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT. */) | |||
| 1019 | XSETBUFFER (object, current_buffer); | 1019 | XSETBUFFER (object, current_buffer); |
| 1020 | 1020 | ||
| 1021 | if (!NILP (limit)) | 1021 | if (!NILP (limit)) |
| 1022 | CHECK_NUMBER_COERCE_MARKER (limit, 0); | 1022 | CHECK_NUMBER_COERCE_MARKER (limit); |
| 1023 | 1023 | ||
| 1024 | i = validate_interval_range (object, &position, &position, soft); | 1024 | i = validate_interval_range (object, &position, &position, soft); |
| 1025 | if (NULL_INTERVAL_P (i)) | 1025 | if (NULL_INTERVAL_P (i)) |
| @@ -1065,7 +1065,7 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT. */) | |||
| 1065 | XSETBUFFER (object, current_buffer); | 1065 | XSETBUFFER (object, current_buffer); |
| 1066 | 1066 | ||
| 1067 | if (!NILP (limit)) | 1067 | if (!NILP (limit)) |
| 1068 | CHECK_NUMBER_COERCE_MARKER (limit, 0); | 1068 | CHECK_NUMBER_COERCE_MARKER (limit); |
| 1069 | 1069 | ||
| 1070 | i = validate_interval_range (object, &position, &position, soft); | 1070 | i = validate_interval_range (object, &position, &position, soft); |
| 1071 | 1071 | ||
| @@ -1562,7 +1562,7 @@ copy_text_properties (start, end, src, pos, dest, prop) | |||
| 1562 | if (NULL_INTERVAL_P (i)) | 1562 | if (NULL_INTERVAL_P (i)) |
| 1563 | return Qnil; | 1563 | return Qnil; |
| 1564 | 1564 | ||
| 1565 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 1565 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 1566 | { | 1566 | { |
| 1567 | Lisp_Object dest_start, dest_end; | 1567 | Lisp_Object dest_start, dest_end; |
| 1568 | 1568 | ||
diff --git a/src/undo.c b/src/undo.c index 0c87a599bcd..ec6f9d6b1db 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -407,7 +407,7 @@ Return what remains of the list. */) | |||
| 407 | list = Fcdr (list); | 407 | list = Fcdr (list); |
| 408 | #endif | 408 | #endif |
| 409 | 409 | ||
| 410 | CHECK_NUMBER (n, 0); | 410 | CHECK_NUMBER (n); |
| 411 | arg = XINT (n); | 411 | arg = XINT (n); |
| 412 | next = Qnil; | 412 | next = Qnil; |
| 413 | GCPRO2 (next, list); | 413 | GCPRO2 (next, list); |
diff --git a/src/w16select.c b/src/w16select.c index f92e1a8c173..f8a3733deb1 100644 --- a/src/w16select.c +++ b/src/w16select.c | |||
| @@ -491,12 +491,12 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat | |||
| 491 | int charset_info; | 491 | int charset_info; |
| 492 | int no_crlf_conversion; | 492 | int no_crlf_conversion; |
| 493 | 493 | ||
| 494 | CHECK_STRING (string, 0); | 494 | CHECK_STRING (string); |
| 495 | 495 | ||
| 496 | if (NILP (frame)) | 496 | if (NILP (frame)) |
| 497 | frame = Fselected_frame (); | 497 | frame = Fselected_frame (); |
| 498 | 498 | ||
| 499 | CHECK_LIVE_FRAME (frame, 0); | 499 | CHECK_LIVE_FRAME (frame); |
| 500 | if ( !FRAME_MSDOS_P (XFRAME (frame))) | 500 | if ( !FRAME_MSDOS_P (XFRAME (frame))) |
| 501 | goto done; | 501 | goto done; |
| 502 | 502 | ||
| @@ -605,7 +605,7 @@ DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_dat | |||
| 605 | if (NILP (frame)) | 605 | if (NILP (frame)) |
| 606 | frame = Fselected_frame (); | 606 | frame = Fselected_frame (); |
| 607 | 607 | ||
| 608 | CHECK_LIVE_FRAME (frame, 0); | 608 | CHECK_LIVE_FRAME (frame); |
| 609 | if ( !FRAME_MSDOS_P (XFRAME (frame))) | 609 | if ( !FRAME_MSDOS_P (XFRAME (frame))) |
| 610 | goto done; | 610 | goto done; |
| 611 | 611 | ||
| @@ -701,7 +701,7 @@ and t is the same as `SECONDARY'.") | |||
| 701 | (selection) | 701 | (selection) |
| 702 | Lisp_Object selection; | 702 | Lisp_Object selection; |
| 703 | { | 703 | { |
| 704 | CHECK_SYMBOL (selection, 0); | 704 | CHECK_SYMBOL (selection); |
| 705 | 705 | ||
| 706 | /* Return nil for SECONDARY selection. For PRIMARY (or nil) | 706 | /* Return nil for SECONDARY selection. For PRIMARY (or nil) |
| 707 | selection, check if there is some text on the kill-ring; | 707 | selection, check if there is some text on the kill-ring; |
diff --git a/src/w32console.c b/src/w32console.c index 5bd4ab1f3f4..41693c63a85 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -428,7 +428,7 @@ SOUND is nil to use the normal beep.") | |||
| 428 | (sound) | 428 | (sound) |
| 429 | Lisp_Object sound; | 429 | Lisp_Object sound; |
| 430 | { | 430 | { |
| 431 | CHECK_SYMBOL (sound, 0); | 431 | CHECK_SYMBOL (sound); |
| 432 | 432 | ||
| 433 | if (NILP (sound)) | 433 | if (NILP (sound)) |
| 434 | sound_type = 0xFFFFFFFF; | 434 | sound_type = 0xFFFFFFFF; |
diff --git a/src/w32fns.c b/src/w32fns.c index 0c7f94fed89..def351562db 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -342,7 +342,7 @@ check_x_frame (frame) | |||
| 342 | 342 | ||
| 343 | if (NILP (frame)) | 343 | if (NILP (frame)) |
| 344 | frame = selected_frame; | 344 | frame = selected_frame; |
| 345 | CHECK_LIVE_FRAME (frame, 0); | 345 | CHECK_LIVE_FRAME (frame); |
| 346 | f = XFRAME (frame); | 346 | f = XFRAME (frame); |
| 347 | if (! FRAME_W32_P (f)) | 347 | if (! FRAME_W32_P (f)) |
| 348 | error ("non-w32 frame used"); | 348 | error ("non-w32 frame used"); |
| @@ -372,7 +372,7 @@ check_x_display_info (frame) | |||
| 372 | { | 372 | { |
| 373 | FRAME_PTR f; | 373 | FRAME_PTR f; |
| 374 | 374 | ||
| 375 | CHECK_LIVE_FRAME (frame, 0); | 375 | CHECK_LIVE_FRAME (frame); |
| 376 | f = XFRAME (frame); | 376 | f = XFRAME (frame); |
| 377 | if (! FRAME_W32_P (f)) | 377 | if (! FRAME_W32_P (f)) |
| 378 | error ("non-w32 frame used"); | 378 | error ("non-w32 frame used"); |
| @@ -1079,10 +1079,10 @@ The original entry's RGB ref is returned, or nil if the entry is new.") | |||
| 1079 | Lisp_Object oldrgb = Qnil; | 1079 | Lisp_Object oldrgb = Qnil; |
| 1080 | Lisp_Object entry; | 1080 | Lisp_Object entry; |
| 1081 | 1081 | ||
| 1082 | CHECK_NUMBER (red, 0); | 1082 | CHECK_NUMBER (red); |
| 1083 | CHECK_NUMBER (green, 0); | 1083 | CHECK_NUMBER (green); |
| 1084 | CHECK_NUMBER (blue, 0); | 1084 | CHECK_NUMBER (blue); |
| 1085 | CHECK_STRING (name, 0); | 1085 | CHECK_STRING (name); |
| 1086 | 1086 | ||
| 1087 | XSET (rgb, Lisp_Int, RGB(XUINT (red), XUINT (green), XUINT (blue))); | 1087 | XSET (rgb, Lisp_Int, RGB(XUINT (red), XUINT (green), XUINT (blue))); |
| 1088 | 1088 | ||
| @@ -1120,7 +1120,7 @@ where R,G,B are numbers between 0 and 255 and name is an arbitrary string.") | |||
| 1120 | Lisp_Object cmap = Qnil; | 1120 | Lisp_Object cmap = Qnil; |
| 1121 | Lisp_Object abspath; | 1121 | Lisp_Object abspath; |
| 1122 | 1122 | ||
| 1123 | CHECK_STRING (filename, 0); | 1123 | CHECK_STRING (filename); |
| 1124 | abspath = Fexpand_file_name (filename, Qnil); | 1124 | abspath = Fexpand_file_name (filename, Qnil); |
| 1125 | 1125 | ||
| 1126 | fp = fopen (XSTRING (filename)->data, "rt"); | 1126 | fp = fopen (XSTRING (filename)->data, "rt"); |
| @@ -1432,7 +1432,7 @@ w32_to_x_color (rgb) | |||
| 1432 | { | 1432 | { |
| 1433 | Lisp_Object color; | 1433 | Lisp_Object color; |
| 1434 | 1434 | ||
| 1435 | CHECK_NUMBER (rgb, 0); | 1435 | CHECK_NUMBER (rgb); |
| 1436 | 1436 | ||
| 1437 | BLOCK_INPUT; | 1437 | BLOCK_INPUT; |
| 1438 | 1438 | ||
| @@ -1891,7 +1891,7 @@ x_decode_color (f, arg, def) | |||
| 1891 | { | 1891 | { |
| 1892 | XColor cdef; | 1892 | XColor cdef; |
| 1893 | 1893 | ||
| 1894 | CHECK_STRING (arg, 0); | 1894 | CHECK_STRING (arg); |
| 1895 | 1895 | ||
| 1896 | if (strcmp (XSTRING (arg)->data, "black") == 0) | 1896 | if (strcmp (XSTRING (arg)->data, "black") == 0) |
| 1897 | return BLACK_PIX_DEFAULT (f); | 1897 | return BLACK_PIX_DEFAULT (f); |
| @@ -2029,7 +2029,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 2029 | 2029 | ||
| 2030 | if (!EQ (Qnil, Vx_pointer_shape)) | 2030 | if (!EQ (Qnil, Vx_pointer_shape)) |
| 2031 | { | 2031 | { |
| 2032 | CHECK_NUMBER (Vx_pointer_shape, 0); | 2032 | CHECK_NUMBER (Vx_pointer_shape); |
| 2033 | cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), XINT (Vx_pointer_shape)); | 2033 | cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), XINT (Vx_pointer_shape)); |
| 2034 | } | 2034 | } |
| 2035 | else | 2035 | else |
| @@ -2038,7 +2038,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 2038 | 2038 | ||
| 2039 | if (!EQ (Qnil, Vx_nontext_pointer_shape)) | 2039 | if (!EQ (Qnil, Vx_nontext_pointer_shape)) |
| 2040 | { | 2040 | { |
| 2041 | CHECK_NUMBER (Vx_nontext_pointer_shape, 0); | 2041 | CHECK_NUMBER (Vx_nontext_pointer_shape); |
| 2042 | nontext_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), | 2042 | nontext_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), |
| 2043 | XINT (Vx_nontext_pointer_shape)); | 2043 | XINT (Vx_nontext_pointer_shape)); |
| 2044 | } | 2044 | } |
| @@ -2048,7 +2048,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 2048 | 2048 | ||
| 2049 | if (!EQ (Qnil, Vx_hourglass_pointer_shape)) | 2049 | if (!EQ (Qnil, Vx_hourglass_pointer_shape)) |
| 2050 | { | 2050 | { |
| 2051 | CHECK_NUMBER (Vx_hourglass_pointer_shape, 0); | 2051 | CHECK_NUMBER (Vx_hourglass_pointer_shape); |
| 2052 | hourglass_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), | 2052 | hourglass_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), |
| 2053 | XINT (Vx_hourglass_pointer_shape)); | 2053 | XINT (Vx_hourglass_pointer_shape)); |
| 2054 | } | 2054 | } |
| @@ -2059,7 +2059,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 2059 | x_check_errors (FRAME_W32_DISPLAY (f), "bad nontext pointer cursor: %s"); | 2059 | x_check_errors (FRAME_W32_DISPLAY (f), "bad nontext pointer cursor: %s"); |
| 2060 | if (!EQ (Qnil, Vx_mode_pointer_shape)) | 2060 | if (!EQ (Qnil, Vx_mode_pointer_shape)) |
| 2061 | { | 2061 | { |
| 2062 | CHECK_NUMBER (Vx_mode_pointer_shape, 0); | 2062 | CHECK_NUMBER (Vx_mode_pointer_shape); |
| 2063 | mode_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), | 2063 | mode_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), |
| 2064 | XINT (Vx_mode_pointer_shape)); | 2064 | XINT (Vx_mode_pointer_shape)); |
| 2065 | } | 2065 | } |
| @@ -2069,7 +2069,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 2069 | 2069 | ||
| 2070 | if (!EQ (Qnil, Vx_sensitive_text_pointer_shape)) | 2070 | if (!EQ (Qnil, Vx_sensitive_text_pointer_shape)) |
| 2071 | { | 2071 | { |
| 2072 | CHECK_NUMBER (Vx_sensitive_text_pointer_shape, 0); | 2072 | CHECK_NUMBER (Vx_sensitive_text_pointer_shape); |
| 2073 | cross_cursor | 2073 | cross_cursor |
| 2074 | = XCreateFontCursor (FRAME_W32_DISPLAY (f), | 2074 | = XCreateFontCursor (FRAME_W32_DISPLAY (f), |
| 2075 | XINT (Vx_sensitive_text_pointer_shape)); | 2075 | XINT (Vx_sensitive_text_pointer_shape)); |
| @@ -2079,7 +2079,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 2079 | 2079 | ||
| 2080 | if (!NILP (Vx_window_horizontal_drag_shape)) | 2080 | if (!NILP (Vx_window_horizontal_drag_shape)) |
| 2081 | { | 2081 | { |
| 2082 | CHECK_NUMBER (Vx_window_horizontal_drag_shape, 0); | 2082 | CHECK_NUMBER (Vx_window_horizontal_drag_shape); |
| 2083 | horizontal_drag_cursor | 2083 | horizontal_drag_cursor |
| 2084 | = XCreateFontCursor (FRAME_X_DISPLAY (f), | 2084 | = XCreateFontCursor (FRAME_X_DISPLAY (f), |
| 2085 | XINT (Vx_window_horizontal_drag_shape)); | 2085 | XINT (Vx_window_horizontal_drag_shape)); |
| @@ -2222,7 +2222,7 @@ x_set_border_color (f, arg, oldval) | |||
| 2222 | { | 2222 | { |
| 2223 | int pix; | 2223 | int pix; |
| 2224 | 2224 | ||
| 2225 | CHECK_STRING (arg, 0); | 2225 | CHECK_STRING (arg); |
| 2226 | pix = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f)); | 2226 | pix = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f)); |
| 2227 | x_set_border_pixel (f, pix); | 2227 | x_set_border_pixel (f, pix); |
| 2228 | update_face_from_frame_parameter (f, Qborder_color, arg); | 2228 | update_face_from_frame_parameter (f, Qborder_color, arg); |
| @@ -2384,7 +2384,7 @@ x_set_font (f, arg, oldval) | |||
| 2384 | Lisp_Object frame; | 2384 | Lisp_Object frame; |
| 2385 | int old_fontset = FRAME_FONTSET(f); | 2385 | int old_fontset = FRAME_FONTSET(f); |
| 2386 | 2386 | ||
| 2387 | CHECK_STRING (arg, 1); | 2387 | CHECK_STRING (arg); |
| 2388 | 2388 | ||
| 2389 | fontset_name = Fquery_fontset (arg, Qnil); | 2389 | fontset_name = Fquery_fontset (arg, Qnil); |
| 2390 | 2390 | ||
| @@ -2435,7 +2435,7 @@ x_set_border_width (f, arg, oldval) | |||
| 2435 | struct frame *f; | 2435 | struct frame *f; |
| 2436 | Lisp_Object arg, oldval; | 2436 | Lisp_Object arg, oldval; |
| 2437 | { | 2437 | { |
| 2438 | CHECK_NUMBER (arg, 0); | 2438 | CHECK_NUMBER (arg); |
| 2439 | 2439 | ||
| 2440 | if (XINT (arg) == f->output_data.w32->border_width) | 2440 | if (XINT (arg) == f->output_data.w32->border_width) |
| 2441 | return; | 2441 | return; |
| @@ -2453,7 +2453,7 @@ x_set_internal_border_width (f, arg, oldval) | |||
| 2453 | { | 2453 | { |
| 2454 | int old = f->output_data.w32->internal_border_width; | 2454 | int old = f->output_data.w32->internal_border_width; |
| 2455 | 2455 | ||
| 2456 | CHECK_NUMBER (arg, 0); | 2456 | CHECK_NUMBER (arg); |
| 2457 | f->output_data.w32->internal_border_width = XINT (arg); | 2457 | f->output_data.w32->internal_border_width = XINT (arg); |
| 2458 | if (f->output_data.w32->internal_border_width < 0) | 2458 | if (f->output_data.w32->internal_border_width < 0) |
| 2459 | f->output_data.w32->internal_border_width = 0; | 2459 | f->output_data.w32->internal_border_width = 0; |
| @@ -2675,7 +2675,7 @@ x_set_name (f, name, explicit) | |||
| 2675 | name = build_string (FRAME_W32_DISPLAY_INFO (f)->w32_id_name); | 2675 | name = build_string (FRAME_W32_DISPLAY_INFO (f)->w32_id_name); |
| 2676 | } | 2676 | } |
| 2677 | else | 2677 | else |
| 2678 | CHECK_STRING (name, 0); | 2678 | CHECK_STRING (name); |
| 2679 | 2679 | ||
| 2680 | /* Don't change the name if it's already NAME. */ | 2680 | /* Don't change the name if it's already NAME. */ |
| 2681 | if (! NILP (Fstring_equal (name, f->name))) | 2681 | if (! NILP (Fstring_equal (name, f->name))) |
| @@ -2931,13 +2931,13 @@ and the class is `Emacs.CLASS.SUBCLASS'.") | |||
| 2931 | char *name_key; | 2931 | char *name_key; |
| 2932 | char *class_key; | 2932 | char *class_key; |
| 2933 | 2933 | ||
| 2934 | CHECK_STRING (attribute, 0); | 2934 | CHECK_STRING (attribute); |
| 2935 | CHECK_STRING (class, 0); | 2935 | CHECK_STRING (class); |
| 2936 | 2936 | ||
| 2937 | if (!NILP (component)) | 2937 | if (!NILP (component)) |
| 2938 | CHECK_STRING (component, 1); | 2938 | CHECK_STRING (component); |
| 2939 | if (!NILP (subclass)) | 2939 | if (!NILP (subclass)) |
| 2940 | CHECK_STRING (subclass, 2); | 2940 | CHECK_STRING (subclass); |
| 2941 | if (NILP (component) != NILP (subclass)) | 2941 | if (NILP (component) != NILP (subclass)) |
| 2942 | error ("x-get-resource: must specify both COMPONENT and SUBCLASS or neither"); | 2942 | error ("x-get-resource: must specify both COMPONENT and SUBCLASS or neither"); |
| 2943 | 2943 | ||
| @@ -3140,7 +3140,7 @@ or a list (- N) meaning -N pixels relative to bottom/right corner.") | |||
| 3140 | unsigned int width, height; | 3140 | unsigned int width, height; |
| 3141 | Lisp_Object result; | 3141 | Lisp_Object result; |
| 3142 | 3142 | ||
| 3143 | CHECK_STRING (string, 0); | 3143 | CHECK_STRING (string); |
| 3144 | 3144 | ||
| 3145 | geometry = XParseGeometry ((char *) XSTRING (string)->data, | 3145 | geometry = XParseGeometry ((char *) XSTRING (string)->data, |
| 3146 | &x, &y, &width, &height); | 3146 | &x, &y, &width, &height); |
| @@ -3218,12 +3218,12 @@ x_figure_window_size (f, parms) | |||
| 3218 | { | 3218 | { |
| 3219 | if (!EQ (tem0, Qunbound)) | 3219 | if (!EQ (tem0, Qunbound)) |
| 3220 | { | 3220 | { |
| 3221 | CHECK_NUMBER (tem0, 0); | 3221 | CHECK_NUMBER (tem0); |
| 3222 | f->height = XINT (tem0); | 3222 | f->height = XINT (tem0); |
| 3223 | } | 3223 | } |
| 3224 | if (!EQ (tem1, Qunbound)) | 3224 | if (!EQ (tem1, Qunbound)) |
| 3225 | { | 3225 | { |
| 3226 | CHECK_NUMBER (tem1, 0); | 3226 | CHECK_NUMBER (tem1); |
| 3227 | SET_FRAME_WIDTH (f, XINT (tem1)); | 3227 | SET_FRAME_WIDTH (f, XINT (tem1)); |
| 3228 | } | 3228 | } |
| 3229 | if (!NILP (tem2) && !EQ (tem2, Qunbound)) | 3229 | if (!NILP (tem2) && !EQ (tem2, Qunbound)) |
| @@ -3270,7 +3270,7 @@ x_figure_window_size (f, parms) | |||
| 3270 | f->output_data.w32->top_pos = 0; | 3270 | f->output_data.w32->top_pos = 0; |
| 3271 | else | 3271 | else |
| 3272 | { | 3272 | { |
| 3273 | CHECK_NUMBER (tem0, 0); | 3273 | CHECK_NUMBER (tem0); |
| 3274 | f->output_data.w32->top_pos = XINT (tem0); | 3274 | f->output_data.w32->top_pos = XINT (tem0); |
| 3275 | if (f->output_data.w32->top_pos < 0) | 3275 | if (f->output_data.w32->top_pos < 0) |
| 3276 | window_prompting |= YNegative; | 3276 | window_prompting |= YNegative; |
| @@ -3298,7 +3298,7 @@ x_figure_window_size (f, parms) | |||
| 3298 | f->output_data.w32->left_pos = 0; | 3298 | f->output_data.w32->left_pos = 0; |
| 3299 | else | 3299 | else |
| 3300 | { | 3300 | { |
| 3301 | CHECK_NUMBER (tem1, 0); | 3301 | CHECK_NUMBER (tem1); |
| 3302 | f->output_data.w32->left_pos = XINT (tem1); | 3302 | f->output_data.w32->left_pos = XINT (tem1); |
| 3303 | if (f->output_data.w32->left_pos < 0) | 3303 | if (f->output_data.w32->left_pos < 0) |
| 3304 | window_prompting |= XNegative; | 3304 | window_prompting |= XNegative; |
| @@ -5095,8 +5095,8 @@ x_icon (f, parms) | |||
| 5095 | icon_y = w32_get_arg (parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); | 5095 | icon_y = w32_get_arg (parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); |
| 5096 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) | 5096 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) |
| 5097 | { | 5097 | { |
| 5098 | CHECK_NUMBER (icon_x, 0); | 5098 | CHECK_NUMBER (icon_x); |
| 5099 | CHECK_NUMBER (icon_y, 0); | 5099 | CHECK_NUMBER (icon_y); |
| 5100 | } | 5100 | } |
| 5101 | else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound)) | 5101 | else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound)) |
| 5102 | error ("Both left and top icon corners of icon must be specified"); | 5102 | error ("Both left and top icon corners of icon must be specified"); |
| @@ -5239,7 +5239,7 @@ This function is an internal primitive--use `make-frame' instead.") | |||
| 5239 | if (EQ (parent, Qunbound)) | 5239 | if (EQ (parent, Qunbound)) |
| 5240 | parent = Qnil; | 5240 | parent = Qnil; |
| 5241 | if (! NILP (parent)) | 5241 | if (! NILP (parent)) |
| 5242 | CHECK_NUMBER (parent, 0); | 5242 | CHECK_NUMBER (parent); |
| 5243 | 5243 | ||
| 5244 | /* make_frame_without_minibuffer can run Lisp code and garbage collect. */ | 5244 | /* make_frame_without_minibuffer can run Lisp code and garbage collect. */ |
| 5245 | /* No need to protect DISPLAY because that's not used after passing | 5245 | /* No need to protect DISPLAY because that's not used after passing |
| @@ -7208,7 +7208,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, | |||
| 7208 | XColor foo; | 7208 | XColor foo; |
| 7209 | FRAME_PTR f = check_x_frame (frame); | 7209 | FRAME_PTR f = check_x_frame (frame); |
| 7210 | 7210 | ||
| 7211 | CHECK_STRING (color, 1); | 7211 | CHECK_STRING (color); |
| 7212 | 7212 | ||
| 7213 | if (w32_defined_color (f, XSTRING (color)->data, &foo, 0)) | 7213 | if (w32_defined_color (f, XSTRING (color)->data, &foo, 0)) |
| 7214 | return Qt; | 7214 | return Qt; |
| @@ -7224,7 +7224,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | |||
| 7224 | XColor foo; | 7224 | XColor foo; |
| 7225 | FRAME_PTR f = check_x_frame (frame); | 7225 | FRAME_PTR f = check_x_frame (frame); |
| 7226 | 7226 | ||
| 7227 | CHECK_STRING (color, 1); | 7227 | CHECK_STRING (color); |
| 7228 | 7228 | ||
| 7229 | if (w32_defined_color (f, XSTRING (color)->data, &foo, 0)) | 7229 | if (w32_defined_color (f, XSTRING (color)->data, &foo, 0)) |
| 7230 | { | 7230 | { |
| @@ -7534,7 +7534,7 @@ x_display_info_for_name (name) | |||
| 7534 | Lisp_Object names; | 7534 | Lisp_Object names; |
| 7535 | struct w32_display_info *dpyinfo; | 7535 | struct w32_display_info *dpyinfo; |
| 7536 | 7536 | ||
| 7537 | CHECK_STRING (name, 0); | 7537 | CHECK_STRING (name); |
| 7538 | 7538 | ||
| 7539 | for (dpyinfo = &one_w32_display_info, names = w32_display_name_list; | 7539 | for (dpyinfo = &one_w32_display_info, names = w32_display_name_list; |
| 7540 | dpyinfo; | 7540 | dpyinfo; |
| @@ -7575,9 +7575,9 @@ terminate Emacs if we can't open the connection.") | |||
| 7575 | unsigned char *xrm_option; | 7575 | unsigned char *xrm_option; |
| 7576 | struct w32_display_info *dpyinfo; | 7576 | struct w32_display_info *dpyinfo; |
| 7577 | 7577 | ||
| 7578 | CHECK_STRING (display, 0); | 7578 | CHECK_STRING (display); |
| 7579 | if (! NILP (xrm_string)) | 7579 | if (! NILP (xrm_string)) |
| 7580 | CHECK_STRING (xrm_string, 1); | 7580 | CHECK_STRING (xrm_string); |
| 7581 | 7581 | ||
| 7582 | if (! EQ (Vwindow_system, intern ("w32"))) | 7582 | if (! EQ (Vwindow_system, intern ("w32"))) |
| 7583 | error ("Not using Microsoft Windows"); | 7583 | error ("Not using Microsoft Windows"); |
| @@ -12465,8 +12465,8 @@ selected frame. Value is VALUE.") | |||
| 12465 | struct frame *f = check_x_frame (frame); | 12465 | struct frame *f = check_x_frame (frame); |
| 12466 | Atom prop_atom; | 12466 | Atom prop_atom; |
| 12467 | 12467 | ||
| 12468 | CHECK_STRING (prop, 1); | 12468 | CHECK_STRING (prop); |
| 12469 | CHECK_STRING (value, 2); | 12469 | CHECK_STRING (value); |
| 12470 | 12470 | ||
| 12471 | BLOCK_INPUT; | 12471 | BLOCK_INPUT; |
| 12472 | prop_atom = XInternAtom (FRAME_W32_DISPLAY (f), XSTRING (prop)->data, False); | 12472 | prop_atom = XInternAtom (FRAME_W32_DISPLAY (f), XSTRING (prop)->data, False); |
| @@ -12496,7 +12496,7 @@ FRAME nil or omitted means use the selected frame. Value is PROP.") | |||
| 12496 | struct frame *f = check_x_frame (frame); | 12496 | struct frame *f = check_x_frame (frame); |
| 12497 | Atom prop_atom; | 12497 | Atom prop_atom; |
| 12498 | 12498 | ||
| 12499 | CHECK_STRING (prop, 1); | 12499 | CHECK_STRING (prop); |
| 12500 | BLOCK_INPUT; | 12500 | BLOCK_INPUT; |
| 12501 | prop_atom = XInternAtom (FRAME_W32_DISPLAY (f), XSTRING (prop)->data, False); | 12501 | prop_atom = XInternAtom (FRAME_W32_DISPLAY (f), XSTRING (prop)->data, False); |
| 12502 | XDeleteProperty (FRAME_W32_DISPLAY (f), FRAME_W32_WINDOW (f), prop_atom); | 12502 | XDeleteProperty (FRAME_W32_DISPLAY (f), FRAME_W32_WINDOW (f), prop_atom); |
| @@ -12530,7 +12530,7 @@ value.") | |||
| 12530 | int actual_format; | 12530 | int actual_format; |
| 12531 | unsigned long actual_size, bytes_remaining; | 12531 | unsigned long actual_size, bytes_remaining; |
| 12532 | 12532 | ||
| 12533 | CHECK_STRING (prop, 1); | 12533 | CHECK_STRING (prop); |
| 12534 | BLOCK_INPUT; | 12534 | BLOCK_INPUT; |
| 12535 | prop_atom = XInternAtom (FRAME_W32_DISPLAY (f), XSTRING (prop)->data, False); | 12535 | prop_atom = XInternAtom (FRAME_W32_DISPLAY (f), XSTRING (prop)->data, False); |
| 12536 | rc = XGetWindowProperty (FRAME_W32_DISPLAY (f), FRAME_W32_WINDOW (f), | 12536 | rc = XGetWindowProperty (FRAME_W32_DISPLAY (f), FRAME_W32_WINDOW (f), |
| @@ -13177,22 +13177,22 @@ Text larger than the specified size is clipped.") | |||
| 13177 | 13177 | ||
| 13178 | GCPRO4 (string, parms, frame, timeout); | 13178 | GCPRO4 (string, parms, frame, timeout); |
| 13179 | 13179 | ||
| 13180 | CHECK_STRING (string, 0); | 13180 | CHECK_STRING (string); |
| 13181 | f = check_x_frame (frame); | 13181 | f = check_x_frame (frame); |
| 13182 | if (NILP (timeout)) | 13182 | if (NILP (timeout)) |
| 13183 | timeout = make_number (5); | 13183 | timeout = make_number (5); |
| 13184 | else | 13184 | else |
| 13185 | CHECK_NATNUM (timeout, 2); | 13185 | CHECK_NATNUM (timeout); |
| 13186 | 13186 | ||
| 13187 | if (NILP (dx)) | 13187 | if (NILP (dx)) |
| 13188 | dx = make_number (5); | 13188 | dx = make_number (5); |
| 13189 | else | 13189 | else |
| 13190 | CHECK_NUMBER (dx, 5); | 13190 | CHECK_NUMBER (dx); |
| 13191 | 13191 | ||
| 13192 | if (NILP (dy)) | 13192 | if (NILP (dy)) |
| 13193 | dy = make_number (-10); | 13193 | dy = make_number (-10); |
| 13194 | else | 13194 | else |
| 13195 | CHECK_NUMBER (dy, 6); | 13195 | CHECK_NUMBER (dy); |
| 13196 | 13196 | ||
| 13197 | if (NILP (last_show_tip_args)) | 13197 | if (NILP (last_show_tip_args)) |
| 13198 | last_show_tip_args = Fmake_vector (make_number (3), Qnil); | 13198 | last_show_tip_args = Fmake_vector (make_number (3), Qnil); |
| @@ -13406,8 +13406,8 @@ specified. Ensure that file exists if MUSTMATCH is non-nil.") | |||
| 13406 | int use_dialog_p = 1; | 13406 | int use_dialog_p = 1; |
| 13407 | 13407 | ||
| 13408 | GCPRO5 (prompt, dir, default_filename, mustmatch, file); | 13408 | GCPRO5 (prompt, dir, default_filename, mustmatch, file); |
| 13409 | CHECK_STRING (prompt, 0); | 13409 | CHECK_STRING (prompt); |
| 13410 | CHECK_STRING (dir, 1); | 13410 | CHECK_STRING (dir); |
| 13411 | 13411 | ||
| 13412 | /* Create the dialog with PROMPT as title, using DIR as initial | 13412 | /* Create the dialog with PROMPT as title, using DIR as initial |
| 13413 | directory and using "*" as pattern. */ | 13413 | directory and using "*" as pattern. */ |
| @@ -13589,7 +13589,7 @@ If optional parameter FRAME is not specified, use selected frame.") | |||
| 13589 | { | 13589 | { |
| 13590 | FRAME_PTR f = check_x_frame (frame); | 13590 | FRAME_PTR f = check_x_frame (frame); |
| 13591 | 13591 | ||
| 13592 | CHECK_NUMBER (command, 0); | 13592 | CHECK_NUMBER (command); |
| 13593 | 13593 | ||
| 13594 | PostMessage (FRAME_W32_WINDOW (f), WM_SYSCOMMAND, XINT (command), 0); | 13594 | PostMessage (FRAME_W32_WINDOW (f), WM_SYSCOMMAND, XINT (command), 0); |
| 13595 | 13595 | ||
| @@ -13621,7 +13621,7 @@ otherwise it is an integer representing a ShowWindow flag:\n\ | |||
| 13621 | { | 13621 | { |
| 13622 | Lisp_Object current_dir; | 13622 | Lisp_Object current_dir; |
| 13623 | 13623 | ||
| 13624 | CHECK_STRING (document, 0); | 13624 | CHECK_STRING (document); |
| 13625 | 13625 | ||
| 13626 | /* Encode filename and current directory. */ | 13626 | /* Encode filename and current directory. */ |
| 13627 | current_dir = ENCODE_FILE (current_buffer->directory); | 13627 | current_dir = ENCODE_FILE (current_buffer->directory); |
| @@ -13669,7 +13669,7 @@ w32_parse_hot_key (key) | |||
| 13669 | int w32_modifiers; | 13669 | int w32_modifiers; |
| 13670 | struct gcpro gcpro1; | 13670 | struct gcpro gcpro1; |
| 13671 | 13671 | ||
| 13672 | CHECK_VECTOR (key, 0); | 13672 | CHECK_VECTOR (key); |
| 13673 | 13673 | ||
| 13674 | if (XFASTINT (Flength (key)) != 1) | 13674 | if (XFASTINT (Flength (key)) != 1) |
| 13675 | return Qnil; | 13675 | return Qnil; |
| @@ -13807,7 +13807,7 @@ DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, Sw32_reconstruct_hot | |||
| 13807 | int vk_code, w32_modifiers; | 13807 | int vk_code, w32_modifiers; |
| 13808 | Lisp_Object key; | 13808 | Lisp_Object key; |
| 13809 | 13809 | ||
| 13810 | CHECK_NUMBER (hotkeyid, 0); | 13810 | CHECK_NUMBER (hotkeyid); |
| 13811 | 13811 | ||
| 13812 | vk_code = HOTKEY_VK_CODE (hotkeyid); | 13812 | vk_code = HOTKEY_VK_CODE (hotkeyid); |
| 13813 | w32_modifiers = HOTKEY_MODIFIERS (hotkeyid); | 13813 | w32_modifiers = HOTKEY_MODIFIERS (hotkeyid); |
| @@ -13873,7 +13873,7 @@ If the underlying system call fails, value is nil.") | |||
| 13873 | { | 13873 | { |
| 13874 | Lisp_Object encoded, value; | 13874 | Lisp_Object encoded, value; |
| 13875 | 13875 | ||
| 13876 | CHECK_STRING (filename, 0); | 13876 | CHECK_STRING (filename); |
| 13877 | filename = Fexpand_file_name (filename, Qnil); | 13877 | filename = Fexpand_file_name (filename, Qnil); |
| 13878 | encoded = ENCODE_FILE (filename); | 13878 | encoded = ENCODE_FILE (filename); |
| 13879 | 13879 | ||
diff --git a/src/w32menu.c b/src/w32menu.c index 1dd1ed63804..d35af3025d1 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -548,10 +548,10 @@ list_of_panes (menu) | |||
| 548 | Lisp_Object elt, pane_name, pane_data; | 548 | Lisp_Object elt, pane_name, pane_data; |
| 549 | elt = Fcar (tail); | 549 | elt = Fcar (tail); |
| 550 | pane_name = Fcar (elt); | 550 | pane_name = Fcar (elt); |
| 551 | CHECK_STRING (pane_name, 0); | 551 | CHECK_STRING (pane_name); |
| 552 | push_menu_pane (pane_name, Qnil); | 552 | push_menu_pane (pane_name, Qnil); |
| 553 | pane_data = Fcdr (elt); | 553 | pane_data = Fcdr (elt); |
| 554 | CHECK_CONS (pane_data, 0); | 554 | CHECK_CONS (pane_data); |
| 555 | list_of_items (pane_data); | 555 | list_of_items (pane_data); |
| 556 | } | 556 | } |
| 557 | 557 | ||
| @@ -575,9 +575,9 @@ list_of_items (pane) | |||
| 575 | push_left_right_boundary (); | 575 | push_left_right_boundary (); |
| 576 | else | 576 | else |
| 577 | { | 577 | { |
| 578 | CHECK_CONS (item, 0); | 578 | CHECK_CONS (item); |
| 579 | item1 = Fcar (item); | 579 | item1 = Fcar (item); |
| 580 | CHECK_STRING (item1, 1); | 580 | CHECK_STRING (item1); |
| 581 | push_menu_item (item1, Qt, Fcdr (item), Qt, Qnil, Qnil, Qnil, Qnil); | 581 | push_menu_item (item1, Qt, Fcdr (item), Qt, Qnil, Qnil, Qnil, Qnil); |
| 582 | } | 582 | } |
| 583 | } | 583 | } |
| @@ -678,8 +678,8 @@ cached information about equivalent key sequences.") | |||
| 678 | } | 678 | } |
| 679 | } | 679 | } |
| 680 | 680 | ||
| 681 | CHECK_NUMBER (x, 0); | 681 | CHECK_NUMBER (x); |
| 682 | CHECK_NUMBER (y, 0); | 682 | CHECK_NUMBER (y); |
| 683 | 683 | ||
| 684 | /* Decode where to put the menu. */ | 684 | /* Decode where to put the menu. */ |
| 685 | 685 | ||
| @@ -691,7 +691,7 @@ cached information about equivalent key sequences.") | |||
| 691 | } | 691 | } |
| 692 | else if (WINDOWP (window)) | 692 | else if (WINDOWP (window)) |
| 693 | { | 693 | { |
| 694 | CHECK_LIVE_WINDOW (window, 0); | 694 | CHECK_LIVE_WINDOW (window); |
| 695 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); | 695 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); |
| 696 | 696 | ||
| 697 | xpos = (FONT_WIDTH (FRAME_FONT (f)) | 697 | xpos = (FONT_WIDTH (FRAME_FONT (f)) |
| @@ -702,7 +702,7 @@ cached information about equivalent key sequences.") | |||
| 702 | else | 702 | else |
| 703 | /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, | 703 | /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, |
| 704 | but I don't want to make one now. */ | 704 | but I don't want to make one now. */ |
| 705 | CHECK_WINDOW (window, 0); | 705 | CHECK_WINDOW (window); |
| 706 | 706 | ||
| 707 | xpos += XINT (x); | 707 | xpos += XINT (x); |
| 708 | ypos += XINT (y); | 708 | ypos += XINT (y); |
| @@ -774,7 +774,7 @@ cached information about equivalent key sequences.") | |||
| 774 | { | 774 | { |
| 775 | /* We were given an old-fashioned menu. */ | 775 | /* We were given an old-fashioned menu. */ |
| 776 | title = Fcar (menu); | 776 | title = Fcar (menu); |
| 777 | CHECK_STRING (title, 1); | 777 | CHECK_STRING (title); |
| 778 | 778 | ||
| 779 | list_of_panes (Fcdr (menu)); | 779 | list_of_panes (Fcdr (menu)); |
| 780 | 780 | ||
| @@ -875,13 +875,13 @@ on the left of the dialog box and all following items on the right.\n\ | |||
| 875 | f = XFRAME (window); | 875 | f = XFRAME (window); |
| 876 | else if (WINDOWP (window)) | 876 | else if (WINDOWP (window)) |
| 877 | { | 877 | { |
| 878 | CHECK_LIVE_WINDOW (window, 0); | 878 | CHECK_LIVE_WINDOW (window); |
| 879 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); | 879 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); |
| 880 | } | 880 | } |
| 881 | else | 881 | else |
| 882 | /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, | 882 | /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, |
| 883 | but I don't want to make one now. */ | 883 | but I don't want to make one now. */ |
| 884 | CHECK_WINDOW (window, 0); | 884 | CHECK_WINDOW (window); |
| 885 | 885 | ||
| 886 | #ifndef HAVE_DIALOGS | 886 | #ifndef HAVE_DIALOGS |
| 887 | /* Display a menu with these alternatives | 887 | /* Display a menu with these alternatives |
| @@ -904,7 +904,7 @@ on the left of the dialog box and all following items on the right.\n\ | |||
| 904 | 904 | ||
| 905 | /* Decode the dialog items from what was specified. */ | 905 | /* Decode the dialog items from what was specified. */ |
| 906 | title = Fcar (contents); | 906 | title = Fcar (contents); |
| 907 | CHECK_STRING (title, 1); | 907 | CHECK_STRING (title); |
| 908 | 908 | ||
| 909 | list_of_panes (Fcons (contents, Qnil)); | 909 | list_of_panes (Fcons (contents, Qnil)); |
| 910 | 910 | ||
diff --git a/src/w32proc.c b/src/w32proc.c index d2eb38fbfbd..a808bc5e001 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -1712,7 +1712,7 @@ All path elements in FILENAME are converted to their short names.") | |||
| 1712 | { | 1712 | { |
| 1713 | char shortname[MAX_PATH]; | 1713 | char shortname[MAX_PATH]; |
| 1714 | 1714 | ||
| 1715 | CHECK_STRING (filename, 0); | 1715 | CHECK_STRING (filename); |
| 1716 | 1716 | ||
| 1717 | /* first expand it. */ | 1717 | /* first expand it. */ |
| 1718 | filename = Fexpand_file_name (filename, Qnil); | 1718 | filename = Fexpand_file_name (filename, Qnil); |
| @@ -1737,7 +1737,7 @@ All path elements in FILENAME are converted to their long names.") | |||
| 1737 | { | 1737 | { |
| 1738 | char longname[ MAX_PATH ]; | 1738 | char longname[ MAX_PATH ]; |
| 1739 | 1739 | ||
| 1740 | CHECK_STRING (filename, 0); | 1740 | CHECK_STRING (filename); |
| 1741 | 1741 | ||
| 1742 | /* first expand it. */ | 1742 | /* first expand it. */ |
| 1743 | filename = Fexpand_file_name (filename, Qnil); | 1743 | filename = Fexpand_file_name (filename, Qnil); |
| @@ -1766,14 +1766,14 @@ If successful, the return value is t, otherwise nil.") | |||
| 1766 | DWORD priority_class = NORMAL_PRIORITY_CLASS; | 1766 | DWORD priority_class = NORMAL_PRIORITY_CLASS; |
| 1767 | Lisp_Object result = Qnil; | 1767 | Lisp_Object result = Qnil; |
| 1768 | 1768 | ||
| 1769 | CHECK_SYMBOL (priority, 0); | 1769 | CHECK_SYMBOL (priority); |
| 1770 | 1770 | ||
| 1771 | if (!NILP (process)) | 1771 | if (!NILP (process)) |
| 1772 | { | 1772 | { |
| 1773 | DWORD pid; | 1773 | DWORD pid; |
| 1774 | child_process *cp; | 1774 | child_process *cp; |
| 1775 | 1775 | ||
| 1776 | CHECK_NUMBER (process, 0); | 1776 | CHECK_NUMBER (process); |
| 1777 | 1777 | ||
| 1778 | /* Allow pid to be an internally generated one, or one obtained | 1778 | /* Allow pid to be an internally generated one, or one obtained |
| 1779 | externally. This is necessary because real pids on Win95 are | 1779 | externally. This is necessary because real pids on Win95 are |
| @@ -1825,7 +1825,7 @@ If LCID (a 16-bit number) is not a valid locale, the result is nil.") | |||
| 1825 | char abbrev_name[32] = { 0 }; | 1825 | char abbrev_name[32] = { 0 }; |
| 1826 | char full_name[256] = { 0 }; | 1826 | char full_name[256] = { 0 }; |
| 1827 | 1827 | ||
| 1828 | CHECK_NUMBER (lcid, 0); | 1828 | CHECK_NUMBER (lcid); |
| 1829 | 1829 | ||
| 1830 | if (!IsValidLocale (XINT (lcid), LCID_SUPPORTED)) | 1830 | if (!IsValidLocale (XINT (lcid), LCID_SUPPORTED)) |
| 1831 | return Qnil; | 1831 | return Qnil; |
| @@ -1932,7 +1932,7 @@ If successful, the new locale id is returned, otherwise nil.") | |||
| 1932 | (lcid) | 1932 | (lcid) |
| 1933 | Lisp_Object lcid; | 1933 | Lisp_Object lcid; |
| 1934 | { | 1934 | { |
| 1935 | CHECK_NUMBER (lcid, 0); | 1935 | CHECK_NUMBER (lcid); |
| 1936 | 1936 | ||
| 1937 | if (!IsValidLocale (XINT (lcid), LCID_SUPPORTED)) | 1937 | if (!IsValidLocale (XINT (lcid), LCID_SUPPORTED)) |
| 1938 | return Qnil; | 1938 | return Qnil; |
| @@ -1988,7 +1988,7 @@ If successful, the new CP is returned, otherwise nil.") | |||
| 1988 | (cp) | 1988 | (cp) |
| 1989 | Lisp_Object cp; | 1989 | Lisp_Object cp; |
| 1990 | { | 1990 | { |
| 1991 | CHECK_NUMBER (cp, 0); | 1991 | CHECK_NUMBER (cp); |
| 1992 | 1992 | ||
| 1993 | if (!IsValidCodePage (XINT (cp))) | 1993 | if (!IsValidCodePage (XINT (cp))) |
| 1994 | return Qnil; | 1994 | return Qnil; |
| @@ -2015,7 +2015,7 @@ If successful, the new CP is returned, otherwise nil.") | |||
| 2015 | (cp) | 2015 | (cp) |
| 2016 | Lisp_Object cp; | 2016 | Lisp_Object cp; |
| 2017 | { | 2017 | { |
| 2018 | CHECK_NUMBER (cp, 0); | 2018 | CHECK_NUMBER (cp); |
| 2019 | 2019 | ||
| 2020 | if (!IsValidCodePage (XINT (cp))) | 2020 | if (!IsValidCodePage (XINT (cp))) |
| 2021 | return Qnil; | 2021 | return Qnil; |
| @@ -2035,7 +2035,7 @@ Returns nil if the codepage is not valid.") | |||
| 2035 | { | 2035 | { |
| 2036 | CHARSETINFO info; | 2036 | CHARSETINFO info; |
| 2037 | 2037 | ||
| 2038 | CHECK_NUMBER (cp, 0); | 2038 | CHECK_NUMBER (cp); |
| 2039 | 2039 | ||
| 2040 | if (!IsValidCodePage (XINT (cp))) | 2040 | if (!IsValidCodePage (XINT (cp))) |
| 2041 | return Qnil; | 2041 | return Qnil; |
| @@ -2093,9 +2093,9 @@ If successful, the new layout id is returned, otherwise nil.") | |||
| 2093 | { | 2093 | { |
| 2094 | DWORD kl; | 2094 | DWORD kl; |
| 2095 | 2095 | ||
| 2096 | CHECK_CONS (layout, 0); | 2096 | CHECK_CONS (layout); |
| 2097 | CHECK_NUMBER (XCAR (layout), 0); | 2097 | CHECK_NUMBER (XCAR (layout)); |
| 2098 | CHECK_NUMBER (XCDR (layout), 0); | 2098 | CHECK_NUMBER (XCDR (layout)); |
| 2099 | 2099 | ||
| 2100 | kl = (XINT (XCAR (layout)) & 0xffff) | 2100 | kl = (XINT (XCAR (layout)) & 0xffff) |
| 2101 | | (XINT (XCDR (layout)) << 16); | 2101 | | (XINT (XCDR (layout)) << 16); |
diff --git a/src/w32select.c b/src/w32select.c index 520610ee961..8772a4bbe6c 100644 --- a/src/w32select.c +++ b/src/w32select.c | |||
| @@ -58,7 +58,7 @@ DEFUN ("w32-open-clipboard", Fw32_open_clipboard, Sw32_open_clipboard, 0, 1, 0, | |||
| 58 | BOOL ok = FALSE; | 58 | BOOL ok = FALSE; |
| 59 | 59 | ||
| 60 | if (!NILP (frame)) | 60 | if (!NILP (frame)) |
| 61 | CHECK_LIVE_FRAME (frame, 0); | 61 | CHECK_LIVE_FRAME (frame); |
| 62 | 62 | ||
| 63 | BLOCK_INPUT; | 63 | BLOCK_INPUT; |
| 64 | 64 | ||
| @@ -113,10 +113,10 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, Sw32_set_clipboard_dat | |||
| 113 | unsigned char *src; | 113 | unsigned char *src; |
| 114 | unsigned char *dst; | 114 | unsigned char *dst; |
| 115 | 115 | ||
| 116 | CHECK_STRING (string, 0); | 116 | CHECK_STRING (string); |
| 117 | 117 | ||
| 118 | if (!NILP (frame)) | 118 | if (!NILP (frame)) |
| 119 | CHECK_LIVE_FRAME (frame, 0); | 119 | CHECK_LIVE_FRAME (frame); |
| 120 | 120 | ||
| 121 | BLOCK_INPUT; | 121 | BLOCK_INPUT; |
| 122 | 122 | ||
| @@ -257,7 +257,7 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, Sw32_get_clipboard_dat | |||
| 257 | Lisp_Object ret = Qnil; | 257 | Lisp_Object ret = Qnil; |
| 258 | 258 | ||
| 259 | if (!NILP (frame)) | 259 | if (!NILP (frame)) |
| 260 | CHECK_LIVE_FRAME (frame, 0); | 260 | CHECK_LIVE_FRAME (frame); |
| 261 | 261 | ||
| 262 | BLOCK_INPUT; | 262 | BLOCK_INPUT; |
| 263 | 263 | ||
| @@ -404,7 +404,7 @@ and t is the same as `SECONDARY'.") | |||
| 404 | (selection) | 404 | (selection) |
| 405 | Lisp_Object selection; | 405 | Lisp_Object selection; |
| 406 | { | 406 | { |
| 407 | CHECK_SYMBOL (selection, 0); | 407 | CHECK_SYMBOL (selection); |
| 408 | 408 | ||
| 409 | /* Return nil for PRIMARY and SECONDARY selections; for CLIPBOARD, check | 409 | /* Return nil for PRIMARY and SECONDARY selections; for CLIPBOARD, check |
| 410 | if the clipboard currently has valid text format contents. */ | 410 | if the clipboard currently has valid text format contents. */ |
diff --git a/src/window.c b/src/window.c index 4ac39dde882..94a9678baac 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -294,7 +294,7 @@ used by that frame. */) | |||
| 294 | { | 294 | { |
| 295 | if (NILP (frame)) | 295 | if (NILP (frame)) |
| 296 | frame = selected_frame; | 296 | frame = selected_frame; |
| 297 | CHECK_LIVE_FRAME (frame, 0); | 297 | CHECK_LIVE_FRAME (frame); |
| 298 | return FRAME_MINIBUF_WINDOW (XFRAME (frame)); | 298 | return FRAME_MINIBUF_WINDOW (XFRAME (frame)); |
| 299 | } | 299 | } |
| 300 | 300 | ||
| @@ -331,7 +331,7 @@ POS defaults to point in WINDOW; WINDOW defaults to the selected window. */) | |||
| 331 | 331 | ||
| 332 | if (!NILP (pos)) | 332 | if (!NILP (pos)) |
| 333 | { | 333 | { |
| 334 | CHECK_NUMBER_COERCE_MARKER (pos, 0); | 334 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 335 | posint = XINT (pos); | 335 | posint = XINT (pos); |
| 336 | } | 336 | } |
| 337 | else if (w == XWINDOW (selected_window)) | 337 | else if (w == XWINDOW (selected_window)) |
| @@ -382,7 +382,7 @@ decode_window (window) | |||
| 382 | if (NILP (window)) | 382 | if (NILP (window)) |
| 383 | return XWINDOW (selected_window); | 383 | return XWINDOW (selected_window); |
| 384 | 384 | ||
| 385 | CHECK_LIVE_WINDOW (window, 0); | 385 | CHECK_LIVE_WINDOW (window); |
| 386 | return XWINDOW (window); | 386 | return XWINDOW (window); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| @@ -430,7 +430,7 @@ NCOL should be zero or positive. */) | |||
| 430 | struct window *w = decode_window (window); | 430 | struct window *w = decode_window (window); |
| 431 | int hscroll; | 431 | int hscroll; |
| 432 | 432 | ||
| 433 | CHECK_NUMBER (ncol, 1); | 433 | CHECK_NUMBER (ncol); |
| 434 | hscroll = max (0, XINT (ncol)); | 434 | hscroll = max (0, XINT (ncol)); |
| 435 | 435 | ||
| 436 | /* Prevent redisplay shortcuts when changing the hscroll. */ | 436 | /* Prevent redisplay shortcuts when changing the hscroll. */ |
| @@ -678,14 +678,14 @@ If they are on the border between WINDOW and its right sibling, | |||
| 678 | int x, y; | 678 | int x, y; |
| 679 | Lisp_Object lx, ly; | 679 | Lisp_Object lx, ly; |
| 680 | 680 | ||
| 681 | CHECK_LIVE_WINDOW (window, 0); | 681 | CHECK_LIVE_WINDOW (window); |
| 682 | w = XWINDOW (window); | 682 | w = XWINDOW (window); |
| 683 | f = XFRAME (w->frame); | 683 | f = XFRAME (w->frame); |
| 684 | CHECK_CONS (coordinates, 1); | 684 | CHECK_CONS (coordinates); |
| 685 | lx = Fcar (coordinates); | 685 | lx = Fcar (coordinates); |
| 686 | ly = Fcdr (coordinates); | 686 | ly = Fcdr (coordinates); |
| 687 | CHECK_NUMBER_OR_FLOAT (lx, 1); | 687 | CHECK_NUMBER_OR_FLOAT (lx); |
| 688 | CHECK_NUMBER_OR_FLOAT (ly, 1); | 688 | CHECK_NUMBER_OR_FLOAT (ly); |
| 689 | x = PIXEL_X_FROM_CANON_X (f, lx); | 689 | x = PIXEL_X_FROM_CANON_X (f, lx); |
| 690 | y = PIXEL_Y_FROM_CANON_Y (f, ly); | 690 | y = PIXEL_Y_FROM_CANON_Y (f, ly); |
| 691 | 691 | ||
| @@ -816,12 +816,12 @@ column 0. */) | |||
| 816 | 816 | ||
| 817 | if (NILP (frame)) | 817 | if (NILP (frame)) |
| 818 | frame = selected_frame; | 818 | frame = selected_frame; |
| 819 | CHECK_LIVE_FRAME (frame, 2); | 819 | CHECK_LIVE_FRAME (frame); |
| 820 | f = XFRAME (frame); | 820 | f = XFRAME (frame); |
| 821 | 821 | ||
| 822 | /* Check that arguments are integers or floats. */ | 822 | /* Check that arguments are integers or floats. */ |
| 823 | CHECK_NUMBER_OR_FLOAT (x, 0); | 823 | CHECK_NUMBER_OR_FLOAT (x); |
| 824 | CHECK_NUMBER_OR_FLOAT (y, 1); | 824 | CHECK_NUMBER_OR_FLOAT (y); |
| 825 | 825 | ||
| 826 | return window_from_coordinates (f, | 826 | return window_from_coordinates (f, |
| 827 | PIXEL_X_FROM_CANON_X (f, x), | 827 | PIXEL_X_FROM_CANON_X (f, x), |
| @@ -885,7 +885,7 @@ if it isn't already recorded. */) | |||
| 885 | Lisp_Object buf; | 885 | Lisp_Object buf; |
| 886 | 886 | ||
| 887 | buf = w->buffer; | 887 | buf = w->buffer; |
| 888 | CHECK_BUFFER (buf, 0); | 888 | CHECK_BUFFER (buf); |
| 889 | 889 | ||
| 890 | #if 0 /* This change broke some things. We should make it later. */ | 890 | #if 0 /* This change broke some things. We should make it later. */ |
| 891 | /* If we don't know the end position, return nil. | 891 | /* If we don't know the end position, return nil. |
| @@ -946,7 +946,7 @@ DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, | |||
| 946 | { | 946 | { |
| 947 | register struct window *w = decode_window (window); | 947 | register struct window *w = decode_window (window); |
| 948 | 948 | ||
| 949 | CHECK_NUMBER_COERCE_MARKER (pos, 1); | 949 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 950 | if (w == XWINDOW (selected_window) | 950 | if (w == XWINDOW (selected_window) |
| 951 | && XBUFFER (w->buffer) == current_buffer) | 951 | && XBUFFER (w->buffer) == current_buffer) |
| 952 | Fgoto_char (pos); | 952 | Fgoto_char (pos); |
| @@ -970,7 +970,7 @@ from overriding motion of point in order to display at this exact start. */) | |||
| 970 | { | 970 | { |
| 971 | register struct window *w = decode_window (window); | 971 | register struct window *w = decode_window (window); |
| 972 | 972 | ||
| 973 | CHECK_NUMBER_COERCE_MARKER (pos, 1); | 973 | CHECK_NUMBER_COERCE_MARKER (pos); |
| 974 | set_marker_restricted (w->start, pos, w->buffer); | 974 | set_marker_restricted (w->start, pos, w->buffer); |
| 975 | /* this is not right, but much easier than doing what is right. */ | 975 | /* this is not right, but much easier than doing what is right. */ |
| 976 | w->start_at_line_beg = Qnil; | 976 | w->start_at_line_beg = Qnil; |
| @@ -1195,7 +1195,7 @@ delete_window (window) | |||
| 1195 | if (NILP (window)) | 1195 | if (NILP (window)) |
| 1196 | window = selected_window; | 1196 | window = selected_window; |
| 1197 | else | 1197 | else |
| 1198 | CHECK_WINDOW (window, 0); | 1198 | CHECK_WINDOW (window); |
| 1199 | p = XWINDOW (window); | 1199 | p = XWINDOW (window); |
| 1200 | 1200 | ||
| 1201 | /* It's okay to delete an already-deleted window. */ | 1201 | /* It's okay to delete an already-deleted window. */ |
| @@ -1448,7 +1448,7 @@ decode_next_window_args (window, minibuf, all_frames) | |||
| 1448 | if (NILP (*window)) | 1448 | if (NILP (*window)) |
| 1449 | *window = selected_window; | 1449 | *window = selected_window; |
| 1450 | else | 1450 | else |
| 1451 | CHECK_LIVE_WINDOW (*window, 0); | 1451 | CHECK_LIVE_WINDOW (*window); |
| 1452 | 1452 | ||
| 1453 | /* MINIBUF nil may or may not include minibuffers. Decide if it | 1453 | /* MINIBUF nil may or may not include minibuffers. Decide if it |
| 1454 | does. */ | 1454 | does. */ |
| @@ -1632,7 +1632,7 @@ argument ALL_FRAMES is non-nil, cycle through all frames. */) | |||
| 1632 | Lisp_Object window; | 1632 | Lisp_Object window; |
| 1633 | int i; | 1633 | int i; |
| 1634 | 1634 | ||
| 1635 | CHECK_NUMBER (arg, 0); | 1635 | CHECK_NUMBER (arg); |
| 1636 | window = selected_window; | 1636 | window = selected_window; |
| 1637 | 1637 | ||
| 1638 | for (i = XINT (arg); i > 0; --i) | 1638 | for (i = XINT (arg); i > 0; --i) |
| @@ -1990,7 +1990,7 @@ value is reasonable when this function is called. */) | |||
| 1990 | if (NILP (window)) | 1990 | if (NILP (window)) |
| 1991 | window = selected_window; | 1991 | window = selected_window; |
| 1992 | else | 1992 | else |
| 1993 | CHECK_LIVE_WINDOW (window, 0); | 1993 | CHECK_LIVE_WINDOW (window); |
| 1994 | w = XWINDOW (window); | 1994 | w = XWINDOW (window); |
| 1995 | 1995 | ||
| 1996 | startpos = marker_position (w->start); | 1996 | startpos = marker_position (w->start); |
| @@ -2056,7 +2056,7 @@ If FRAME is a frame, search only that frame. */) | |||
| 2056 | if (!NILP (buffer)) | 2056 | if (!NILP (buffer)) |
| 2057 | { | 2057 | { |
| 2058 | buffer = Fget_buffer (buffer); | 2058 | buffer = Fget_buffer (buffer); |
| 2059 | CHECK_BUFFER (buffer, 0); | 2059 | CHECK_BUFFER (buffer); |
| 2060 | window_loop (DELETE_BUFFER_WINDOWS, buffer, 0, frame); | 2060 | window_loop (DELETE_BUFFER_WINDOWS, buffer, 0, frame); |
| 2061 | } | 2061 | } |
| 2062 | 2062 | ||
| @@ -2073,7 +2073,7 @@ DEFUN ("replace-buffer-in-windows", Freplace_buffer_in_windows, | |||
| 2073 | if (!NILP (buffer)) | 2073 | if (!NILP (buffer)) |
| 2074 | { | 2074 | { |
| 2075 | buffer = Fget_buffer (buffer); | 2075 | buffer = Fget_buffer (buffer); |
| 2076 | CHECK_BUFFER (buffer, 0); | 2076 | CHECK_BUFFER (buffer); |
| 2077 | window_loop (UNSHOW_BUFFER, buffer, 0, Qt); | 2077 | window_loop (UNSHOW_BUFFER, buffer, 0, Qt); |
| 2078 | } | 2078 | } |
| 2079 | return Qnil; | 2079 | return Qnil; |
| @@ -2660,7 +2660,7 @@ BUFFER can be a buffer or buffer name. */) | |||
| 2660 | 2660 | ||
| 2661 | XSETWINDOW (window, w); | 2661 | XSETWINDOW (window, w); |
| 2662 | buffer = Fget_buffer (buffer); | 2662 | buffer = Fget_buffer (buffer); |
| 2663 | CHECK_BUFFER (buffer, 1); | 2663 | CHECK_BUFFER (buffer); |
| 2664 | 2664 | ||
| 2665 | if (NILP (XBUFFER (buffer)->name)) | 2665 | if (NILP (XBUFFER (buffer)->name)) |
| 2666 | error ("Attempt to display deleted buffer"); | 2666 | error ("Attempt to display deleted buffer"); |
| @@ -2705,7 +2705,7 @@ select_window_1 (window, recordflag) | |||
| 2705 | register struct window *ow; | 2705 | register struct window *ow; |
| 2706 | struct frame *sf; | 2706 | struct frame *sf; |
| 2707 | 2707 | ||
| 2708 | CHECK_LIVE_WINDOW (window, 0); | 2708 | CHECK_LIVE_WINDOW (window); |
| 2709 | 2709 | ||
| 2710 | w = XWINDOW (window); | 2710 | w = XWINDOW (window); |
| 2711 | w->frozen_window_start_p = 0; | 2711 | w->frozen_window_start_p = 0; |
| @@ -2802,7 +2802,7 @@ See `special-display-buffer-names', and `special-display-regexps'. */) | |||
| 2802 | { | 2802 | { |
| 2803 | Lisp_Object tem; | 2803 | Lisp_Object tem; |
| 2804 | 2804 | ||
| 2805 | CHECK_STRING (buffer_name, 1); | 2805 | CHECK_STRING (buffer_name); |
| 2806 | 2806 | ||
| 2807 | tem = Fmember (buffer_name, Vspecial_display_buffer_names); | 2807 | tem = Fmember (buffer_name, Vspecial_display_buffer_names); |
| 2808 | if (!NILP (tem)) | 2808 | if (!NILP (tem)) |
| @@ -2834,7 +2834,7 @@ See `same-window-buffer-names' and `same-window-regexps'. */) | |||
| 2834 | { | 2834 | { |
| 2835 | Lisp_Object tem; | 2835 | Lisp_Object tem; |
| 2836 | 2836 | ||
| 2837 | CHECK_STRING (buffer_name, 1); | 2837 | CHECK_STRING (buffer_name); |
| 2838 | 2838 | ||
| 2839 | tem = Fmember (buffer_name, Vsame_window_buffer_names); | 2839 | tem = Fmember (buffer_name, Vsame_window_buffer_names); |
| 2840 | if (!NILP (tem)) | 2840 | if (!NILP (tem)) |
| @@ -2895,7 +2895,7 @@ displayed. */) | |||
| 2895 | 2895 | ||
| 2896 | swp = Qnil; | 2896 | swp = Qnil; |
| 2897 | buffer = Fget_buffer (buffer); | 2897 | buffer = Fget_buffer (buffer); |
| 2898 | CHECK_BUFFER (buffer, 0); | 2898 | CHECK_BUFFER (buffer); |
| 2899 | 2899 | ||
| 2900 | if (!NILP (Vdisplay_buffer_function)) | 2900 | if (!NILP (Vdisplay_buffer_function)) |
| 2901 | return call2 (Vdisplay_buffer_function, buffer, not_this_window); | 2901 | return call2 (Vdisplay_buffer_function, buffer, not_this_window); |
| @@ -3165,7 +3165,7 @@ SIZE includes that window's scroll bar, or the divider column to its right. */) | |||
| 3165 | if (NILP (window)) | 3165 | if (NILP (window)) |
| 3166 | window = selected_window; | 3166 | window = selected_window; |
| 3167 | else | 3167 | else |
| 3168 | CHECK_LIVE_WINDOW (window, 0); | 3168 | CHECK_LIVE_WINDOW (window); |
| 3169 | 3169 | ||
| 3170 | o = XWINDOW (window); | 3170 | o = XWINDOW (window); |
| 3171 | fo = XFRAME (WINDOW_FRAME (o)); | 3171 | fo = XFRAME (WINDOW_FRAME (o)); |
| @@ -3183,7 +3183,7 @@ SIZE includes that window's scroll bar, or the divider column to its right. */) | |||
| 3183 | } | 3183 | } |
| 3184 | else | 3184 | else |
| 3185 | { | 3185 | { |
| 3186 | CHECK_NUMBER (size, 1); | 3186 | CHECK_NUMBER (size); |
| 3187 | size_int = XINT (size); | 3187 | size_int = XINT (size); |
| 3188 | } | 3188 | } |
| 3189 | 3189 | ||
| @@ -3278,7 +3278,7 @@ Interactively, if an argument is not given, make the window one line bigger. */ | |||
| 3278 | (arg, side) | 3278 | (arg, side) |
| 3279 | register Lisp_Object arg, side; | 3279 | register Lisp_Object arg, side; |
| 3280 | { | 3280 | { |
| 3281 | CHECK_NUMBER (arg, 0); | 3281 | CHECK_NUMBER (arg); |
| 3282 | enlarge_window (selected_window, XINT (arg), !NILP (side)); | 3282 | enlarge_window (selected_window, XINT (arg), !NILP (side)); |
| 3283 | 3283 | ||
| 3284 | if (! NILP (Vwindow_configuration_change_hook)) | 3284 | if (! NILP (Vwindow_configuration_change_hook)) |
| @@ -3294,7 +3294,7 @@ Interactively, if an argument is not given, make the window one line smaller. * | |||
| 3294 | (arg, side) | 3294 | (arg, side) |
| 3295 | register Lisp_Object arg, side; | 3295 | register Lisp_Object arg, side; |
| 3296 | { | 3296 | { |
| 3297 | CHECK_NUMBER (arg, 0); | 3297 | CHECK_NUMBER (arg); |
| 3298 | enlarge_window (selected_window, -XINT (arg), !NILP (side)); | 3298 | enlarge_window (selected_window, -XINT (arg), !NILP (side)); |
| 3299 | 3299 | ||
| 3300 | if (! NILP (Vwindow_configuration_change_hook)) | 3300 | if (! NILP (Vwindow_configuration_change_hook)) |
| @@ -4349,7 +4349,7 @@ showing that buffer is used. */) | |||
| 4349 | && ! EQ (window, selected_window)); | 4349 | && ! EQ (window, selected_window)); |
| 4350 | } | 4350 | } |
| 4351 | 4351 | ||
| 4352 | CHECK_LIVE_WINDOW (window, 0); | 4352 | CHECK_LIVE_WINDOW (window); |
| 4353 | 4353 | ||
| 4354 | if (EQ (window, selected_window)) | 4354 | if (EQ (window, selected_window)) |
| 4355 | error ("There is no other window"); | 4355 | error ("There is no other window"); |
| @@ -4394,7 +4394,7 @@ showing that buffer, popping the buffer up if necessary. */) | |||
| 4394 | { | 4394 | { |
| 4395 | if (CONSP (arg)) | 4395 | if (CONSP (arg)) |
| 4396 | arg = Fcar (arg); | 4396 | arg = Fcar (arg); |
| 4397 | CHECK_NUMBER (arg, 0); | 4397 | CHECK_NUMBER (arg); |
| 4398 | window_scroll (window, XINT (arg), 0, 1); | 4398 | window_scroll (window, XINT (arg), 0, 1); |
| 4399 | } | 4399 | } |
| 4400 | 4400 | ||
| @@ -4549,7 +4549,7 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 4549 | else | 4549 | else |
| 4550 | { | 4550 | { |
| 4551 | arg = Fprefix_numeric_value (arg); | 4551 | arg = Fprefix_numeric_value (arg); |
| 4552 | CHECK_NUMBER (arg, 0); | 4552 | CHECK_NUMBER (arg); |
| 4553 | } | 4553 | } |
| 4554 | 4554 | ||
| 4555 | set_buffer_internal (buf); | 4555 | set_buffer_internal (buf); |
| @@ -5271,7 +5271,7 @@ redirection (see `redirect-frame-focus'). */) | |||
| 5271 | 5271 | ||
| 5272 | if (NILP (frame)) | 5272 | if (NILP (frame)) |
| 5273 | frame = selected_frame; | 5273 | frame = selected_frame; |
| 5274 | CHECK_LIVE_FRAME (frame, 0); | 5274 | CHECK_LIVE_FRAME (frame); |
| 5275 | f = XFRAME (frame); | 5275 | f = XFRAME (frame); |
| 5276 | 5276 | ||
| 5277 | n_windows = count_windows (XWINDOW (FRAME_ROOT_WINDOW (f))); | 5277 | n_windows = count_windows (XWINDOW (FRAME_ROOT_WINDOW (f))); |
| @@ -5340,9 +5340,9 @@ A nil width parameter means no margin. */) | |||
| 5340 | struct window *w = decode_window (window); | 5340 | struct window *w = decode_window (window); |
| 5341 | 5341 | ||
| 5342 | if (!NILP (left)) | 5342 | if (!NILP (left)) |
| 5343 | CHECK_NUMBER_OR_FLOAT (left, 1); | 5343 | CHECK_NUMBER_OR_FLOAT (left); |
| 5344 | if (!NILP (right)) | 5344 | if (!NILP (right)) |
| 5345 | CHECK_NUMBER_OR_FLOAT (right, 2); | 5345 | CHECK_NUMBER_OR_FLOAT (right); |
| 5346 | 5346 | ||
| 5347 | /* Check widths < 0 and translate a zero width to nil. | 5347 | /* Check widths < 0 and translate a zero width to nil. |
| 5348 | Margins that are too wide have to be checked elsewhere. */ | 5348 | Margins that are too wide have to be checked elsewhere. */ |
| @@ -5401,7 +5401,7 @@ Value is a multiple of the canonical character height of WINDOW. */) | |||
| 5401 | if (NILP (window)) | 5401 | if (NILP (window)) |
| 5402 | window = selected_window; | 5402 | window = selected_window; |
| 5403 | else | 5403 | else |
| 5404 | CHECK_WINDOW (window, 0); | 5404 | CHECK_WINDOW (window); |
| 5405 | w = XWINDOW (window); | 5405 | w = XWINDOW (window); |
| 5406 | f = XFRAME (w->frame); | 5406 | f = XFRAME (w->frame); |
| 5407 | 5407 | ||
| @@ -5427,8 +5427,8 @@ non-negative multiple of the canonical character height of WINDOW. */) | |||
| 5427 | if (NILP (window)) | 5427 | if (NILP (window)) |
| 5428 | window = selected_window; | 5428 | window = selected_window; |
| 5429 | else | 5429 | else |
| 5430 | CHECK_WINDOW (window, 0); | 5430 | CHECK_WINDOW (window); |
| 5431 | CHECK_NUMBER_OR_FLOAT (vscroll, 1); | 5431 | CHECK_NUMBER_OR_FLOAT (vscroll); |
| 5432 | 5432 | ||
| 5433 | w = XWINDOW (window); | 5433 | w = XWINDOW (window); |
| 5434 | f = XFRAME (w->frame); | 5434 | f = XFRAME (w->frame); |
diff --git a/src/xdisp.c b/src/xdisp.c index 63a94691875..56da6ed040a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -7816,7 +7816,7 @@ DEFUN ("tool-bar-lines-needed", Ftool_bar_lines_needed, Stool_bar_lines_needed, | |||
| 7816 | if (NILP (frame)) | 7816 | if (NILP (frame)) |
| 7817 | frame = selected_frame; | 7817 | frame = selected_frame; |
| 7818 | else | 7818 | else |
| 7819 | CHECK_FRAME (frame, 0); | 7819 | CHECK_FRAME (frame); |
| 7820 | f = XFRAME (frame); | 7820 | f = XFRAME (frame); |
| 7821 | 7821 | ||
| 7822 | if (WINDOWP (f->tool_bar_window) | 7822 | if (WINDOWP (f->tool_bar_window) |
| @@ -12203,7 +12203,7 @@ GLYPH > 1 or omitted means dump glyphs in long form. */) | |||
| 12203 | struct glyph_matrix *matrix; | 12203 | struct glyph_matrix *matrix; |
| 12204 | int vpos; | 12204 | int vpos; |
| 12205 | 12205 | ||
| 12206 | CHECK_NUMBER (row, 0); | 12206 | CHECK_NUMBER (row); |
| 12207 | matrix = XWINDOW (selected_window)->current_matrix; | 12207 | matrix = XWINDOW (selected_window)->current_matrix; |
| 12208 | vpos = XINT (row); | 12208 | vpos = XINT (row); |
| 12209 | if (vpos >= 0 && vpos < matrix->nrows) | 12209 | if (vpos >= 0 && vpos < matrix->nrows) |
| @@ -12226,7 +12226,7 @@ GLYPH > 1 or omitted means dump glyphs in long form. */) | |||
| 12226 | struct glyph_matrix *m = XWINDOW (sf->tool_bar_window)->current_matrix; | 12226 | struct glyph_matrix *m = XWINDOW (sf->tool_bar_window)->current_matrix; |
| 12227 | int vpos; | 12227 | int vpos; |
| 12228 | 12228 | ||
| 12229 | CHECK_NUMBER (row, 0); | 12229 | CHECK_NUMBER (row); |
| 12230 | vpos = XINT (row); | 12230 | vpos = XINT (row); |
| 12231 | if (vpos >= 0 && vpos < m->nrows) | 12231 | if (vpos >= 0 && vpos < m->nrows) |
| 12232 | dump_glyph_row (MATRIX_ROW (m, vpos), vpos, | 12232 | dump_glyph_row (MATRIX_ROW (m, vpos), vpos, |
diff --git a/src/xfaces.c b/src/xfaces.c index cb0c47643f3..afbf3e92d08 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -875,7 +875,7 @@ frame_or_selected_frame (frame, nparam) | |||
| 875 | if (NILP (frame)) | 875 | if (NILP (frame)) |
| 876 | frame = selected_frame; | 876 | frame = selected_frame; |
| 877 | 877 | ||
| 878 | CHECK_LIVE_FRAME (frame, nparam); | 878 | CHECK_LIVE_FRAME (frame); |
| 879 | return XFRAME (frame); | 879 | return XFRAME (frame); |
| 880 | } | 880 | } |
| 881 | 881 | ||
| @@ -1490,8 +1490,8 @@ If FRAME is nil or omitted, use the selected frame. */) | |||
| 1490 | { | 1490 | { |
| 1491 | struct frame *f; | 1491 | struct frame *f; |
| 1492 | 1492 | ||
| 1493 | CHECK_FRAME (frame, 0); | 1493 | CHECK_FRAME (frame); |
| 1494 | CHECK_STRING (color, 0); | 1494 | CHECK_STRING (color); |
| 1495 | f = XFRAME (frame); | 1495 | f = XFRAME (frame); |
| 1496 | return face_color_gray_p (f, XSTRING (color)->data) ? Qt : Qnil; | 1496 | return face_color_gray_p (f, XSTRING (color)->data) ? Qt : Qnil; |
| 1497 | } | 1497 | } |
| @@ -1508,8 +1508,8 @@ COLOR must be a valid color name. */) | |||
| 1508 | { | 1508 | { |
| 1509 | struct frame *f; | 1509 | struct frame *f; |
| 1510 | 1510 | ||
| 1511 | CHECK_FRAME (frame, 0); | 1511 | CHECK_FRAME (frame); |
| 1512 | CHECK_STRING (color, 0); | 1512 | CHECK_STRING (color); |
| 1513 | f = XFRAME (frame); | 1513 | f = XFRAME (frame); |
| 1514 | if (face_color_supported_p (f, XSTRING (color)->data, !NILP (background_p))) | 1514 | if (face_color_supported_p (f, XSTRING (color)->data, !NILP (background_p))) |
| 1515 | return Qt; | 1515 | return Qt; |
| @@ -2720,7 +2720,7 @@ the face font sort order. */) | |||
| 2720 | struct gcpro gcpro1; | 2720 | struct gcpro gcpro1; |
| 2721 | 2721 | ||
| 2722 | if (!NILP (family)) | 2722 | if (!NILP (family)) |
| 2723 | CHECK_STRING (family, 1); | 2723 | CHECK_STRING (family); |
| 2724 | 2724 | ||
| 2725 | result = Qnil; | 2725 | result = Qnil; |
| 2726 | GCPRO1 (result); | 2726 | GCPRO1 (result); |
| @@ -2829,18 +2829,18 @@ the WIDTH times as wide as FACE on FRAME. */) | |||
| 2829 | int maxnames; | 2829 | int maxnames; |
| 2830 | 2830 | ||
| 2831 | check_x (); | 2831 | check_x (); |
| 2832 | CHECK_STRING (pattern, 0); | 2832 | CHECK_STRING (pattern); |
| 2833 | 2833 | ||
| 2834 | if (NILP (maximum)) | 2834 | if (NILP (maximum)) |
| 2835 | maxnames = 2000; | 2835 | maxnames = 2000; |
| 2836 | else | 2836 | else |
| 2837 | { | 2837 | { |
| 2838 | CHECK_NATNUM (maximum, 0); | 2838 | CHECK_NATNUM (maximum); |
| 2839 | maxnames = XINT (maximum); | 2839 | maxnames = XINT (maximum); |
| 2840 | } | 2840 | } |
| 2841 | 2841 | ||
| 2842 | if (!NILP (width)) | 2842 | if (!NILP (width)) |
| 2843 | CHECK_NUMBER (width, 4); | 2843 | CHECK_NUMBER (width); |
| 2844 | 2844 | ||
| 2845 | /* We can't simply call check_x_frame because this function may be | 2845 | /* We can't simply call check_x_frame because this function may be |
| 2846 | called before any frame is created. */ | 2846 | called before any frame is created. */ |
| @@ -3626,12 +3626,12 @@ Value is a vector of face attributes. */) | |||
| 3626 | struct frame *f; | 3626 | struct frame *f; |
| 3627 | int i; | 3627 | int i; |
| 3628 | 3628 | ||
| 3629 | CHECK_SYMBOL (face, 0); | 3629 | CHECK_SYMBOL (face); |
| 3630 | global_lface = lface_from_face_name (NULL, face, 0); | 3630 | global_lface = lface_from_face_name (NULL, face, 0); |
| 3631 | 3631 | ||
| 3632 | if (!NILP (frame)) | 3632 | if (!NILP (frame)) |
| 3633 | { | 3633 | { |
| 3634 | CHECK_LIVE_FRAME (frame, 1); | 3634 | CHECK_LIVE_FRAME (frame); |
| 3635 | f = XFRAME (frame); | 3635 | f = XFRAME (frame); |
| 3636 | lface = lface_from_face_name (f, face, 0); | 3636 | lface = lface_from_face_name (f, face, 0); |
| 3637 | } | 3637 | } |
| @@ -3703,7 +3703,7 @@ Otherwise check for the existence of a global face. */) | |||
| 3703 | 3703 | ||
| 3704 | if (!NILP (frame)) | 3704 | if (!NILP (frame)) |
| 3705 | { | 3705 | { |
| 3706 | CHECK_LIVE_FRAME (frame, 1); | 3706 | CHECK_LIVE_FRAME (frame); |
| 3707 | lface = lface_from_face_name (XFRAME (frame), face, 0); | 3707 | lface = lface_from_face_name (XFRAME (frame), face, 0); |
| 3708 | } | 3708 | } |
| 3709 | else | 3709 | else |
| @@ -3727,8 +3727,8 @@ Value is TO. */) | |||
| 3727 | { | 3727 | { |
| 3728 | Lisp_Object lface, copy; | 3728 | Lisp_Object lface, copy; |
| 3729 | 3729 | ||
| 3730 | CHECK_SYMBOL (from, 0); | 3730 | CHECK_SYMBOL (from); |
| 3731 | CHECK_SYMBOL (to, 1); | 3731 | CHECK_SYMBOL (to); |
| 3732 | if (NILP (new_frame)) | 3732 | if (NILP (new_frame)) |
| 3733 | new_frame = frame; | 3733 | new_frame = frame; |
| 3734 | 3734 | ||
| @@ -3742,8 +3742,8 @@ Value is TO. */) | |||
| 3742 | else | 3742 | else |
| 3743 | { | 3743 | { |
| 3744 | /* Copy frame-local definition of FROM. */ | 3744 | /* Copy frame-local definition of FROM. */ |
| 3745 | CHECK_LIVE_FRAME (frame, 2); | 3745 | CHECK_LIVE_FRAME (frame); |
| 3746 | CHECK_LIVE_FRAME (new_frame, 3); | 3746 | CHECK_LIVE_FRAME (new_frame); |
| 3747 | lface = lface_from_face_name (XFRAME (frame), from, 1); | 3747 | lface = lface_from_face_name (XFRAME (frame), from, 1); |
| 3748 | copy = Finternal_make_lisp_face (to, new_frame); | 3748 | copy = Finternal_make_lisp_face (to, new_frame); |
| 3749 | } | 3749 | } |
| @@ -3773,8 +3773,8 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3773 | /* Set 1 if ATTR is one of font-related attributes other than QCfont. */ | 3773 | /* Set 1 if ATTR is one of font-related attributes other than QCfont. */ |
| 3774 | int font_related_attr_p = 0; | 3774 | int font_related_attr_p = 0; |
| 3775 | 3775 | ||
| 3776 | CHECK_SYMBOL (face, 0); | 3776 | CHECK_SYMBOL (face); |
| 3777 | CHECK_SYMBOL (attr, 1); | 3777 | CHECK_SYMBOL (attr); |
| 3778 | 3778 | ||
| 3779 | face = resolve_face_name (face); | 3779 | face = resolve_face_name (face); |
| 3780 | 3780 | ||
| @@ -3797,7 +3797,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3797 | if (NILP (frame)) | 3797 | if (NILP (frame)) |
| 3798 | frame = selected_frame; | 3798 | frame = selected_frame; |
| 3799 | 3799 | ||
| 3800 | CHECK_LIVE_FRAME (frame, 3); | 3800 | CHECK_LIVE_FRAME (frame); |
| 3801 | lface = lface_from_face_name (XFRAME (frame), face, 0); | 3801 | lface = lface_from_face_name (XFRAME (frame), face, 0); |
| 3802 | 3802 | ||
| 3803 | /* If a frame-local face doesn't exist yet, create one. */ | 3803 | /* If a frame-local face doesn't exist yet, create one. */ |
| @@ -3809,7 +3809,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3809 | { | 3809 | { |
| 3810 | if (!UNSPECIFIEDP (value)) | 3810 | if (!UNSPECIFIEDP (value)) |
| 3811 | { | 3811 | { |
| 3812 | CHECK_STRING (value, 3); | 3812 | CHECK_STRING (value); |
| 3813 | if (XSTRING (value)->size == 0) | 3813 | if (XSTRING (value)->size == 0) |
| 3814 | signal_error ("Invalid face family", value); | 3814 | signal_error ("Invalid face family", value); |
| 3815 | } | 3815 | } |
| @@ -3842,7 +3842,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3842 | { | 3842 | { |
| 3843 | if (!UNSPECIFIEDP (value)) | 3843 | if (!UNSPECIFIEDP (value)) |
| 3844 | { | 3844 | { |
| 3845 | CHECK_SYMBOL (value, 3); | 3845 | CHECK_SYMBOL (value); |
| 3846 | if (face_numeric_weight (value) < 0) | 3846 | if (face_numeric_weight (value) < 0) |
| 3847 | signal_error ("Invalid face weight", value); | 3847 | signal_error ("Invalid face weight", value); |
| 3848 | } | 3848 | } |
| @@ -3854,7 +3854,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3854 | { | 3854 | { |
| 3855 | if (!UNSPECIFIEDP (value)) | 3855 | if (!UNSPECIFIEDP (value)) |
| 3856 | { | 3856 | { |
| 3857 | CHECK_SYMBOL (value, 3); | 3857 | CHECK_SYMBOL (value); |
| 3858 | if (face_numeric_slant (value) < 0) | 3858 | if (face_numeric_slant (value) < 0) |
| 3859 | signal_error ("Invalid face slant", value); | 3859 | signal_error ("Invalid face slant", value); |
| 3860 | } | 3860 | } |
| @@ -3972,7 +3972,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3972 | { | 3972 | { |
| 3973 | if (!UNSPECIFIEDP (value)) | 3973 | if (!UNSPECIFIEDP (value)) |
| 3974 | { | 3974 | { |
| 3975 | CHECK_SYMBOL (value, 3); | 3975 | CHECK_SYMBOL (value); |
| 3976 | if (!EQ (value, Qt) && !NILP (value)) | 3976 | if (!EQ (value, Qt) && !NILP (value)) |
| 3977 | signal_error ("Invalid inverse-video face attribute value", value); | 3977 | signal_error ("Invalid inverse-video face attribute value", value); |
| 3978 | } | 3978 | } |
| @@ -3986,7 +3986,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3986 | /* Don't check for valid color names here because it depends | 3986 | /* Don't check for valid color names here because it depends |
| 3987 | on the frame (display) whether the color will be valid | 3987 | on the frame (display) whether the color will be valid |
| 3988 | when the face is realized. */ | 3988 | when the face is realized. */ |
| 3989 | CHECK_STRING (value, 3); | 3989 | CHECK_STRING (value); |
| 3990 | if (XSTRING (value)->size == 0) | 3990 | if (XSTRING (value)->size == 0) |
| 3991 | signal_error ("Empty foreground color value", value); | 3991 | signal_error ("Empty foreground color value", value); |
| 3992 | } | 3992 | } |
| @@ -4000,7 +4000,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 4000 | /* Don't check for valid color names here because it depends | 4000 | /* Don't check for valid color names here because it depends |
| 4001 | on the frame (display) whether the color will be valid | 4001 | on the frame (display) whether the color will be valid |
| 4002 | when the face is realized. */ | 4002 | when the face is realized. */ |
| 4003 | CHECK_STRING (value, 3); | 4003 | CHECK_STRING (value); |
| 4004 | if (XSTRING (value)->size == 0) | 4004 | if (XSTRING (value)->size == 0) |
| 4005 | signal_error ("Empty background color value", value); | 4005 | signal_error ("Empty background color value", value); |
| 4006 | } | 4006 | } |
| @@ -4022,7 +4022,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 4022 | { | 4022 | { |
| 4023 | if (!UNSPECIFIEDP (value)) | 4023 | if (!UNSPECIFIEDP (value)) |
| 4024 | { | 4024 | { |
| 4025 | CHECK_SYMBOL (value, 3); | 4025 | CHECK_SYMBOL (value); |
| 4026 | if (face_numeric_swidth (value) < 0) | 4026 | if (face_numeric_swidth (value) < 0) |
| 4027 | signal_error ("Invalid face width", value); | 4027 | signal_error ("Invalid face width", value); |
| 4028 | } | 4028 | } |
| @@ -4040,7 +4040,7 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 4040 | struct frame *f; | 4040 | struct frame *f; |
| 4041 | Lisp_Object tmp; | 4041 | Lisp_Object tmp; |
| 4042 | 4042 | ||
| 4043 | CHECK_STRING (value, 3); | 4043 | CHECK_STRING (value); |
| 4044 | if (EQ (frame, Qt)) | 4044 | if (EQ (frame, Qt)) |
| 4045 | f = SELECTED_FRAME (); | 4045 | f = SELECTED_FRAME (); |
| 4046 | else | 4046 | else |
| @@ -4314,9 +4314,9 @@ DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource, | |||
| 4314 | Lisp_Object value = Qnil; | 4314 | Lisp_Object value = Qnil; |
| 4315 | #ifndef WINDOWSNT | 4315 | #ifndef WINDOWSNT |
| 4316 | #ifndef macintosh | 4316 | #ifndef macintosh |
| 4317 | CHECK_STRING (resource, 0); | 4317 | CHECK_STRING (resource); |
| 4318 | CHECK_STRING (class, 1); | 4318 | CHECK_STRING (class); |
| 4319 | CHECK_LIVE_FRAME (frame, 2); | 4319 | CHECK_LIVE_FRAME (frame); |
| 4320 | BLOCK_INPUT; | 4320 | BLOCK_INPUT; |
| 4321 | value = display_x_get_resource (FRAME_X_DISPLAY_INFO (XFRAME (frame)), | 4321 | value = display_x_get_resource (FRAME_X_DISPLAY_INFO (XFRAME (frame)), |
| 4322 | resource, class, Qnil, Qnil); | 4322 | resource, class, Qnil, Qnil); |
| @@ -4363,9 +4363,9 @@ DEFUN ("internal-set-lisp-face-attribute-from-resource", | |||
| 4363 | (face, attr, value, frame) | 4363 | (face, attr, value, frame) |
| 4364 | Lisp_Object face, attr, value, frame; | 4364 | Lisp_Object face, attr, value, frame; |
| 4365 | { | 4365 | { |
| 4366 | CHECK_SYMBOL (face, 0); | 4366 | CHECK_SYMBOL (face); |
| 4367 | CHECK_SYMBOL (attr, 1); | 4367 | CHECK_SYMBOL (attr); |
| 4368 | CHECK_STRING (value, 2); | 4368 | CHECK_STRING (value); |
| 4369 | 4369 | ||
| 4370 | if (xstricmp (XSTRING (value)->data, "unspecified") == 0) | 4370 | if (xstricmp (XSTRING (value)->data, "unspecified") == 0) |
| 4371 | value = Qunspecified; | 4371 | value = Qunspecified; |
| @@ -4532,8 +4532,8 @@ frames). If FRAME is omitted or nil, use the selected frame. */) | |||
| 4532 | { | 4532 | { |
| 4533 | Lisp_Object lface, value = Qnil; | 4533 | Lisp_Object lface, value = Qnil; |
| 4534 | 4534 | ||
| 4535 | CHECK_SYMBOL (symbol, 0); | 4535 | CHECK_SYMBOL (symbol); |
| 4536 | CHECK_SYMBOL (keyword, 1); | 4536 | CHECK_SYMBOL (keyword); |
| 4537 | 4537 | ||
| 4538 | if (EQ (frame, Qt)) | 4538 | if (EQ (frame, Qt)) |
| 4539 | lface = lface_from_face_name (NULL, symbol, 1); | 4539 | lface = lface_from_face_name (NULL, symbol, 1); |
| @@ -4541,7 +4541,7 @@ frames). If FRAME is omitted or nil, use the selected frame. */) | |||
| 4541 | { | 4541 | { |
| 4542 | if (NILP (frame)) | 4542 | if (NILP (frame)) |
| 4543 | frame = selected_frame; | 4543 | frame = selected_frame; |
| 4544 | CHECK_LIVE_FRAME (frame, 2); | 4544 | CHECK_LIVE_FRAME (frame); |
| 4545 | lface = lface_from_face_name (XFRAME (frame), symbol, 1); | 4545 | lface = lface_from_face_name (XFRAME (frame), symbol, 1); |
| 4546 | } | 4546 | } |
| 4547 | 4547 | ||
| @@ -4593,7 +4593,7 @@ Value is nil if ATTR doesn't have a discrete set of valid values. */) | |||
| 4593 | { | 4593 | { |
| 4594 | Lisp_Object result = Qnil; | 4594 | Lisp_Object result = Qnil; |
| 4595 | 4595 | ||
| 4596 | CHECK_SYMBOL (attr, 0); | 4596 | CHECK_SYMBOL (attr); |
| 4597 | 4597 | ||
| 4598 | if (EQ (attr, QCweight) | 4598 | if (EQ (attr, QCweight) |
| 4599 | || EQ (attr, QCslant) | 4599 | || EQ (attr, QCslant) |
| @@ -4646,7 +4646,7 @@ Default face attributes override any local face attributes. */) | |||
| 4646 | int i; | 4646 | int i; |
| 4647 | Lisp_Object global_lface, local_lface, *gvec, *lvec; | 4647 | Lisp_Object global_lface, local_lface, *gvec, *lvec; |
| 4648 | 4648 | ||
| 4649 | CHECK_LIVE_FRAME (frame, 1); | 4649 | CHECK_LIVE_FRAME (frame); |
| 4650 | global_lface = lface_from_face_name (NULL, face, 1); | 4650 | global_lface = lface_from_face_name (NULL, face, 1); |
| 4651 | local_lface = lface_from_face_name (XFRAME (frame), face, 0); | 4651 | local_lface = lface_from_face_name (XFRAME (frame), face, 0); |
| 4652 | if (NILP (local_lface)) | 4652 | if (NILP (local_lface)) |
| @@ -4800,7 +4800,7 @@ If FRAME is omitted or nil, use the selected frame. */) | |||
| 4800 | 4800 | ||
| 4801 | if (NILP (frame)) | 4801 | if (NILP (frame)) |
| 4802 | frame = selected_frame; | 4802 | frame = selected_frame; |
| 4803 | CHECK_LIVE_FRAME (frame, 0); | 4803 | CHECK_LIVE_FRAME (frame); |
| 4804 | f = XFRAME (frame); | 4804 | f = XFRAME (frame); |
| 4805 | 4805 | ||
| 4806 | if (EQ (frame, Qt)) | 4806 | if (EQ (frame, Qt)) |
| @@ -5526,7 +5526,7 @@ Value is ORDER. */) | |||
| 5526 | int i; | 5526 | int i; |
| 5527 | int indices[DIM (font_sort_order)]; | 5527 | int indices[DIM (font_sort_order)]; |
| 5528 | 5528 | ||
| 5529 | CHECK_LIST (order, 0); | 5529 | CHECK_LIST (order); |
| 5530 | bzero (indices, sizeof indices); | 5530 | bzero (indices, sizeof indices); |
| 5531 | i = 0; | 5531 | i = 0; |
| 5532 | 5532 | ||
| @@ -5579,7 +5579,7 @@ be found. Value is ALIST. */) | |||
| 5579 | (alist) | 5579 | (alist) |
| 5580 | Lisp_Object alist; | 5580 | Lisp_Object alist; |
| 5581 | { | 5581 | { |
| 5582 | CHECK_LIST (alist, 0); | 5582 | CHECK_LIST (alist); |
| 5583 | Vface_alternative_font_family_alist = alist; | 5583 | Vface_alternative_font_family_alist = alist; |
| 5584 | free_all_realized_faces (Qnil); | 5584 | free_all_realized_faces (Qnil); |
| 5585 | return alist; | 5585 | return alist; |
| @@ -5596,7 +5596,7 @@ be found. Value is ALIST. */) | |||
| 5596 | (alist) | 5596 | (alist) |
| 5597 | Lisp_Object alist; | 5597 | Lisp_Object alist; |
| 5598 | { | 5598 | { |
| 5599 | CHECK_LIST (alist, 0); | 5599 | CHECK_LIST (alist); |
| 5600 | Vface_alternative_font_registry_alist = alist; | 5600 | Vface_alternative_font_registry_alist = alist; |
| 5601 | free_all_realized_faces (Qnil); | 5601 | free_all_realized_faces (Qnil); |
| 5602 | return alist; | 5602 | return alist; |
| @@ -7039,7 +7039,7 @@ DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */) | |||
| 7039 | else | 7039 | else |
| 7040 | { | 7040 | { |
| 7041 | struct face *face; | 7041 | struct face *face; |
| 7042 | CHECK_NUMBER (n, 0); | 7042 | CHECK_NUMBER (n); |
| 7043 | face = FACE_FROM_ID (SELECTED_FRAME (), XINT (n)); | 7043 | face = FACE_FROM_ID (SELECTED_FRAME (), XINT (n)); |
| 7044 | if (face == NULL) | 7044 | if (face == NULL) |
| 7045 | error ("Not a valid face"); | 7045 | error ("Not a valid face"); |
diff --git a/src/xfns.c b/src/xfns.c index e034cb6676b..fe1f0b0f449 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -261,7 +261,7 @@ check_x_frame (frame) | |||
| 261 | 261 | ||
| 262 | if (NILP (frame)) | 262 | if (NILP (frame)) |
| 263 | frame = selected_frame; | 263 | frame = selected_frame; |
| 264 | CHECK_LIVE_FRAME (frame, 0); | 264 | CHECK_LIVE_FRAME (frame); |
| 265 | f = XFRAME (frame); | 265 | f = XFRAME (frame); |
| 266 | if (! FRAME_X_P (f)) | 266 | if (! FRAME_X_P (f)) |
| 267 | error ("Non-X frame used"); | 267 | error ("Non-X frame used"); |
| @@ -295,7 +295,7 @@ check_x_display_info (frame) | |||
| 295 | { | 295 | { |
| 296 | FRAME_PTR f; | 296 | FRAME_PTR f; |
| 297 | 297 | ||
| 298 | CHECK_LIVE_FRAME (frame, 0); | 298 | CHECK_LIVE_FRAME (frame); |
| 299 | f = XFRAME (frame); | 299 | f = XFRAME (frame); |
| 300 | if (! FRAME_X_P (f)) | 300 | if (! FRAME_X_P (f)) |
| 301 | error ("Non-X frame used"); | 301 | error ("Non-X frame used"); |
| @@ -1264,7 +1264,7 @@ x_decode_color (f, color_name, mono_color) | |||
| 1264 | { | 1264 | { |
| 1265 | XColor cdef; | 1265 | XColor cdef; |
| 1266 | 1266 | ||
| 1267 | CHECK_STRING (color_name, 0); | 1267 | CHECK_STRING (color_name); |
| 1268 | 1268 | ||
| 1269 | #if 0 /* Don't do this. It's wrong when we're not using the default | 1269 | #if 0 /* Don't do this. It's wrong when we're not using the default |
| 1270 | colormap, it makes freeing difficult, and it's probably not | 1270 | colormap, it makes freeing difficult, and it's probably not |
| @@ -1466,7 +1466,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 1466 | 1466 | ||
| 1467 | if (!NILP (Vx_pointer_shape)) | 1467 | if (!NILP (Vx_pointer_shape)) |
| 1468 | { | 1468 | { |
| 1469 | CHECK_NUMBER (Vx_pointer_shape, 0); | 1469 | CHECK_NUMBER (Vx_pointer_shape); |
| 1470 | cursor = XCreateFontCursor (dpy, XINT (Vx_pointer_shape)); | 1470 | cursor = XCreateFontCursor (dpy, XINT (Vx_pointer_shape)); |
| 1471 | } | 1471 | } |
| 1472 | else | 1472 | else |
| @@ -1475,7 +1475,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 1475 | 1475 | ||
| 1476 | if (!NILP (Vx_nontext_pointer_shape)) | 1476 | if (!NILP (Vx_nontext_pointer_shape)) |
| 1477 | { | 1477 | { |
| 1478 | CHECK_NUMBER (Vx_nontext_pointer_shape, 0); | 1478 | CHECK_NUMBER (Vx_nontext_pointer_shape); |
| 1479 | nontext_cursor | 1479 | nontext_cursor |
| 1480 | = XCreateFontCursor (dpy, XINT (Vx_nontext_pointer_shape)); | 1480 | = XCreateFontCursor (dpy, XINT (Vx_nontext_pointer_shape)); |
| 1481 | } | 1481 | } |
| @@ -1485,7 +1485,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 1485 | 1485 | ||
| 1486 | if (!NILP (Vx_hourglass_pointer_shape)) | 1486 | if (!NILP (Vx_hourglass_pointer_shape)) |
| 1487 | { | 1487 | { |
| 1488 | CHECK_NUMBER (Vx_hourglass_pointer_shape, 0); | 1488 | CHECK_NUMBER (Vx_hourglass_pointer_shape); |
| 1489 | hourglass_cursor | 1489 | hourglass_cursor |
| 1490 | = XCreateFontCursor (dpy, XINT (Vx_hourglass_pointer_shape)); | 1490 | = XCreateFontCursor (dpy, XINT (Vx_hourglass_pointer_shape)); |
| 1491 | } | 1491 | } |
| @@ -1496,7 +1496,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 1496 | x_check_errors (dpy, "bad nontext pointer cursor: %s"); | 1496 | x_check_errors (dpy, "bad nontext pointer cursor: %s"); |
| 1497 | if (!NILP (Vx_mode_pointer_shape)) | 1497 | if (!NILP (Vx_mode_pointer_shape)) |
| 1498 | { | 1498 | { |
| 1499 | CHECK_NUMBER (Vx_mode_pointer_shape, 0); | 1499 | CHECK_NUMBER (Vx_mode_pointer_shape); |
| 1500 | mode_cursor = XCreateFontCursor (dpy, XINT (Vx_mode_pointer_shape)); | 1500 | mode_cursor = XCreateFontCursor (dpy, XINT (Vx_mode_pointer_shape)); |
| 1501 | } | 1501 | } |
| 1502 | else | 1502 | else |
| @@ -1505,7 +1505,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 1505 | 1505 | ||
| 1506 | if (!NILP (Vx_sensitive_text_pointer_shape)) | 1506 | if (!NILP (Vx_sensitive_text_pointer_shape)) |
| 1507 | { | 1507 | { |
| 1508 | CHECK_NUMBER (Vx_sensitive_text_pointer_shape, 0); | 1508 | CHECK_NUMBER (Vx_sensitive_text_pointer_shape); |
| 1509 | cross_cursor | 1509 | cross_cursor |
| 1510 | = XCreateFontCursor (dpy, XINT (Vx_sensitive_text_pointer_shape)); | 1510 | = XCreateFontCursor (dpy, XINT (Vx_sensitive_text_pointer_shape)); |
| 1511 | } | 1511 | } |
| @@ -1514,7 +1514,7 @@ x_set_mouse_color (f, arg, oldval) | |||
| 1514 | 1514 | ||
| 1515 | if (!NILP (Vx_window_horizontal_drag_shape)) | 1515 | if (!NILP (Vx_window_horizontal_drag_shape)) |
| 1516 | { | 1516 | { |
| 1517 | CHECK_NUMBER (Vx_window_horizontal_drag_shape, 0); | 1517 | CHECK_NUMBER (Vx_window_horizontal_drag_shape); |
| 1518 | horizontal_drag_cursor | 1518 | horizontal_drag_cursor |
| 1519 | = XCreateFontCursor (dpy, XINT (Vx_window_horizontal_drag_shape)); | 1519 | = XCreateFontCursor (dpy, XINT (Vx_window_horizontal_drag_shape)); |
| 1520 | } | 1520 | } |
| @@ -1668,7 +1668,7 @@ x_set_border_color (f, arg, oldval) | |||
| 1668 | { | 1668 | { |
| 1669 | int pix; | 1669 | int pix; |
| 1670 | 1670 | ||
| 1671 | CHECK_STRING (arg, 0); | 1671 | CHECK_STRING (arg); |
| 1672 | pix = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f)); | 1672 | pix = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f)); |
| 1673 | x_set_border_pixel (f, pix); | 1673 | x_set_border_pixel (f, pix); |
| 1674 | update_face_from_frame_parameter (f, Qborder_color, arg); | 1674 | update_face_from_frame_parameter (f, Qborder_color, arg); |
| @@ -1847,7 +1847,7 @@ x_set_font (f, arg, oldval) | |||
| 1847 | Lisp_Object frame; | 1847 | Lisp_Object frame; |
| 1848 | int old_fontset = f->output_data.x->fontset; | 1848 | int old_fontset = f->output_data.x->fontset; |
| 1849 | 1849 | ||
| 1850 | CHECK_STRING (arg, 1); | 1850 | CHECK_STRING (arg); |
| 1851 | 1851 | ||
| 1852 | fontset_name = Fquery_fontset (arg, Qnil); | 1852 | fontset_name = Fquery_fontset (arg, Qnil); |
| 1853 | 1853 | ||
| @@ -1898,7 +1898,7 @@ x_set_border_width (f, arg, oldval) | |||
| 1898 | struct frame *f; | 1898 | struct frame *f; |
| 1899 | Lisp_Object arg, oldval; | 1899 | Lisp_Object arg, oldval; |
| 1900 | { | 1900 | { |
| 1901 | CHECK_NUMBER (arg, 0); | 1901 | CHECK_NUMBER (arg); |
| 1902 | 1902 | ||
| 1903 | if (XINT (arg) == f->output_data.x->border_width) | 1903 | if (XINT (arg) == f->output_data.x->border_width) |
| 1904 | return; | 1904 | return; |
| @@ -1916,7 +1916,7 @@ x_set_internal_border_width (f, arg, oldval) | |||
| 1916 | { | 1916 | { |
| 1917 | int old = f->output_data.x->internal_border_width; | 1917 | int old = f->output_data.x->internal_border_width; |
| 1918 | 1918 | ||
| 1919 | CHECK_NUMBER (arg, 0); | 1919 | CHECK_NUMBER (arg); |
| 1920 | f->output_data.x->internal_border_width = XINT (arg); | 1920 | f->output_data.x->internal_border_width = XINT (arg); |
| 1921 | if (f->output_data.x->internal_border_width < 0) | 1921 | if (f->output_data.x->internal_border_width < 0) |
| 1922 | f->output_data.x->internal_border_width = 0; | 1922 | f->output_data.x->internal_border_width = 0; |
| @@ -2291,7 +2291,7 @@ x_set_name (f, name, explicit) | |||
| 2291 | name = build_string (FRAME_X_DISPLAY_INFO (f)->x_id_name); | 2291 | name = build_string (FRAME_X_DISPLAY_INFO (f)->x_id_name); |
| 2292 | } | 2292 | } |
| 2293 | else | 2293 | else |
| 2294 | CHECK_STRING (name, 0); | 2294 | CHECK_STRING (name); |
| 2295 | 2295 | ||
| 2296 | /* Don't change the name if it's already NAME. */ | 2296 | /* Don't change the name if it's already NAME. */ |
| 2297 | if (! NILP (Fstring_equal (name, f->name))) | 2297 | if (! NILP (Fstring_equal (name, f->name))) |
| @@ -2409,7 +2409,7 @@ x_set_title (f, name, old_name) | |||
| 2409 | if (NILP (name)) | 2409 | if (NILP (name)) |
| 2410 | name = f->name; | 2410 | name = f->name; |
| 2411 | else | 2411 | else |
| 2412 | CHECK_STRING (name, 0); | 2412 | CHECK_STRING (name); |
| 2413 | 2413 | ||
| 2414 | if (FRAME_X_WINDOW (f)) | 2414 | if (FRAME_X_WINDOW (f)) |
| 2415 | { | 2415 | { |
| @@ -2659,13 +2659,13 @@ and the class is `Emacs.CLASS.SUBCLASS'. */) | |||
| 2659 | 2659 | ||
| 2660 | check_x (); | 2660 | check_x (); |
| 2661 | 2661 | ||
| 2662 | CHECK_STRING (attribute, 0); | 2662 | CHECK_STRING (attribute); |
| 2663 | CHECK_STRING (class, 0); | 2663 | CHECK_STRING (class); |
| 2664 | 2664 | ||
| 2665 | if (!NILP (component)) | 2665 | if (!NILP (component)) |
| 2666 | CHECK_STRING (component, 1); | 2666 | CHECK_STRING (component); |
| 2667 | if (!NILP (subclass)) | 2667 | if (!NILP (subclass)) |
| 2668 | CHECK_STRING (subclass, 2); | 2668 | CHECK_STRING (subclass); |
| 2669 | if (NILP (component) != NILP (subclass)) | 2669 | if (NILP (component) != NILP (subclass)) |
| 2670 | error ("x-get-resource: must specify both COMPONENT and SUBCLASS or neither"); | 2670 | error ("x-get-resource: must specify both COMPONENT and SUBCLASS or neither"); |
| 2671 | 2671 | ||
| @@ -2725,13 +2725,13 @@ display_x_get_resource (dpyinfo, attribute, class, component, subclass) | |||
| 2725 | char *name_key; | 2725 | char *name_key; |
| 2726 | char *class_key; | 2726 | char *class_key; |
| 2727 | 2727 | ||
| 2728 | CHECK_STRING (attribute, 0); | 2728 | CHECK_STRING (attribute); |
| 2729 | CHECK_STRING (class, 0); | 2729 | CHECK_STRING (class); |
| 2730 | 2730 | ||
| 2731 | if (!NILP (component)) | 2731 | if (!NILP (component)) |
| 2732 | CHECK_STRING (component, 1); | 2732 | CHECK_STRING (component); |
| 2733 | if (!NILP (subclass)) | 2733 | if (!NILP (subclass)) |
| 2734 | CHECK_STRING (subclass, 2); | 2734 | CHECK_STRING (subclass); |
| 2735 | if (NILP (component) != NILP (subclass)) | 2735 | if (NILP (component) != NILP (subclass)) |
| 2736 | error ("x-get-resource: must specify both COMPONENT and SUBCLASS or neither"); | 2736 | error ("x-get-resource: must specify both COMPONENT and SUBCLASS or neither"); |
| 2737 | 2737 | ||
| @@ -3012,7 +3012,7 @@ or a list (- N) meaning -N pixels relative to bottom/right corner. */) | |||
| 3012 | unsigned int width, height; | 3012 | unsigned int width, height; |
| 3013 | Lisp_Object result; | 3013 | Lisp_Object result; |
| 3014 | 3014 | ||
| 3015 | CHECK_STRING (string, 0); | 3015 | CHECK_STRING (string); |
| 3016 | 3016 | ||
| 3017 | geometry = XParseGeometry ((char *) XSTRING (string)->data, | 3017 | geometry = XParseGeometry ((char *) XSTRING (string)->data, |
| 3018 | &x, &y, &width, &height); | 3018 | &x, &y, &width, &height); |
| @@ -3091,12 +3091,12 @@ x_figure_window_size (f, parms) | |||
| 3091 | { | 3091 | { |
| 3092 | if (!EQ (tem0, Qunbound)) | 3092 | if (!EQ (tem0, Qunbound)) |
| 3093 | { | 3093 | { |
| 3094 | CHECK_NUMBER (tem0, 0); | 3094 | CHECK_NUMBER (tem0); |
| 3095 | f->height = XINT (tem0); | 3095 | f->height = XINT (tem0); |
| 3096 | } | 3096 | } |
| 3097 | if (!EQ (tem1, Qunbound)) | 3097 | if (!EQ (tem1, Qunbound)) |
| 3098 | { | 3098 | { |
| 3099 | CHECK_NUMBER (tem1, 0); | 3099 | CHECK_NUMBER (tem1); |
| 3100 | SET_FRAME_WIDTH (f, XINT (tem1)); | 3100 | SET_FRAME_WIDTH (f, XINT (tem1)); |
| 3101 | } | 3101 | } |
| 3102 | if (!NILP (tem2) && !EQ (tem2, Qunbound)) | 3102 | if (!NILP (tem2) && !EQ (tem2, Qunbound)) |
| @@ -3141,7 +3141,7 @@ x_figure_window_size (f, parms) | |||
| 3141 | f->output_data.x->top_pos = 0; | 3141 | f->output_data.x->top_pos = 0; |
| 3142 | else | 3142 | else |
| 3143 | { | 3143 | { |
| 3144 | CHECK_NUMBER (tem0, 0); | 3144 | CHECK_NUMBER (tem0); |
| 3145 | f->output_data.x->top_pos = XINT (tem0); | 3145 | f->output_data.x->top_pos = XINT (tem0); |
| 3146 | if (f->output_data.x->top_pos < 0) | 3146 | if (f->output_data.x->top_pos < 0) |
| 3147 | window_prompting |= YNegative; | 3147 | window_prompting |= YNegative; |
| @@ -3169,7 +3169,7 @@ x_figure_window_size (f, parms) | |||
| 3169 | f->output_data.x->left_pos = 0; | 3169 | f->output_data.x->left_pos = 0; |
| 3170 | else | 3170 | else |
| 3171 | { | 3171 | { |
| 3172 | CHECK_NUMBER (tem1, 0); | 3172 | CHECK_NUMBER (tem1); |
| 3173 | f->output_data.x->left_pos = XINT (tem1); | 3173 | f->output_data.x->left_pos = XINT (tem1); |
| 3174 | if (f->output_data.x->left_pos < 0) | 3174 | if (f->output_data.x->left_pos < 0) |
| 3175 | window_prompting |= XNegative; | 3175 | window_prompting |= XNegative; |
| @@ -3922,8 +3922,8 @@ x_icon (f, parms) | |||
| 3922 | icon_y = x_get_and_record_arg (f, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); | 3922 | icon_y = x_get_and_record_arg (f, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); |
| 3923 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) | 3923 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) |
| 3924 | { | 3924 | { |
| 3925 | CHECK_NUMBER (icon_x, 0); | 3925 | CHECK_NUMBER (icon_x); |
| 3926 | CHECK_NUMBER (icon_y, 0); | 3926 | CHECK_NUMBER (icon_y); |
| 3927 | } | 3927 | } |
| 3928 | else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound)) | 3928 | else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound)) |
| 3929 | error ("Both left and top icon corners of icon must be specified"); | 3929 | error ("Both left and top icon corners of icon must be specified"); |
| @@ -4147,7 +4147,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4147 | if (EQ (parent, Qunbound)) | 4147 | if (EQ (parent, Qunbound)) |
| 4148 | parent = Qnil; | 4148 | parent = Qnil; |
| 4149 | if (! NILP (parent)) | 4149 | if (! NILP (parent)) |
| 4150 | CHECK_NUMBER (parent, 0); | 4150 | CHECK_NUMBER (parent); |
| 4151 | 4151 | ||
| 4152 | /* make_frame_without_minibuffer can run Lisp code and garbage collect. */ | 4152 | /* make_frame_without_minibuffer can run Lisp code and garbage collect. */ |
| 4153 | /* No need to protect DISPLAY because that's not used after passing | 4153 | /* No need to protect DISPLAY because that's not used after passing |
| @@ -4583,7 +4583,7 @@ DEFUN ("xw-color-defined-p", Fxw_color_defined_p, Sxw_color_defined_p, 1, 2, 0, | |||
| 4583 | XColor foo; | 4583 | XColor foo; |
| 4584 | FRAME_PTR f = check_x_frame (frame); | 4584 | FRAME_PTR f = check_x_frame (frame); |
| 4585 | 4585 | ||
| 4586 | CHECK_STRING (color, 1); | 4586 | CHECK_STRING (color); |
| 4587 | 4587 | ||
| 4588 | if (x_defined_color (f, XSTRING (color)->data, &foo, 0)) | 4588 | if (x_defined_color (f, XSTRING (color)->data, &foo, 0)) |
| 4589 | return Qt; | 4589 | return Qt; |
| @@ -4599,7 +4599,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | |||
| 4599 | XColor foo; | 4599 | XColor foo; |
| 4600 | FRAME_PTR f = check_x_frame (frame); | 4600 | FRAME_PTR f = check_x_frame (frame); |
| 4601 | 4601 | ||
| 4602 | CHECK_STRING (color, 1); | 4602 | CHECK_STRING (color); |
| 4603 | 4603 | ||
| 4604 | if (x_defined_color (f, XSTRING (color)->data, &foo, 0)) | 4604 | if (x_defined_color (f, XSTRING (color)->data, &foo, 0)) |
| 4605 | { | 4605 | { |
| @@ -5079,7 +5079,7 @@ x_display_info_for_name (name) | |||
| 5079 | Lisp_Object names; | 5079 | Lisp_Object names; |
| 5080 | struct x_display_info *dpyinfo; | 5080 | struct x_display_info *dpyinfo; |
| 5081 | 5081 | ||
| 5082 | CHECK_STRING (name, 0); | 5082 | CHECK_STRING (name); |
| 5083 | 5083 | ||
| 5084 | if (! EQ (Vwindow_system, intern ("x"))) | 5084 | if (! EQ (Vwindow_system, intern ("x"))) |
| 5085 | error ("Not using X Windows"); | 5085 | error ("Not using X Windows"); |
| @@ -5125,9 +5125,9 @@ terminate Emacs if we can't open the connection. */) | |||
| 5125 | unsigned char *xrm_option; | 5125 | unsigned char *xrm_option; |
| 5126 | struct x_display_info *dpyinfo; | 5126 | struct x_display_info *dpyinfo; |
| 5127 | 5127 | ||
| 5128 | CHECK_STRING (display, 0); | 5128 | CHECK_STRING (display); |
| 5129 | if (! NILP (xrm_string)) | 5129 | if (! NILP (xrm_string)) |
| 5130 | CHECK_STRING (xrm_string, 1); | 5130 | CHECK_STRING (xrm_string); |
| 5131 | 5131 | ||
| 5132 | if (! EQ (Vwindow_system, intern ("x"))) | 5132 | if (! EQ (Vwindow_system, intern ("x"))) |
| 5133 | error ("Not using X Windows"); | 5133 | error ("Not using X Windows"); |
| @@ -10409,8 +10409,8 @@ selected frame. Value is VALUE. */) | |||
| 10409 | struct frame *f = check_x_frame (frame); | 10409 | struct frame *f = check_x_frame (frame); |
| 10410 | Atom prop_atom; | 10410 | Atom prop_atom; |
| 10411 | 10411 | ||
| 10412 | CHECK_STRING (prop, 1); | 10412 | CHECK_STRING (prop); |
| 10413 | CHECK_STRING (value, 2); | 10413 | CHECK_STRING (value); |
| 10414 | 10414 | ||
| 10415 | BLOCK_INPUT; | 10415 | BLOCK_INPUT; |
| 10416 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), XSTRING (prop)->data, False); | 10416 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), XSTRING (prop)->data, False); |
| @@ -10436,7 +10436,7 @@ FRAME nil or omitted means use the selected frame. Value is PROP. */) | |||
| 10436 | struct frame *f = check_x_frame (frame); | 10436 | struct frame *f = check_x_frame (frame); |
| 10437 | Atom prop_atom; | 10437 | Atom prop_atom; |
| 10438 | 10438 | ||
| 10439 | CHECK_STRING (prop, 1); | 10439 | CHECK_STRING (prop); |
| 10440 | BLOCK_INPUT; | 10440 | BLOCK_INPUT; |
| 10441 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), XSTRING (prop)->data, False); | 10441 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), XSTRING (prop)->data, False); |
| 10442 | XDeleteProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), prop_atom); | 10442 | XDeleteProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), prop_atom); |
| @@ -10467,7 +10467,7 @@ value. */) | |||
| 10467 | int actual_format; | 10467 | int actual_format; |
| 10468 | unsigned long actual_size, bytes_remaining; | 10468 | unsigned long actual_size, bytes_remaining; |
| 10469 | 10469 | ||
| 10470 | CHECK_STRING (prop, 1); | 10470 | CHECK_STRING (prop); |
| 10471 | BLOCK_INPUT; | 10471 | BLOCK_INPUT; |
| 10472 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), XSTRING (prop)->data, False); | 10472 | prop_atom = XInternAtom (FRAME_X_DISPLAY (f), XSTRING (prop)->data, False); |
| 10473 | rc = XGetWindowProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | 10473 | rc = XGetWindowProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
| @@ -11132,22 +11132,22 @@ Text larger than the specified size is clipped. */) | |||
| 11132 | 11132 | ||
| 11133 | GCPRO4 (string, parms, frame, timeout); | 11133 | GCPRO4 (string, parms, frame, timeout); |
| 11134 | 11134 | ||
| 11135 | CHECK_STRING (string, 0); | 11135 | CHECK_STRING (string); |
| 11136 | f = check_x_frame (frame); | 11136 | f = check_x_frame (frame); |
| 11137 | if (NILP (timeout)) | 11137 | if (NILP (timeout)) |
| 11138 | timeout = make_number (5); | 11138 | timeout = make_number (5); |
| 11139 | else | 11139 | else |
| 11140 | CHECK_NATNUM (timeout, 2); | 11140 | CHECK_NATNUM (timeout); |
| 11141 | 11141 | ||
| 11142 | if (NILP (dx)) | 11142 | if (NILP (dx)) |
| 11143 | dx = make_number (5); | 11143 | dx = make_number (5); |
| 11144 | else | 11144 | else |
| 11145 | CHECK_NUMBER (dx, 5); | 11145 | CHECK_NUMBER (dx); |
| 11146 | 11146 | ||
| 11147 | if (NILP (dy)) | 11147 | if (NILP (dy)) |
| 11148 | dy = make_number (-10); | 11148 | dy = make_number (-10); |
| 11149 | else | 11149 | else |
| 11150 | CHECK_NUMBER (dy, 6); | 11150 | CHECK_NUMBER (dy); |
| 11151 | 11151 | ||
| 11152 | if (NILP (last_show_tip_args)) | 11152 | if (NILP (last_show_tip_args)) |
| 11153 | last_show_tip_args = Fmake_vector (make_number (3), Qnil); | 11153 | last_show_tip_args = Fmake_vector (make_number (3), Qnil); |
| @@ -11412,8 +11412,8 @@ selection dialog's entry field, if MUSTMATCH is non-nil. */) | |||
| 11412 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 11412 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 11413 | 11413 | ||
| 11414 | GCPRO5 (prompt, dir, default_filename, mustmatch, file); | 11414 | GCPRO5 (prompt, dir, default_filename, mustmatch, file); |
| 11415 | CHECK_STRING (prompt, 0); | 11415 | CHECK_STRING (prompt); |
| 11416 | CHECK_STRING (dir, 1); | 11416 | CHECK_STRING (dir); |
| 11417 | 11417 | ||
| 11418 | /* Prevent redisplay. */ | 11418 | /* Prevent redisplay. */ |
| 11419 | specbind (Qinhibit_redisplay, Qt); | 11419 | specbind (Qinhibit_redisplay, Qt); |
diff --git a/src/xmenu.c b/src/xmenu.c index e974dfe312c..4461b8aa538 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -619,10 +619,10 @@ list_of_panes (menu) | |||
| 619 | Lisp_Object elt, pane_name, pane_data; | 619 | Lisp_Object elt, pane_name, pane_data; |
| 620 | elt = Fcar (tail); | 620 | elt = Fcar (tail); |
| 621 | pane_name = Fcar (elt); | 621 | pane_name = Fcar (elt); |
| 622 | CHECK_STRING (pane_name, 0); | 622 | CHECK_STRING (pane_name); |
| 623 | push_menu_pane (pane_name, Qnil); | 623 | push_menu_pane (pane_name, Qnil); |
| 624 | pane_data = Fcdr (elt); | 624 | pane_data = Fcdr (elt); |
| 625 | CHECK_CONS (pane_data, 0); | 625 | CHECK_CONS (pane_data); |
| 626 | list_of_items (pane_data); | 626 | list_of_items (pane_data); |
| 627 | } | 627 | } |
| 628 | 628 | ||
| @@ -646,9 +646,9 @@ list_of_items (pane) | |||
| 646 | push_left_right_boundary (); | 646 | push_left_right_boundary (); |
| 647 | else | 647 | else |
| 648 | { | 648 | { |
| 649 | CHECK_CONS (item, 0); | 649 | CHECK_CONS (item); |
| 650 | item1 = Fcar (item); | 650 | item1 = Fcar (item); |
| 651 | CHECK_STRING (item1, 1); | 651 | CHECK_STRING (item1); |
| 652 | push_menu_item (item1, Qt, Fcdr (item), Qt, Qnil, Qnil, Qnil, Qnil); | 652 | push_menu_item (item1, Qt, Fcdr (item), Qt, Qnil, Qnil, Qnil, Qnil); |
| 653 | } | 653 | } |
| 654 | } | 654 | } |
| @@ -750,8 +750,8 @@ cached information about equivalent key sequences. */) | |||
| 750 | } | 750 | } |
| 751 | } | 751 | } |
| 752 | 752 | ||
| 753 | CHECK_NUMBER (x, 0); | 753 | CHECK_NUMBER (x); |
| 754 | CHECK_NUMBER (y, 0); | 754 | CHECK_NUMBER (y); |
| 755 | 755 | ||
| 756 | /* Decode where to put the menu. */ | 756 | /* Decode where to put the menu. */ |
| 757 | 757 | ||
| @@ -763,7 +763,7 @@ cached information about equivalent key sequences. */) | |||
| 763 | } | 763 | } |
| 764 | else if (WINDOWP (window)) | 764 | else if (WINDOWP (window)) |
| 765 | { | 765 | { |
| 766 | CHECK_LIVE_WINDOW (window, 0); | 766 | CHECK_LIVE_WINDOW (window); |
| 767 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); | 767 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); |
| 768 | 768 | ||
| 769 | xpos = (FONT_WIDTH (FRAME_FONT (f)) | 769 | xpos = (FONT_WIDTH (FRAME_FONT (f)) |
| @@ -774,7 +774,7 @@ cached information about equivalent key sequences. */) | |||
| 774 | else | 774 | else |
| 775 | /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, | 775 | /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, |
| 776 | but I don't want to make one now. */ | 776 | but I don't want to make one now. */ |
| 777 | CHECK_WINDOW (window, 0); | 777 | CHECK_WINDOW (window); |
| 778 | 778 | ||
| 779 | xpos += XINT (x); | 779 | xpos += XINT (x); |
| 780 | ypos += XINT (y); | 780 | ypos += XINT (y); |
| @@ -846,7 +846,7 @@ cached information about equivalent key sequences. */) | |||
| 846 | { | 846 | { |
| 847 | /* We were given an old-fashioned menu. */ | 847 | /* We were given an old-fashioned menu. */ |
| 848 | title = Fcar (menu); | 848 | title = Fcar (menu); |
| 849 | CHECK_STRING (title, 1); | 849 | CHECK_STRING (title); |
| 850 | 850 | ||
| 851 | list_of_panes (Fcdr (menu)); | 851 | list_of_panes (Fcdr (menu)); |
| 852 | 852 | ||
| @@ -948,13 +948,13 @@ on the left of the dialog box and all following items on the right. | |||
| 948 | f = XFRAME (window); | 948 | f = XFRAME (window); |
| 949 | else if (WINDOWP (window)) | 949 | else if (WINDOWP (window)) |
| 950 | { | 950 | { |
| 951 | CHECK_LIVE_WINDOW (window, 0); | 951 | CHECK_LIVE_WINDOW (window); |
| 952 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); | 952 | f = XFRAME (WINDOW_FRAME (XWINDOW (window))); |
| 953 | } | 953 | } |
| 954 | else | 954 | else |
| 955 | /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, | 955 | /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME, |
| 956 | but I don't want to make one now. */ | 956 | but I don't want to make one now. */ |
| 957 | CHECK_WINDOW (window, 0); | 957 | CHECK_WINDOW (window); |
| 958 | 958 | ||
| 959 | #ifndef USE_X_TOOLKIT | 959 | #ifndef USE_X_TOOLKIT |
| 960 | /* Display a menu with these alternatives | 960 | /* Display a menu with these alternatives |
| @@ -977,7 +977,7 @@ on the left of the dialog box and all following items on the right. | |||
| 977 | 977 | ||
| 978 | /* Decode the dialog items from what was specified. */ | 978 | /* Decode the dialog items from what was specified. */ |
| 979 | title = Fcar (contents); | 979 | title = Fcar (contents); |
| 980 | CHECK_STRING (title, 1); | 980 | CHECK_STRING (title); |
| 981 | 981 | ||
| 982 | list_of_panes (Fcons (contents, Qnil)); | 982 | list_of_panes (Fcons (contents, Qnil)); |
| 983 | 983 | ||
diff --git a/src/xselect.c b/src/xselect.c index f2c1aa0a3e2..cc4eeed966e 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -304,7 +304,7 @@ x_own_selection (selection_name, selection_value) | |||
| 304 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (sf); | 304 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (sf); |
| 305 | int count; | 305 | int count; |
| 306 | 306 | ||
| 307 | CHECK_SYMBOL (selection_name, 0); | 307 | CHECK_SYMBOL (selection_name); |
| 308 | selection_atom = symbol_to_x_atom (dpyinfo, display, selection_name); | 308 | selection_atom = symbol_to_x_atom (dpyinfo, display, selection_name); |
| 309 | 309 | ||
| 310 | BLOCK_INPUT; | 310 | BLOCK_INPUT; |
| @@ -415,7 +415,7 @@ x_get_local_selection (selection_symbol, target_type) | |||
| 415 | count = specpdl_ptr - specpdl; | 415 | count = specpdl_ptr - specpdl; |
| 416 | specbind (Qinhibit_quit, Qt); | 416 | specbind (Qinhibit_quit, Qt); |
| 417 | 417 | ||
| 418 | CHECK_SYMBOL (target_type, 0); | 418 | CHECK_SYMBOL (target_type); |
| 419 | handler_fn = Fcdr (Fassq (target_type, Vselection_converter_alist)); | 419 | handler_fn = Fcdr (Fassq (target_type, Vselection_converter_alist)); |
| 420 | if (!NILP (handler_fn)) | 420 | if (!NILP (handler_fn)) |
| 421 | value = call3 (handler_fn, | 421 | value = call3 (handler_fn, |
| @@ -1173,12 +1173,12 @@ copy_multiple_data (obj) | |||
| 1173 | if (CONSP (obj)) | 1173 | if (CONSP (obj)) |
| 1174 | return Fcons (XCAR (obj), copy_multiple_data (XCDR (obj))); | 1174 | return Fcons (XCAR (obj), copy_multiple_data (XCDR (obj))); |
| 1175 | 1175 | ||
| 1176 | CHECK_VECTOR (obj, 0); | 1176 | CHECK_VECTOR (obj); |
| 1177 | vec = Fmake_vector (size = XVECTOR (obj)->size, Qnil); | 1177 | vec = Fmake_vector (size = XVECTOR (obj)->size, Qnil); |
| 1178 | for (i = 0; i < size; i++) | 1178 | for (i = 0; i < size; i++) |
| 1179 | { | 1179 | { |
| 1180 | Lisp_Object vec2 = XVECTOR (obj)->contents [i]; | 1180 | Lisp_Object vec2 = XVECTOR (obj)->contents [i]; |
| 1181 | CHECK_VECTOR (vec2, 0); | 1181 | CHECK_VECTOR (vec2); |
| 1182 | if (XVECTOR (vec2)->size != 2) | 1182 | if (XVECTOR (vec2)->size != 2) |
| 1183 | /* ??? Confusing error message */ | 1183 | /* ??? Confusing error message */ |
| 1184 | Fsignal (Qerror, Fcons (build_string ("vectors must be of length 2"), | 1184 | Fsignal (Qerror, Fcons (build_string ("vectors must be of length 2"), |
| @@ -1958,7 +1958,7 @@ anything that the functions on `selection-converter-alist' know about. */) | |||
| 1958 | Lisp_Object selection_name, selection_value; | 1958 | Lisp_Object selection_name, selection_value; |
| 1959 | { | 1959 | { |
| 1960 | check_x (); | 1960 | check_x (); |
| 1961 | CHECK_SYMBOL (selection_name, 0); | 1961 | CHECK_SYMBOL (selection_name); |
| 1962 | if (NILP (selection_value)) error ("selection-value may not be nil"); | 1962 | if (NILP (selection_value)) error ("selection-value may not be nil"); |
| 1963 | x_own_selection (selection_name, selection_value); | 1963 | x_own_selection (selection_name, selection_value); |
| 1964 | return selection_value; | 1964 | return selection_value; |
| @@ -1982,19 +1982,19 @@ TYPE is the type of data desired, typically `STRING'. */) | |||
| 1982 | struct gcpro gcpro1, gcpro2; | 1982 | struct gcpro gcpro1, gcpro2; |
| 1983 | GCPRO2 (target_type, val); /* we store newly consed data into these */ | 1983 | GCPRO2 (target_type, val); /* we store newly consed data into these */ |
| 1984 | check_x (); | 1984 | check_x (); |
| 1985 | CHECK_SYMBOL (selection_symbol, 0); | 1985 | CHECK_SYMBOL (selection_symbol); |
| 1986 | 1986 | ||
| 1987 | #if 0 /* #### MULTIPLE doesn't work yet */ | 1987 | #if 0 /* #### MULTIPLE doesn't work yet */ |
| 1988 | if (CONSP (target_type) | 1988 | if (CONSP (target_type) |
| 1989 | && XCAR (target_type) == QMULTIPLE) | 1989 | && XCAR (target_type) == QMULTIPLE) |
| 1990 | { | 1990 | { |
| 1991 | CHECK_VECTOR (XCDR (target_type), 0); | 1991 | CHECK_VECTOR (XCDR (target_type)); |
| 1992 | /* So we don't destructively modify this... */ | 1992 | /* So we don't destructively modify this... */ |
| 1993 | target_type = copy_multiple_data (target_type); | 1993 | target_type = copy_multiple_data (target_type); |
| 1994 | } | 1994 | } |
| 1995 | else | 1995 | else |
| 1996 | #endif | 1996 | #endif |
| 1997 | CHECK_SYMBOL (target_type, 0); | 1997 | CHECK_SYMBOL (target_type); |
| 1998 | 1998 | ||
| 1999 | val = x_get_local_selection (selection_symbol, target_type); | 1999 | val = x_get_local_selection (selection_symbol, target_type); |
| 2000 | 2000 | ||
| @@ -2035,7 +2035,7 @@ Disowning it means there is no such selection. */) | |||
| 2035 | check_x (); | 2035 | check_x (); |
| 2036 | display = FRAME_X_DISPLAY (sf); | 2036 | display = FRAME_X_DISPLAY (sf); |
| 2037 | dpyinfo = FRAME_X_DISPLAY_INFO (sf); | 2037 | dpyinfo = FRAME_X_DISPLAY_INFO (sf); |
| 2038 | CHECK_SYMBOL (selection, 0); | 2038 | CHECK_SYMBOL (selection); |
| 2039 | if (NILP (time)) | 2039 | if (NILP (time)) |
| 2040 | timestamp = last_event_timestamp; | 2040 | timestamp = last_event_timestamp; |
| 2041 | else | 2041 | else |
| @@ -2096,7 +2096,7 @@ and t is the same as `SECONDARY'. */) | |||
| 2096 | Lisp_Object selection; | 2096 | Lisp_Object selection; |
| 2097 | { | 2097 | { |
| 2098 | check_x (); | 2098 | check_x (); |
| 2099 | CHECK_SYMBOL (selection, 0); | 2099 | CHECK_SYMBOL (selection); |
| 2100 | if (EQ (selection, Qnil)) selection = QPRIMARY; | 2100 | if (EQ (selection, Qnil)) selection = QPRIMARY; |
| 2101 | if (EQ (selection, Qt)) selection = QSECONDARY; | 2101 | if (EQ (selection, Qt)) selection = QSECONDARY; |
| 2102 | 2102 | ||
| @@ -2126,7 +2126,7 @@ and t is the same as `SECONDARY'. */) | |||
| 2126 | return Qnil; | 2126 | return Qnil; |
| 2127 | 2127 | ||
| 2128 | dpy = FRAME_X_DISPLAY (sf); | 2128 | dpy = FRAME_X_DISPLAY (sf); |
| 2129 | CHECK_SYMBOL (selection, 0); | 2129 | CHECK_SYMBOL (selection); |
| 2130 | if (!NILP (Fx_selection_owner_p (selection))) | 2130 | if (!NILP (Fx_selection_owner_p (selection))) |
| 2131 | return Qt; | 2131 | return Qt; |
| 2132 | if (EQ (selection, Qnil)) selection = QPRIMARY; | 2132 | if (EQ (selection, Qnil)) selection = QPRIMARY; |
| @@ -2166,8 +2166,8 @@ initialize_cut_buffers (display, window) | |||
| 2166 | } | 2166 | } |
| 2167 | 2167 | ||
| 2168 | 2168 | ||
| 2169 | #define CHECK_CUT_BUFFER(symbol,n) \ | 2169 | #define CHECK_CUT_BUFFER(symbol) \ |
| 2170 | { CHECK_SYMBOL ((symbol), (n)); \ | 2170 | { CHECK_SYMBOL ((symbol)); \ |
| 2171 | if (!EQ((symbol), QCUT_BUFFER0) && !EQ((symbol), QCUT_BUFFER1) \ | 2171 | if (!EQ((symbol), QCUT_BUFFER0) && !EQ((symbol), QCUT_BUFFER1) \ |
| 2172 | && !EQ((symbol), QCUT_BUFFER2) && !EQ((symbol), QCUT_BUFFER3) \ | 2172 | && !EQ((symbol), QCUT_BUFFER2) && !EQ((symbol), QCUT_BUFFER3) \ |
| 2173 | && !EQ((symbol), QCUT_BUFFER4) && !EQ((symbol), QCUT_BUFFER5) \ | 2173 | && !EQ((symbol), QCUT_BUFFER4) && !EQ((symbol), QCUT_BUFFER5) \ |
| @@ -2199,7 +2199,7 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal, | |||
| 2199 | display = FRAME_X_DISPLAY (sf); | 2199 | display = FRAME_X_DISPLAY (sf); |
| 2200 | dpyinfo = FRAME_X_DISPLAY_INFO (sf); | 2200 | dpyinfo = FRAME_X_DISPLAY_INFO (sf); |
| 2201 | window = RootWindow (display, 0); /* Cut buffers are on screen 0 */ | 2201 | window = RootWindow (display, 0); /* Cut buffers are on screen 0 */ |
| 2202 | CHECK_CUT_BUFFER (buffer, 0); | 2202 | CHECK_CUT_BUFFER (buffer); |
| 2203 | buffer_atom = symbol_to_x_atom (dpyinfo, display, buffer); | 2203 | buffer_atom = symbol_to_x_atom (dpyinfo, display, buffer); |
| 2204 | 2204 | ||
| 2205 | x_get_window_property (display, window, buffer_atom, &data, &bytes, | 2205 | x_get_window_property (display, window, buffer_atom, &data, &bytes, |
| @@ -2244,8 +2244,8 @@ DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal, | |||
| 2244 | if (max_bytes > MAX_SELECTION_QUANTUM) | 2244 | if (max_bytes > MAX_SELECTION_QUANTUM) |
| 2245 | max_bytes = MAX_SELECTION_QUANTUM; | 2245 | max_bytes = MAX_SELECTION_QUANTUM; |
| 2246 | 2246 | ||
| 2247 | CHECK_CUT_BUFFER (buffer, 0); | 2247 | CHECK_CUT_BUFFER (buffer); |
| 2248 | CHECK_STRING (string, 0); | 2248 | CHECK_STRING (string); |
| 2249 | buffer_atom = symbol_to_x_atom (FRAME_X_DISPLAY_INFO (sf), | 2249 | buffer_atom = symbol_to_x_atom (FRAME_X_DISPLAY_INFO (sf), |
| 2250 | display, buffer); | 2250 | display, buffer); |
| 2251 | data = (unsigned char *) XSTRING (string)->data; | 2251 | data = (unsigned char *) XSTRING (string)->data; |
| @@ -2297,7 +2297,7 @@ Positive means shift the values forward, negative means backward. */) | |||
| 2297 | check_x (); | 2297 | check_x (); |
| 2298 | display = FRAME_X_DISPLAY (sf); | 2298 | display = FRAME_X_DISPLAY (sf); |
| 2299 | window = RootWindow (display, 0); /* Cut buffers are on screen 0 */ | 2299 | window = RootWindow (display, 0); /* Cut buffers are on screen 0 */ |
| 2300 | CHECK_NUMBER (n, 0); | 2300 | CHECK_NUMBER (n); |
| 2301 | if (XINT (n) == 0) | 2301 | if (XINT (n) == 0) |
| 2302 | return n; | 2302 | return n; |
| 2303 | if (! FRAME_X_DISPLAY_INFO (sf)->cut_buffers_initialized) | 2303 | if (! FRAME_X_DISPLAY_INFO (sf)->cut_buffers_initialized) |