comparison src/charset.c @ 89544:36913565de8a

(syms_of_charset): Remove unused var p. (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for byte/char counts.
author Dave Love <fx@gnu.org>
date Mon, 29 Sep 2003 17:58:09 +0000
parents 2f877ed80fa6
children 320914f34a77
comparison
equal deleted inserted replaced
89543:a280c29e9b8d 89544:36913565de8a
1373 It may lookup a translation table TABLE if supplied. */ 1373 It may lookup a translation table TABLE if supplied. */
1374 1374
1375 static void 1375 static void
1376 find_charsets_in_text (ptr, nchars, nbytes, charsets, table) 1376 find_charsets_in_text (ptr, nchars, nbytes, charsets, table)
1377 const unsigned char *ptr; 1377 const unsigned char *ptr;
1378 int nchars, nbytes; 1378 EMACS_INT nchars, nbytes;
1379 Lisp_Object charsets, table; 1379 Lisp_Object charsets, table;
1380 { 1380 {
1381 const unsigned char *pend = ptr + nbytes; 1381 const unsigned char *pend = ptr + nbytes;
1382 int ncharsets = ASIZE (charsets); 1382 int ncharsets = ASIZE (charsets);
1383 1383
1422 only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) 1422 only `ascii', `eight-bit-control', and `eight-bit-graphic'. */)
1423 (beg, end, table) 1423 (beg, end, table)
1424 Lisp_Object beg, end, table; 1424 Lisp_Object beg, end, table;
1425 { 1425 {
1426 Lisp_Object charsets; 1426 Lisp_Object charsets;
1427 int from, from_byte, to, stop, stop_byte, i; 1427 EMACS_INT from, from_byte, to, stop, stop_byte;
1428 int i;
1428 Lisp_Object val; 1429 Lisp_Object val;
1429 1430
1430 validate_region (&beg, &end); 1431 validate_region (&beg, &end);
1431 from = XFASTINT (beg); 1432 from = XFASTINT (beg);
1432 stop = to = XFASTINT (end); 1433 stop = to = XFASTINT (end);
2071 #ifdef emacs 2072 #ifdef emacs
2072 2073
2073 void 2074 void
2074 syms_of_charset () 2075 syms_of_charset ()
2075 { 2076 {
2076 char *p;
2077
2078 DEFSYM (Qcharsetp, "charsetp"); 2077 DEFSYM (Qcharsetp, "charsetp");
2079 2078
2080 DEFSYM (Qascii, "ascii"); 2079 DEFSYM (Qascii, "ascii");
2081 DEFSYM (Qunicode, "unicode"); 2080 DEFSYM (Qunicode, "unicode");
2082 DEFSYM (Qeight_bit, "eight-bit"); 2081 DEFSYM (Qeight_bit, "eight-bit");
2083 DEFSYM (Qiso_8859_1, "iso-8859-1"); 2082 DEFSYM (Qiso_8859_1, "iso-8859-1");
2084 2083
2085 DEFSYM (Qgl, "gl"); 2084 DEFSYM (Qgl, "gl");
2086 DEFSYM (Qgr, "gr"); 2085 DEFSYM (Qgr, "gr");
2087
2088 p = (char *) xmalloc (30000);
2089 2086
2090 staticpro (&Vcharset_ordered_list); 2087 staticpro (&Vcharset_ordered_list);
2091 Vcharset_ordered_list = Qnil; 2088 Vcharset_ordered_list = Qnil;
2092 2089
2093 staticpro (&Viso_2022_charset_list); 2090 staticpro (&Viso_2022_charset_list);