# HG changeset patch # User Dave Love # Date 1064858289 0 # Node ID 36913565de8a911b3ca94ed0f9edaaa88be144b1 # Parent a280c29e9b8d9950388481822a42c30527e9cce5 (syms_of_charset): Remove unused var p. (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for byte/char counts. diff -r a280c29e9b8d -r 36913565de8a src/charset.c --- a/src/charset.c Mon Sep 29 17:55:29 2003 +0000 +++ b/src/charset.c Mon Sep 29 17:58:09 2003 +0000 @@ -1375,7 +1375,7 @@ static void find_charsets_in_text (ptr, nchars, nbytes, charsets, table) const unsigned char *ptr; - int nchars, nbytes; + EMACS_INT nchars, nbytes; Lisp_Object charsets, table; { const unsigned char *pend = ptr + nbytes; @@ -1424,7 +1424,8 @@ Lisp_Object beg, end, table; { Lisp_Object charsets; - int from, from_byte, to, stop, stop_byte, i; + EMACS_INT from, from_byte, to, stop, stop_byte; + int i; Lisp_Object val; validate_region (&beg, &end); @@ -2073,8 +2074,6 @@ void syms_of_charset () { - char *p; - DEFSYM (Qcharsetp, "charsetp"); DEFSYM (Qascii, "ascii"); @@ -2085,8 +2084,6 @@ DEFSYM (Qgl, "gl"); DEFSYM (Qgr, "gr"); - p = (char *) xmalloc (30000); - staticpro (&Vcharset_ordered_list); Vcharset_ordered_list = Qnil;