aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2002-05-17 16:24:57 +0000
committerDave Love2002-05-17 16:24:57 +0000
commit04c2f2c57cda829a1635c955205e5d5b90a9610a (patch)
tree793dd224a4bad9b911d7d539c459ab9fd15c3246 /src
parent2a7f9cca1c5b15d43d3c103bf124f1aac0361846 (diff)
downloademacs-04c2f2c57cda829a1635c955205e5d5b90a9610a.tar.gz
emacs-04c2f2c57cda829a1635c955205e5d5b90a9610a.zip
(load_charset_map, load_charset_map_from_file): Remove
unused vars. (Fdefine_charset_internal, Fsplit_char, syms_of_charset) (Fmap_charset_chars): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/charset.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/charset.c b/src/charset.c
index 402db8b3f84..51fc28c588a 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -48,18 +48,18 @@ Boston, MA 02111-1307, USA. */
48#endif /* emacs */ 48#endif /* emacs */
49 49
50 50
51/*** GENERAL NOTE on CODED CHARACTER SET (CHARSET) *** 51/*** GENERAL NOTES on CODED CHARACTER SETS (CHARSETS) ***
52 52
53 A coded character set ("charset" hereafter) is a meaningful 53 A coded character set ("charset" hereafter) is a meaningful
54 collection (i.e. language, culture, functionality, etc) of 54 collection (i.e. language, culture, functionality, etc.) of
55 characters. Emacs handles multiple charsets at once. In Emacs Lisp 55 characters. Emacs handles multiple charsets at once. In Emacs Lisp
56 code, a charset is represented by symbol. In C code, a charset is 56 code, a charset is represented by a symbol. In C code, a charset is
57 represented by its ID number or by a pointer the struct charset. 57 represented by its ID number or by a pointer to a struct charset.
58 58
59 The actual information about each charset is stored in two places. 59 The actual information about each charset is stored in two places.
60 Lispy information is stored in the hash table Vcharset_hash_table as 60 Lispy information is stored in the hash table Vcharset_hash_table as
61 a vector (charset attributes). The other information is stored in 61 a vector (charset attributes). The other information is stored in
62 charset_table as struct charset. 62 charset_table as a struct charset.
63 63
64*/ 64*/
65 65
@@ -185,12 +185,10 @@ load_charset_map (charset, entries, n_entries, control_flag)
185 int control_flag; 185 int control_flag;
186{ 186{
187 Lisp_Object vec, table; 187 Lisp_Object vec, table;
188 unsigned min_code = CHARSET_MIN_CODE (charset);
189 unsigned max_code = CHARSET_MAX_CODE (charset); 188 unsigned max_code = CHARSET_MAX_CODE (charset);
190 int ascii_compatible_p = charset->ascii_compatible_p; 189 int ascii_compatible_p = charset->ascii_compatible_p;
191 int min_char, max_char, nonascii_min_char; 190 int min_char, max_char, nonascii_min_char;
192 int i; 191 int i;
193 int first;
194 unsigned char *fast_map = charset->fast_map; 192 unsigned char *fast_map = charset->fast_map;
195 193
196 if (n_entries <= 0) 194 if (n_entries <= 0)
@@ -215,7 +213,7 @@ load_charset_map (charset, entries, n_entries, control_flag)
215 for (i = 0; i < n_entries; i++) 213 for (i = 0; i < n_entries; i++)
216 { 214 {
217 unsigned from, to; 215 unsigned from, to;
218 int c, char_index; 216 int c;
219 int idx = i % 0x10000; 217 int idx = i % 0x10000;
220 218
221 if (i > 0 && idx == 0) 219 if (i > 0 && idx == 0)
@@ -385,7 +383,6 @@ load_charset_map_from_file (charset, mapfile, control_flag)
385 FILE *fp; 383 FILE *fp;
386 int eof; 384 int eof;
387 Lisp_Object suffixes; 385 Lisp_Object suffixes;
388 int i;
389 struct charset_map_entries *head, *entries; 386 struct charset_map_entries *head, *entries;
390 int n_entries; 387 int n_entries;
391 388
@@ -632,12 +629,13 @@ map_charset_chars (c_function, function, charset_symbol, arg)
632} 629}
633 630
634DEFUN ("map-charset-chars", Fmap_charset_chars, Smap_charset_chars, 2, 3, 0, 631DEFUN ("map-charset-chars", Fmap_charset_chars, Smap_charset_chars, 2, 3, 0,
635 doc: /* Call FUNCTION for each characters in CHARSET. 632 doc: /* Call FUNCTION for all characters in CHARSET.
636FUNCTION is called with an argument RANGE and the 2nd optional 633FUNCTION is called with an argument RANGE and optional 2nd
637argument ARG. 634argument ARG.
638 635
639RANGE is a cons (FROM . TO), where FROM and TO indicates a range of 636RANGE is either a cons (FROM . TO), where FROM and TO indicate a range of
640character sequence that are contained in CHARSET. */) 637characters contained in CHARSET or a single character in the case that
638FROM and TO would be equal. (The charset mapping may have gaps.)*/)
641 (function, charset, arg) 639 (function, charset, arg)
642 Lisp_Object function, charset, arg; 640 Lisp_Object function, charset, arg;
643{ 641{
@@ -653,7 +651,8 @@ character sequence that are contained in CHARSET. */)
653 651
654DEFUN ("define-charset-internal", Fdefine_charset_internal, 652DEFUN ("define-charset-internal", Fdefine_charset_internal,
655 Sdefine_charset_internal, charset_arg_max, MANY, 0, 653 Sdefine_charset_internal, charset_arg_max, MANY, 0,
656 doc: /* For internal use only. */) 654 doc: /* For internal use only.
655usage: (define-charset-internal ...) */)
657 (nargs, args) 656 (nargs, args)
658 int nargs; 657 int nargs;
659 Lisp_Object *args; 658 Lisp_Object *args;
@@ -1479,7 +1478,7 @@ DEFUN ("make-char", Fmake_char, Smake_char, 1, 5, 0,
1479 1478
1480CODE1 through CODE4 are optional, but if you don't supply sufficient 1479CODE1 through CODE4 are optional, but if you don't supply sufficient
1481position codes, it is assumed that the minimum code in each dimension 1480position codes, it is assumed that the minimum code in each dimension
1482are specified. */) 1481is specified. */)
1483 (charset, code1, code2, code3, code4) 1482 (charset, code1, code2, code3, code4)
1484 Lisp_Object charset, code1, code2, code3, code4; 1483 Lisp_Object charset, code1, code2, code3, code4;
1485{ 1484{
@@ -1583,7 +1582,7 @@ char_charset (c, charset_list, code_return)
1583 1582
1584 1583
1585DEFUN ("split-char", Fsplit_char, Ssplit_char, 1, 1, 0, 1584DEFUN ("split-char", Fsplit_char, Ssplit_char, 1, 1, 0,
1586 doc: /*Return list of charset and one or two position-codes of CHAR. 1585 doc: /*Return list of charset and one to three position-codes of CHAR.
1587If CHAR is invalid as a character code, 1586If CHAR is invalid as a character code,
1588return a list of symbol `unknown' and CHAR. */) 1587return a list of symbol `unknown' and CHAR. */)
1589 (ch) 1588 (ch)
@@ -1805,7 +1804,7 @@ syms_of_charset ()
1805 1804
1806 DEFVAR_LISP ("charset-map-directory", &Vcharset_map_directory, 1805 DEFVAR_LISP ("charset-map-directory", &Vcharset_map_directory,
1807 doc: /* Directory of charset map files that come with GNU Emacs. 1806 doc: /* Directory of charset map files that come with GNU Emacs.
1808The default value is \"\\[data-directory]/charsets\". */); 1807The default value is sub-directory "charsets" of `data-directory'. */);
1809 Vcharset_map_directory = Fexpand_file_name (build_string ("charsets"), 1808 Vcharset_map_directory = Fexpand_file_name (build_string ("charsets"),
1810 Vdata_directory); 1809 Vdata_directory);
1811 1810