From: neil Date: Fri, 28 Sep 2001 13:25:38 +0000 (+0000) Subject: * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff): X-Git-Tag: upstream/4.9.2~91890 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b31a107f926a44e8f962d648c959ef5da936471;p=platform%2Fupstream%2Flinaro-gcc.git * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff): 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3179182..91e995a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-09-28 Neil Booth + + * 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 * gcse.c (replace_store_insn): Use delete_insn. diff --git a/gcc/cpplex.c b/gcc/cpplex.c index e3fa56c..26bda36 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -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);