diff options
| author | Miles Bader | 2007-10-12 21:06:27 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-10-12 21:06:27 +0000 |
| commit | 985773c9038f9847f9e7362f3b5fb0c8acac13a2 (patch) | |
| tree | 12d10cb76729ccbdc5ace4688d15f83894a70cc9 /src/chartab.c | |
| parent | 47632e43ca42e26da139289f1e0f4f69e8c140fd (diff) | |
| download | emacs-985773c9038f9847f9e7362f3b5fb0c8acac13a2.tar.gz emacs-985773c9038f9847f9e7362f3b5fb0c8acac13a2.zip | |
Fix up multi-tty merge
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-261
Creator: Stefan Monnier <monnier@iro.umontreal.ca>
Diffstat (limited to 'src/chartab.c')
| -rw-r--r-- | src/chartab.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chartab.c b/src/chartab.c index 021b163618d..5306e22cefc 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -7,7 +7,7 @@ This file is part of GNU Emacs. | |||
| 7 | 7 | ||
| 8 | GNU Emacs is free software; you can redistribute it and/or modify | 8 | GNU Emacs is free software; you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by | 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation; either version 2, or (at your option) | 10 | the Free Software Foundation; either version 3, or (at your option) |
| 11 | any later version. | 11 | any later version. |
| 12 | 12 | ||
| 13 | GNU Emacs is distributed in the hope that it will be useful, | 13 | GNU Emacs is distributed in the hope that it will be useful, |
| @@ -85,6 +85,7 @@ the char-table has no extra slot. */) | |||
| 85 | 85 | ||
| 86 | size = VECSIZE (struct Lisp_Char_Table) - 1 + n_extras; | 86 | size = VECSIZE (struct Lisp_Char_Table) - 1 + n_extras; |
| 87 | vector = Fmake_vector (make_number (size), init); | 87 | vector = Fmake_vector (make_number (size), init); |
| 88 | XSETPVECTYPE (XVECTOR (vector), PVEC_CHAR_TABLE); | ||
| 88 | XCHAR_TABLE (vector)->parent = Qnil; | 89 | XCHAR_TABLE (vector)->parent = Qnil; |
| 89 | XCHAR_TABLE (vector)->purpose = purpose; | 90 | XCHAR_TABLE (vector)->purpose = purpose; |
| 90 | XSETCHAR_TABLE (vector, XCHAR_TABLE (vector)); | 91 | XSETCHAR_TABLE (vector, XCHAR_TABLE (vector)); |
| @@ -100,6 +101,7 @@ make_sub_char_table (depth, min_char, defalt) | |||
| 100 | int size = VECSIZE (struct Lisp_Sub_Char_Table) - 1 + chartab_size[depth]; | 101 | int size = VECSIZE (struct Lisp_Sub_Char_Table) - 1 + chartab_size[depth]; |
| 101 | 102 | ||
| 102 | table = Fmake_vector (make_number (size), defalt); | 103 | table = Fmake_vector (make_number (size), defalt); |
| 104 | XSETPVECTYPE (XVECTOR (table), PVEC_SUB_CHAR_TABLE); | ||
| 103 | XSUB_CHAR_TABLE (table)->depth = make_number (depth); | 105 | XSUB_CHAR_TABLE (table)->depth = make_number (depth); |
| 104 | XSUB_CHAR_TABLE (table)->min_char = make_number (min_char); | 106 | XSUB_CHAR_TABLE (table)->min_char = make_number (min_char); |
| 105 | XSETSUB_CHAR_TABLE (table, XSUB_CHAR_TABLE (table)); | 107 | XSETSUB_CHAR_TABLE (table, XSUB_CHAR_TABLE (table)); |
| @@ -156,6 +158,7 @@ copy_char_table (table) | |||
| 156 | int i; | 158 | int i; |
| 157 | 159 | ||
| 158 | copy = Fmake_vector (make_number (size), Qnil); | 160 | copy = Fmake_vector (make_number (size), Qnil); |
| 161 | XSETPVECTYPE (XVECTOR (copy), PVEC_CHAR_TABLE); | ||
| 159 | XCHAR_TABLE (copy)->defalt = XCHAR_TABLE (table)->defalt; | 162 | XCHAR_TABLE (copy)->defalt = XCHAR_TABLE (table)->defalt; |
| 160 | XCHAR_TABLE (copy)->parent = XCHAR_TABLE (table)->parent; | 163 | XCHAR_TABLE (copy)->parent = XCHAR_TABLE (table)->parent; |
| 161 | XCHAR_TABLE (copy)->purpose = XCHAR_TABLE (table)->purpose; | 164 | XCHAR_TABLE (copy)->purpose = XCHAR_TABLE (table)->purpose; |