/[emacs]/emacs/src/buffer.c
ViewVC logotype

Diff of /emacs/src/buffer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.396 by raeburn, Sun Jul 21 13:58:53 2002 UTC revision 1.397 by raeburn, Sun Jul 21 14:11:55 2002 UTC
# Line 4669  mmap_realloc (var, nbytes) Line 4669  mmap_realloc (var, nbytes)
4669        else if (room - nbytes >= mmap_page_size)        else if (room - nbytes >= mmap_page_size)
4670          {          {
4671            /* Shrinking by at least a page.  Let's give some            /* Shrinking by at least a page.  Let's give some
4672               memory back to the system.  */               memory back to the system.
4673    
4674                 The extra parens are to make the division happens first,
4675                 on positive values, so we know it will round towards
4676                 zero.  */
4677            mmap_enlarge (r, - ((room - nbytes) / mmap_page_size));            mmap_enlarge (r, - ((room - nbytes) / mmap_page_size));
4678            result = *var;            result = *var;
4679            r->nbytes_specified = nbytes;            r->nbytes_specified = nbytes;

Legend:
Removed from v.1.396  
changed lines
  Added in v.1.397

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26