aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-03-01 01:06:56 +0000
committerKenichi Handa2002-03-01 01:06:56 +0000
commit9d80e8839bb6086ae5b1bf430ea8a3720b4ea849 (patch)
tree4758a14e91566a58c99eb0c8b93924b5806fddab /src
parentd2f6dae878c774c9fb601f38aecefa4ce5fb92c3 (diff)
downloademacs-9d80e8839bb6086ae5b1bf430ea8a3720b4ea849.tar.gz
emacs-9d80e8839bb6086ae5b1bf430ea8a3720b4ea849.zip
Include "character.h" instead of "charset.h".
(Fmake_char_table): Moved to chartab.c. (make_sub_char_table): Likewise. (syms_of_alloc): Remove defsubr for Smake_char_table.
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c46
1 files changed, 1 insertions, 45 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 2592d71d22c..de1f11050bc 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -47,7 +47,7 @@ Boston, MA 02111-1307, USA. */
47#include "keyboard.h" 47#include "keyboard.h"
48#include "frame.h" 48#include "frame.h"
49#include "blockinput.h" 49#include "blockinput.h"
50#include "charset.h" 50#include "character.h"
51#include "syssignal.h" 51#include "syssignal.h"
52#include <setjmp.h> 52#include <setjmp.h>
53 53
@@ -2359,49 +2359,6 @@ See also the function `vector'. */)
2359} 2359}
2360 2360
2361 2361
2362DEFUN ("make-char-table", Fmake_char_table, Smake_char_table, 1, 2, 0,
2363 doc: /* Return a newly created char-table, with purpose PURPOSE.
2364Each element is initialized to INIT, which defaults to nil.
2365PURPOSE should be a symbol which has a `char-table-extra-slots' property.
2366The property's value should be an integer between 0 and 10. */)
2367 (purpose, init)
2368 register Lisp_Object purpose, init;
2369{
2370 Lisp_Object vector;
2371 Lisp_Object n;
2372 CHECK_SYMBOL (purpose);
2373 n = Fget (purpose, Qchar_table_extra_slots);
2374 CHECK_NUMBER (n);
2375 if (XINT (n) < 0 || XINT (n) > 10)
2376 args_out_of_range (n, Qnil);
2377 /* Add 2 to the size for the defalt and parent slots. */
2378 vector = Fmake_vector (make_number (CHAR_TABLE_STANDARD_SLOTS + XINT (n)),
2379 init);
2380 XCHAR_TABLE (vector)->top = Qt;
2381 XCHAR_TABLE (vector)->parent = Qnil;
2382 XCHAR_TABLE (vector)->purpose = purpose;
2383 XSETCHAR_TABLE (vector, XCHAR_TABLE (vector));
2384 return vector;
2385}
2386
2387
2388/* Return a newly created sub char table with default value DEFALT.
2389 Since a sub char table does not appear as a top level Emacs Lisp
2390 object, we don't need a Lisp interface to make it. */
2391
2392Lisp_Object
2393make_sub_char_table (defalt)
2394 Lisp_Object defalt;
2395{
2396 Lisp_Object vector
2397 = Fmake_vector (make_number (SUB_CHAR_TABLE_STANDARD_SLOTS), Qnil);
2398 XCHAR_TABLE (vector)->top = Qnil;
2399 XCHAR_TABLE (vector)->defalt = defalt;
2400 XSETCHAR_TABLE (vector, XCHAR_TABLE (vector));
2401 return vector;
2402}
2403
2404
2405DEFUN ("vector", Fvector, Svector, 0, MANY, 0, 2362DEFUN ("vector", Fvector, Svector, 0, MANY, 0,
2406 doc: /* Return a newly created vector with specified arguments as elements. 2363 doc: /* Return a newly created vector with specified arguments as elements.
2407Any number of arguments, even zero arguments, are allowed. 2364Any number of arguments, even zero arguments, are allowed.
@@ -5558,7 +5515,6 @@ which includes both saved text and other data. */);
5558 defsubr (&Smake_byte_code); 5515 defsubr (&Smake_byte_code);
5559 defsubr (&Smake_list); 5516 defsubr (&Smake_list);
5560 defsubr (&Smake_vector); 5517 defsubr (&Smake_vector);
5561 defsubr (&Smake_char_table);
5562 defsubr (&Smake_string); 5518 defsubr (&Smake_string);
5563 defsubr (&Smake_bool_vector); 5519 defsubr (&Smake_bool_vector);
5564 defsubr (&Smake_symbol); 5520 defsubr (&Smake_symbol);