comparison src/category.c @ 71829:8adcaaf366b4

(check_category_table): Use CHECK_TYPE.
author Kim F. Storm <storm@cua.dk>
date Wed, 12 Jul 2006 13:15:18 +0000
parents 3bd95f4f2941
children e74524ea3f55 8a8e69664178
comparison
equal deleted inserted replaced
71828:10b94d33e0d8 71829:8adcaaf366b4
162 162
163 Lisp_Object 163 Lisp_Object
164 check_category_table (table) 164 check_category_table (table)
165 Lisp_Object table; 165 Lisp_Object table;
166 { 166 {
167 register Lisp_Object tem;
168 if (NILP (table)) 167 if (NILP (table))
169 return current_buffer->category_table; 168 return current_buffer->category_table;
170 while (tem = Fcategory_table_p (table), NILP (tem)) 169 CHECK_TYPE (!NILP (Fcategory_table_p (table)), Qcategory_table_p, table);
171 table = wrong_type_argument (Qcategory_table_p, table);
172 return table; 170 return table;
173 } 171 }
174 172
175 DEFUN ("category-table", Fcategory_table, Scategory_table, 0, 0, 0, 173 DEFUN ("category-table", Fcategory_table, Scategory_table, 0, 0, 0,
176 doc: /* Return the current category table. 174 doc: /* Return the current category table.