diff options
| author | Kenichi Handa | 2005-04-20 07:50:08 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2005-04-20 07:50:08 +0000 |
| commit | 2a7a8e99f219091c36b205445d664d933c151142 (patch) | |
| tree | d3e808f86dd351849aeb96784a0136746a84de56 /src/alloc.c | |
| parent | 0ddfe52ffa602315c95ba8670987961b92469825 (diff) | |
| download | emacs-2a7a8e99f219091c36b205445d664d933c151142.tar.gz emacs-2a7a8e99f219091c36b205445d664d933c151142.zip | |
(make_sub_char_table): Argument changed to initial
value of the slots.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index f3af3940e15..fb352bd56d8 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3014,18 +3014,18 @@ The property's value should be an integer between 0 and 10. */) | |||
| 3014 | } | 3014 | } |
| 3015 | 3015 | ||
| 3016 | 3016 | ||
| 3017 | /* Return a newly created sub char table with default value DEFALT. | 3017 | /* Return a newly created sub char table with slots initialized by INIT. |
| 3018 | Since a sub char table does not appear as a top level Emacs Lisp | 3018 | Since a sub char table does not appear as a top level Emacs Lisp |
| 3019 | object, we don't need a Lisp interface to make it. */ | 3019 | object, we don't need a Lisp interface to make it. */ |
| 3020 | 3020 | ||
| 3021 | Lisp_Object | 3021 | Lisp_Object |
| 3022 | make_sub_char_table (defalt) | 3022 | make_sub_char_table (init) |
| 3023 | Lisp_Object defalt; | 3023 | Lisp_Object init; |
| 3024 | { | 3024 | { |
| 3025 | Lisp_Object vector | 3025 | Lisp_Object vector |
| 3026 | = Fmake_vector (make_number (SUB_CHAR_TABLE_STANDARD_SLOTS), Qnil); | 3026 | = Fmake_vector (make_number (SUB_CHAR_TABLE_STANDARD_SLOTS), init); |
| 3027 | XCHAR_TABLE (vector)->top = Qnil; | 3027 | XCHAR_TABLE (vector)->top = Qnil; |
| 3028 | XCHAR_TABLE (vector)->defalt = defalt; | 3028 | XCHAR_TABLE (vector)->defalt = Qnil; |
| 3029 | XSETCHAR_TABLE (vector, XCHAR_TABLE (vector)); | 3029 | XSETCHAR_TABLE (vector, XCHAR_TABLE (vector)); |
| 3030 | return vector; | 3030 | return vector; |
| 3031 | } | 3031 | } |