diff 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
line wrap: on
line diff
--- 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;