nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] chars: use a fixed piece of memory instead allo


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] chars: use a fixed piece of memory instead allocating+freeing all the time
Date: Mon, 19 Dec 2016 11:34:11 +0100

On Sun, Dec 18, 2016, at 17:56, Mike Frysinger wrote:
> On 17 Dec 2016 12:33, Benno Schulenberg wrote:
> > (As nano only supports UTF-8 and plain ASCII, we could just
> > use 4 instead of mb_cur_max() -- much quicker.)
> 
> as a sanity check, you could add an assert at startup to make
> sure it's never larger

Good idea.  But an assert() only gets included when compiled
with --enable-debug, no?  So it had better be a hard check.

Benno

-- 
http://www.fastmail.com - Faster than the air-speed velocity of an
                          unladen european swallow




reply via email to

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