[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/buffer.c
From: |
Dave Love |
Subject: |
[Emacs-diffs] Changes to emacs/src/buffer.c |
Date: |
Thu, 05 Sep 2002 12:59:44 -0400 |
Index: emacs/src/buffer.c
diff -c emacs/src/buffer.c:1.399 emacs/src/buffer.c:1.400
*** emacs/src/buffer.c:1.399 Mon Aug 12 13:25:23 2002
--- emacs/src/buffer.c Sat Aug 17 00:53:57 2002
***************
*** 2498,2506 ****
{
if (extend)
{
! *len_ptr = len *= 2;
if (len == 0)
! len = *len_ptr = 4;
vec = (Lisp_Object *) xrealloc (vec, len * sizeof
(Lisp_Object));
*vec_ptr = vec;
}
--- 2498,2508 ----
{
if (extend)
{
! /* Make it work with an initial len == 0. */
! len *= 2;
if (len == 0)
! len = 4;
! *len_ptr = len;
vec = (Lisp_Object *) xrealloc (vec, len * sizeof
(Lisp_Object));
*vec_ptr = vec;
}
***************
*** 2594,2600 ****
Either make it bigger, or don't store any more in it. */
if (extend)
{
! *len_ptr = len *= 2;
vec = (Lisp_Object *) xrealloc (vec, len * sizeof
(Lisp_Object));
*vec_ptr = vec;
}
--- 2596,2606 ----
Either make it bigger, or don't store any more in it. */
if (extend)
{
! /* Make it work with an initial len == 0. */
! len *= 2;
! if (len == 0)
! len = 4;
! *len_ptr = len;
vec = (Lisp_Object *) xrealloc (vec, len * sizeof
(Lisp_Object));
*vec_ptr = vec;
}
***************
*** 2638,2644 ****
{
if (extend)
{
! *len_ptr = len *= 2;
vec = (Lisp_Object *) xrealloc (vec, len * sizeof
(Lisp_Object));
*vec_ptr = vec;
}
--- 2644,2654 ----
{
if (extend)
{
! /* Make it work with an initial len == 0. */
! len *= 2;
! if (len == 0)
! len = 4;
! *len_ptr = len;
vec = (Lisp_Object *) xrealloc (vec, len * sizeof
(Lisp_Object));
*vec_ptr = vec;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/buffer.c,
Dave Love <=