X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/38dfbee187191f15de9e6a171eee8be5072db296..0766b489e1b34964bb43db221fe967d54ac5ec5e:/src/chartab.c diff --git a/src/chartab.c b/src/chartab.c index 2f0e88bd40..ed5b238646 100644 --- a/src/chartab.c +++ b/src/chartab.c @@ -54,7 +54,7 @@ static const int chartab_bits[4] = (((c) - (min_char)) >> chartab_bits[(depth)]) -DEFUE ("make-char-table", Fmake_char_table, Smake_char_table, 1, 2, 0, +DEFUN ("make-char-table", Fmake_char_table, Smake_char_table, 1, 2, 0, doc: /* Return a newly created char-table, with purpose PURPOSE. Each element is initialized to INIT, which defaults to nil. @@ -146,7 +146,7 @@ Lisp_Object copy_char_table (Lisp_Object table) { Lisp_Object copy; - int size = XCHAR_TABLE (table)->size & PSEUDOVECTOR_SIZE_MASK; + int size = XCHAR_TABLE (table)->header.size & PSEUDOVECTOR_SIZE_MASK; int i; copy = Fmake_vector (make_number (size), Qnil); @@ -459,7 +459,7 @@ then the actual applicable value is inherited from the parent char-table return XCHAR_TABLE (char_table)->parent; } -DEFUE ("set-char-table-parent", Fset_char_table_parent, Sset_char_table_parent, +DEFUN ("set-char-table-parent", Fset_char_table_parent, Sset_char_table_parent, 2, 2, 0, doc: /* Set the parent char-table of CHAR-TABLE to PARENT. Return PARENT. PARENT must be either nil or another char-table. */) @@ -483,7 +483,7 @@ Return PARENT. PARENT must be either nil or another char-table. */) return parent; } -DEFUE ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, +DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, 2, 2, 0, doc: /* Return the value of CHAR-TABLE's extra-slot number N. */) (Lisp_Object char_table, Lisp_Object n) @@ -497,7 +497,7 @@ DEFUE ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, return XCHAR_TABLE (char_table)->extras[XINT (n)]; } -DEFUE ("set-char-table-extra-slot", Fset_char_table_extra_slot, +DEFUN ("set-char-table-extra-slot", Fset_char_table_extra_slot, Sset_char_table_extra_slot, 3, 3, 0, doc: /* Set CHAR-TABLE's extra-slot number N to VALUE. */) @@ -524,15 +524,15 @@ a cons of character codes (for characters in the range), or a character code. * if (EQ (range, Qnil)) val = XCHAR_TABLE (char_table)->defalt; - else if (INTEGERP (range)) - val = CHAR_TABLE_REF (char_table, XINT (range)); + else if (CHARACTERP (range)) + val = CHAR_TABLE_REF (char_table, XFASTINT (range)); else if (CONSP (range)) { int from, to; CHECK_CHARACTER_CAR (range); CHECK_CHARACTER_CDR (range); - val = char_table_ref_and_range (char_table, XINT (XCAR (range)), + val = char_table_ref_and_range (char_table, XFASTINT (XCAR (range)), &from, &to); /* Not yet implemented. */ } @@ -541,7 +541,7 @@ a cons of character codes (for characters in the range), or a character code. * return val; } -DEFUE ("set-char-table-range", Fset_char_table_range, Sset_char_table_range, +DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range, 3, 3, 0, doc: /* Set the value in CHAR-TABLE for a range of characters RANGE to VALUE. RANGE should be t (for all characters), nil (for the default value), @@ -626,7 +626,7 @@ optimize_sub_char_table (Lisp_Object table, Lisp_Object test) return (optimizable ? elt : table); } -DEFUE ("optimize-char-table", Foptimize_char_table, Soptimize_char_table, +DEFUN ("optimize-char-table", Foptimize_char_table, Soptimize_char_table, 1, 2, 0, doc: /* Optimize CHAR-TABLE. TEST is the comparison function used to decide whether two entries are