* cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Sep 2001 13:25:38 +0000 (13:25 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Sep 2001 13:25:38 +0000 (13:25 +0000)
Use size_t everywhere, make definitions consistent with
prototypes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45860 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cpplex.c

index 3179182..91e995a 100644 (file)
@@ -1,3 +1,9 @@
+2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
+       Use size_t everywhere, make definitions consistent with
+       prototypes.     
+
 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
 
        * gcse.c (replace_store_insn): Use delete_insn.
index e3fa56c..26bda36 100644 (file)
@@ -107,7 +107,7 @@ static tokenrun *next_tokenrun PARAMS ((tokenrun *));
 static cpp_chunk *new_chunk PARAMS ((unsigned int));
 static int chunk_suitable PARAMS ((cpp_chunk *, unsigned int));
 static unsigned int hex_digit_value PARAMS ((unsigned int));
-static _cpp_buff *new_buff PARAMS ((unsigned int));
+static _cpp_buff *new_buff PARAMS ((size_t));
 
 /* Utility routine:
 
@@ -2052,7 +2052,7 @@ struct dummy
    of the buffer, so that buffer overflows will cause immediate chaos.  */
 static _cpp_buff *
 new_buff (len)
-     unsigned int len;
+     size_t len;
 {
   _cpp_buff *result;
   unsigned char *base;
@@ -2088,13 +2088,13 @@ _cpp_release_buff (pfile, buff)
 _cpp_buff *
 _cpp_get_buff (pfile, min_size)
      cpp_reader *pfile;
-     unsigned int min_size;
+     size_t min_size;
 {
   _cpp_buff *result, **p;
 
   for (p = &pfile->free_buffs;; p = &(*p)->next)
     {
-      unsigned int size;
+      size_t size;
 
       if (*p == NULL)
        return new_buff (min_size);
@@ -2119,9 +2119,9 @@ _cpp_buff *
 _cpp_extend_buff (pfile, buff, min_extra)
      cpp_reader *pfile;
      _cpp_buff *buff;
-     unsigned int min_extra;
+     size_t min_extra;
 {
-  unsigned int size = EXTENDED_BUFF_SIZE (buff, min_extra);
+  size_t size = EXTENDED_BUFF_SIZE (buff, min_extra);
 
   buff->next = _cpp_get_buff (pfile, size);
   memcpy (buff->next->base, buff->cur, buff->limit - buff->cur);