emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oops? read/write vs type of length parameter


From: Davis Herring
Subject: Re: oops? read/write vs type of length parameter
Date: Tue, 12 Apr 2011 05:32:30 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-5.el5_4.10.lanl3

>> When Emacs saves a buffer or some its portion,
>> write-region can call emacs_write (though a_write and e_write) with
>> the full extent of the region to be saved.
>
> Ah, sorry, I missed that one.  In that case 'int'
> clearly won't do for the size.

This has been said several times, apparently assuming that the whole
length _must_ be passed.  But other callers call these functions with
small arguments in a loop.  Can't that be used (with perhaps more like 64
MiB than 64 KiB per call) for these large files too?

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]